Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal") translateModel(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008484/0.0008486, allocations: 86.55 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009475/0.0009476, allocations: 179.9 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.4 MB / 223.4 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4454/0.4454, allocations: 48.76 MB / 320.4 MB, free: 3.824 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005587/0.0005588, allocations: 18.97 kB / 391.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1321, allocations: 60.26 MB / 451.4 MB, free: 1.902 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal): time 0.3172/0.4493, allocations: 42.16 MB / 493.6 MB, free: 22.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01296/0.4623, allocations: 10.82 MB / 0.4926 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009117/0.4633, allocations: 15.84 kB / 0.4926 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.4643, allocations: 270.8 kB / 0.4929 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001757/0.4661, allocations: 0.625 MB / 0.4935 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01273/0.4788, allocations: 3.241 MB / 0.4966 GB, free: 13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003667/0.4825, allocations: 2.342 MB / 0.4989 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008818/0.4834, allocations: 431.3 kB / 0.4993 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001403/0.4849, allocations: 0.5705 MB / 0.4999 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001145/0.486, allocations: 0.7146 MB / 0.5006 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.535e-05/0.4861, allocations: 35.78 kB / 0.5006 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01316/0.4993, allocations: 6.018 MB / 0.5065 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006414/0.5, allocations: 277.4 kB / 0.5068 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005018/0.5005, allocations: 197.2 kB / 0.507 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007454/0.508, allocations: 2.92 MB / 0.5098 GB, free: 5.793 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.508, allocations: 0 / 0.5098 GB, free: 5.793 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.508, allocations: 0 / 0.5098 GB, free: 5.793 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.496e-05/0.508, allocations: 0 / 0.5098 GB, free: 5.793 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.005791/0.5138, allocations: 1.5 MB / 0.5113 GB, free: 4.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.5139, allocations: 12.19 kB / 0.5113 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.5149, allocations: 204.3 kB / 0.5115 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001067/0.516, allocations: 0.5621 MB / 0.512 GB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.111e-05/0.516, allocations: 52 kB / 0.5121 GB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.5162, allocations: 76.59 kB / 0.5121 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00349/0.5197, allocations: 1.722 MB / 0.5138 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.5197, allocations: 3.953 kB / 0.5138 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.689e-05/0.5198, allocations: 32 kB / 0.5139 GB, free: 2.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.196e-05/0.5199, allocations: 33.98 kB / 0.5139 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003183/0.5231, allocations: 1.639 MB / 0.5155 GB, free: 0.8281 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.004885/0.5279, allocations: 3.656 MB / 0.5191 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002942/0.5309, allocations: 1.191 MB / 0.5202 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004396/0.5314, allocations: 294.4 kB / 0.5205 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1176/0.649, allocations: 64.59 MB / 0.5836 GB, free: 3.105 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.6491, allocations: 43.11 kB / 0.5836 GB, free: 3.055 MB / 462.1 MB Notification: Performance of pre-optimization done (n=56): time 2.775e-06/0.6491, allocations: 0 / 0.5836 GB, free: 3.055 MB / 462.1 MB Notification: Performance of matching and sorting (n=56): time 0.005966/0.6551, allocations: 2.11 MB / 0.5857 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.6551, allocations: 55.97 kB / 0.5857 GB, free: 0.832 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006006/0.6557, allocations: 0.5185 MB / 0.5862 GB, free: 312 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.6558, allocations: 37.7 kB / 0.5863 GB, free: 268 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002726/0.6561, allocations: 352.2 kB / 0.5866 GB, free: 15.91 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000214/0.6563, allocations: 193.1 kB / 0.5868 GB, free: 15.71 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.533e-05/0.6564, allocations: 19.94 kB / 0.5868 GB, free: 15.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.6566, allocations: 370.8 kB / 0.5872 GB, free: 15.32 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007676/0.6574, allocations: 0.5048 MB / 0.5877 GB, free: 14.82 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008561/0.6582, allocations: 0.6505 MB / 0.5883 GB, free: 14.11 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008259/0.6591, allocations: 0.5448 MB / 0.5888 GB, free: 13.57 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.6591, allocations: 0 / 0.5888 GB, free: 13.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0032/0.6623, allocations: 1.85 MB / 0.5906 GB, free: 11.71 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001217/0.6624, allocations: 168.7 kB / 0.5908 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.6624, allocations: 3.938 kB / 0.5908 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004212/0.6667, allocations: 1.607 MB / 0.5924 GB, free: 9.891 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002775/0.667, allocations: 72.47 kB / 0.5924 GB, free: 9.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003269/0.6702, allocations: 2.187 MB / 0.5946 GB, free: 7.605 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009212/0.6712, allocations: 123.3 kB / 0.5947 GB, free: 7.484 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.6713, allocations: 71.92 kB / 0.5948 GB, free: 7.414 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.6713, allocations: 4 kB / 0.5948 GB, free: 7.41 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003007/0.6743, allocations: 1.751 MB / 0.5965 GB, free: 5.652 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.6744, allocations: 11.48 kB / 0.5965 GB, free: 5.645 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003008/0.6774, allocations: 1.487 MB / 0.5979 GB, free: 4.152 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.6777, allocations: 75.89 kB / 0.598 GB, free: 4.078 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003/0.6807, allocations: 2.137 MB / 0.6001 GB, free: 1.914 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009051/0.6816, allocations: 103.5 kB / 0.6002 GB, free: 1.812 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.6817, allocations: 75.92 kB / 0.6003 GB, free: 1.738 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (heater.fluidState[2].phase,heater.fluidState[1].phase,boiler.fluidState[2].phase,boiler.fluidState[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 37} Notification: Performance of prepare postOptimizeDAE: time 0.0006066/0.6823, allocations: 337 kB / 0.6006 GB, free: 1.398 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.6825, allocations: 67.16 kB / 0.6007 GB, free: 1.332 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007756/0.6903, allocations: 7.935 MB / 0.6084 GB, free: 9.395 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.567e-05/0.6903, allocations: 19.97 kB / 0.6084 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.6903, allocations: 4 kB / 0.6084 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.6904, allocations: 11.88 kB / 0.6084 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003675/0.694, allocations: 3.8 MB / 0.6122 GB, free: 5.293 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.6941, allocations: 0 / 0.6122 GB, free: 5.293 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/0.6954, allocations: 219.6 kB / 0.6124 GB, free: 5.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005374/0.6959, allocations: 145.4 kB / 0.6125 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.604e-05/0.696, allocations: 15.98 kB / 0.6125 GB, free: 4.914 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002986/0.699, allocations: 4.03 MB / 0.6165 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.699, allocations: 5.25 kB / 0.6165 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.7019, allocations: 1.941 MB / 0.6184 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004789/0.7024, allocations: 239.8 kB / 0.6186 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.7025, allocations: 16 kB / 0.6186 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006085/0.7031, allocations: 83.72 kB / 0.6187 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.7033, allocations: 40.5 kB / 0.6187 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.328e-05/0.7033, allocations: 19.98 kB / 0.6187 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005007/0.7038, allocations: 366.8 kB / 0.6191 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.11e-07/0.7039, allocations: 0 / 0.6191 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005206/0.7091, allocations: 1.206 MB / 0.6203 GB, free: 12.64 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (boiler.p,boiler.htilde[1],heater.p,heater.htilde[1]) * Number of discrete variables: 8 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005891/0.715, allocations: 0.9775 MB / 0.6212 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003984/0.719, allocations: 1.988 MB / 0.6232 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.719, allocations: 0 / 0.6232 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001982/0.721, allocations: 0.888 MB / 0.624 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001676/0.7227, allocations: 300 kB / 0.6243 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003659/0.7264, allocations: 2.557 MB / 0.6268 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005926/0.727, allocations: 1.074 MB / 0.6279 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0007259/0.7277, allocations: 213 kB / 0.6281 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.728, allocations: 59.41 kB / 0.6281 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of SimCode: time 6.11e-07/0.728, allocations: 0 / 0.6281 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of Templates: time 0.3233/1.051, allocations: 61.35 MB / 0.688 GB, free: 136.9 MB / 0.4981 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.makefile Environment - environmentSimulation: (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe 2>&1) Environment - environmentSimulation: