Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.418/1.418, allocations: 249.3 MB / 261.8 MB, free: 5.816 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 178.1 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.2 MB / 0.572 GB, free: 10.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009312/0.0009312, allocations: 96.62 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.341e-05/3.355e-05, allocations: 4 kB / 0.788 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2128, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.618/1.831, allocations: 422.8 MB / 1.305 GB, free: 257.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/1.831, allocations: 122.3 kB / 1.305 GB, free: 257.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 4.08/5.911, allocations: 1.021 GB / 2.326 GB, free: 112.6 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.936e-06/5.911, allocations: 0 / 2.326 GB, free: 112.6 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0005353/5.911, allocations: 82.75 kB / 2.326 GB, free: 112.6 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 526 * Number of variables: 526 Notification: Performance of Generate backend data structure: time 0.01136/5.923, allocations: 3.049 MB / 2.329 GB, free: 111.5 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 6.805e-05/5.923, allocations: 9.844 kB / 2.329 GB, free: 111.5 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001792/5.925, allocations: 371.2 kB / 2.329 GB, free: 111.3 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006528/5.931, allocations: 2.907 MB / 2.332 GB, free: 110.7 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/5.931, allocations: 158.3 kB / 2.332 GB, free: 110.7 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003039/5.932, allocations: 217.8 kB / 2.333 GB, free: 110.7 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003829/5.935, allocations: 2.077 MB / 2.335 GB, free: 110.5 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.835e-05/5.935, allocations: 5.562 kB / 2.335 GB, free: 110.5 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001825/5.936, allocations: 89.62 kB / 2.335 GB, free: 110.5 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.112e-05/5.936, allocations: 52.33 kB / 2.335 GB, free: 110.5 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002649/5.938, allocations: 1.57 MB / 2.336 GB, free: 110.4 MB / 0.9011 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01319/5.952, allocations: 8.85 MB / 2.345 GB, free: 107.7 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/5.953, allocations: 1.333 MB / 2.346 GB, free: 107.4 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/5.954, allocations: 0.8527 MB / 2.347 GB, free: 107.4 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002006/5.956, allocations: 2.923 MB / 2.35 GB, free: 104.1 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.341e-05/5.956, allocations: 52.12 kB / 2.35 GB, free: 104.1 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=148): time 4.268e-06/5.956, allocations: 0 / 2.35 GB, free: 104.1 MB / 0.9011 GB Notification: Performance of matching and sorting (n=148): time 0.003262/5.96, allocations: 1.548 MB / 2.352 GB, free: 103.8 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/5.96, allocations: 98.55 kB / 2.352 GB, free: 103.7 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003219/5.963, allocations: 1.991 MB / 2.354 GB, free: 103.5 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0001975/5.963, allocations: 55.36 kB / 2.354 GB, free: 103.5 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008852/5.964, allocations: 1.202 MB / 2.355 GB, free: 103.1 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004433/5.964, allocations: 0.5161 MB / 2.355 GB, free: 102.8 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.205e-05/5.965, allocations: 33.38 kB / 2.355 GB, free: 102.8 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001196/5.965, allocations: 376.2 kB / 2.356 GB, free: 102.5 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008403/5.966, allocations: 0.5154 MB / 2.356 GB, free: 102.5 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/5.967, allocations: 0.8861 MB / 2.357 GB, free: 102.1 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009547/5.967, allocations: 0.6723 MB / 2.358 GB, free: 102.1 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/5.968, allocations: 3.812 kB / 2.358 GB, free: 102.1 MB / 0.9011 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.003388/5.971, allocations: 1.953 MB / 2.36 GB, free: 101.8 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005667/5.971, allocations: 2.721 MB / 2.362 GB, free: 98.95 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.714e-05/5.972, allocations: 10.62 kB / 2.362 GB, free: 98.95 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005962/5.972, allocations: 222.9 kB / 2.363 GB, free: 98.9 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/5.973, allocations: 349.5 kB / 2.363 GB, free: 98.9 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0041/5.977, allocations: 7.041 MB / 2.37 GB, free: 92.52 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003093/5.981, allocations: 285.5 kB / 2.37 GB, free: 92.43 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001804/5.981, allocations: 73.98 kB / 2.37 GB, free: 92.43 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/5.981, allocations: 6.938 kB / 2.37 GB, free: 92.43 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002696/5.983, allocations: 1.676 MB / 2.372 GB, free: 92.32 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/5.983, allocations: 15.39 kB / 2.372 GB, free: 92.32 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004652/5.984, allocations: 208.9 kB / 2.372 GB, free: 92.28 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/5.985, allocations: 352.6 kB / 2.372 GB, free: 92.28 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005843/5.991, allocations: 8.966 MB / 2.381 GB, free: 84.28 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003915/5.995, allocations: 263.4 kB / 2.381 GB, free: 84.2 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003065/5.995, allocations: 68.11 kB / 2.381 GB, free: 84.2 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (191): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006102/5.996, allocations: 204 kB / 2.382 GB, free: 84.09 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009566/5.997, allocations: 260.2 kB / 2.382 GB, free: 83.96 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00447/6.001, allocations: 2.015 MB / 2.384 GB, free: 83.76 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.308e-05/6.001, allocations: 22.16 kB / 2.384 GB, free: 83.76 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/6.001, allocations: 0 / 2.384 GB, free: 83.76 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002386/6.004, allocations: 1.648 MB / 2.385 GB, free: 83.41 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009166/6.013, allocations: 4.496 MB / 2.39 GB, free: 82.76 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/6.013, allocations: 3.594 kB / 2.39 GB, free: 82.76 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/6.014, allocations: 275.5 kB / 2.39 GB, free: 82.76 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004718/6.014, allocations: 212.1 kB / 2.39 GB, free: 82.71 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.755e-05/6.015, allocations: 40.41 kB / 2.39 GB, free: 82.71 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003699/6.018, allocations: 7.048 MB / 2.397 GB, free: 76.34 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/6.018, allocations: 5 kB / 2.397 GB, free: 76.34 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004283/6.023, allocations: 2.737 MB / 2.4 GB, free: 75.8 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001713/6.024, allocations: 0.5736 MB / 2.4 GB, free: 75.55 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003764/6.025, allocations: 28.28 kB / 2.4 GB, free: 75.55 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001398/6.026, allocations: 154.3 kB / 2.401 GB, free: 75.54 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001754/6.026, allocations: 106.3 kB / 2.401 GB, free: 75.54 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/6.026, allocations: 64.66 kB / 2.401 GB, free: 75.54 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.002238/6.029, allocations: 1.524 MB / 2.402 GB, free: 75.38 MB / 0.9011 GB Notification: Performance of sort global known variables: time 2.8e-07/6.029, allocations: 0 / 2.402 GB, free: 75.38 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.006568/6.035, allocations: 1.992 MB / 2.404 GB, free: 75.07 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (intHex.vol1.dynBal.U,intHex.vol2.dynBal.U,intHex.vol3.dynBal.U,intHex.vol4.dynBal.U,intHex.intRes2UTub.capFil1.T,intHex.intRes2UTub.capFil2.T,intHex.intRes2UTub.capFil3.T,intHex.intRes2UTub.capFil4.T,senTem.T,senTem1.T,senTem2.T,senTem3.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003655/6.039, allocations: 1.769 MB / 2.406 GB, free: 74.63 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.004978/6.044, allocations: 3.638 MB / 2.409 GB, free: 73.39 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/6.044, allocations: 3.25 kB / 2.409 GB, free: 73.39 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.001439/6.045, allocations: 1.226 MB / 2.411 GB, free: 72.94 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007094/6.053, allocations: 1.338 MB / 2.412 GB, free: 72.92 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00875/6.061, allocations: 4.09 MB / 2.416 GB, free: 71.87 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001319/6.063, allocations: 1.807 MB / 2.418 GB, free: 71.12 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.003833/6.067, allocations: 0.7819 MB / 2.419 GB, free: 71.09 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004187/6.067, allocations: 171.7 kB / 2.419 GB, free: 71.09 MB / 0.9011 GB Notification: Performance of SimCode: time 3.036e-06/6.067, allocations: 0 / 2.419 GB, free: 71.09 MB / 0.9011 GB Notification: Performance of Templates: time 0.1116/6.179, allocations: 70.35 MB / 2.487 GB, free: 66.59 MB / 0.9011 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches