Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.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) 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(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 103.4 kB / 16.62 MB, free: 6.812 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.00171/0.00171, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.434/1.434, allocations: 205.1 MB / 223.4 MB, free: 12.43 MB / 190.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.001623/0.001623, allocations: 47.92 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08598/0.08762, allocations: 46.63 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.2703/0.358, allocations: 95.14 MB / 421.3 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04223/0.4002, allocations: 34.63 MB / 455.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004408/0.4047, allocations: 71.44 kB / 456 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004455/0.4092, allocations: 1.189 MB / 457.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01315/0.4224, allocations: 4.111 MB / 461.3 MB, free: 348 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02327/0.4457, allocations: 7.95 MB / 469.2 MB, free: 8.367 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008024/0.4537, allocations: 6.198 MB / 475.4 MB, free: 2.148 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003458/0.4572, allocations: 1.993 MB / 477.4 MB, free: 140 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01178/0.469, allocations: 5.788 MB / 483.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003839/0.4729, allocations: 2.23 MB / 485.4 MB, free: 8.051 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001091/0.474, allocations: 259.9 kB / 485.7 MB, free: 7.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01921/0.4932, allocations: 9.049 MB / 494.7 MB, free: 14.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001762/0.495, allocations: 0.861 MB / 495.6 MB, free: 13.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003193/0.4982, allocations: 1.361 MB / 497 MB, free: 12.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01933/0.5176, allocations: 8.649 MB / 0.4938 GB, free: 3.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.5176, allocations: 0 / 0.4938 GB, free: 3.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.5177, allocations: 0 / 0.4938 GB, free: 3.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.795e-05/0.5177, allocations: 0 / 0.4938 GB, free: 3.84 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 462 * Number of variables: 462 Notification: Performance of Generate backend data structure: time 0.009367/0.5271, allocations: 3.429 MB / 0.4971 GB, free: 360 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.5272, allocations: 12.03 kB / 0.4971 GB, free: 348 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01109/0.5383, allocations: 1.208 MB / 0.4983 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00266/0.541, allocations: 1.338 MB / 0.4996 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002938/0.5413, allocations: 342.4 kB / 0.4999 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003907/0.5417, allocations: 196.2 kB / 0.5001 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00849/0.5502, allocations: 3.429 MB / 0.5035 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.953e-05/0.5502, allocations: 7.938 kB / 0.5035 GB, free: 9.617 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002655/0.5505, allocations: 83.97 kB / 0.5036 GB, free: 9.535 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.5507, allocations: 103.3 kB / 0.5037 GB, free: 9.434 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008241/0.5589, allocations: 3.408 MB / 0.507 GB, free: 6.02 MB / 414.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.02276/0.5817, allocations: 14.35 MB / 0.521 GB, free: 6.781 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007462/0.5892, allocations: 2.818 MB / 0.5238 GB, free: 3.949 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002822/0.592, allocations: 1.428 MB / 0.5251 GB, free: 2.52 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2108/0.8028, allocations: 24.27 MB / 0.5488 GB, free: 165.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.031e-05/0.8029, allocations: 55.39 kB / 0.5489 GB, free: 165.5 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002159/0.8051, allocations: 408.2 kB / 0.5493 GB, free: 165.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=175): time 4.98e-06/0.8051, allocations: 0.9375 kB / 0.5493 GB, free: 165.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.03562/0.8407, allocations: 12 MB / 0.561 GB, free: 162.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.589e-05/0.8409, allocations: 150.3 kB / 0.5611 GB, free: 162.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/0.8424, allocations: 1.407 MB / 0.5625 GB, free: 161.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002959/0.8427, allocations: 73.17 kB / 0.5626 GB, free: 161.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004021/0.8431, allocations: 0.7813 MB / 0.5634 GB, free: 160.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00052/0.8436, allocations: 0.6702 MB / 0.564 GB, free: 160 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006114/0.8443, allocations: 448.8 kB / 0.5644 GB, free: 159.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.764e-05/0.8443, allocations: 305.1 kB / 0.5647 GB, free: 159.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002054/0.8464, allocations: 1.264 MB / 0.566 GB, free: 158.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002273/0.8487, allocations: 1.702 MB / 0.5676 GB, free: 157.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00458/0.8532, allocations: 2.919 MB / 0.5705 GB, free: 155.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.8533, allocations: 3.5 kB / 0.5705 GB, free: 155.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.006759/0.86, allocations: 3.944 MB / 0.5743 GB, free: 153.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.8601, allocations: 8 kB / 0.5743 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.8601, allocations: 12 kB / 0.5744 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004133/0.8643, allocations: 1.58 MB / 0.5759 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001861/0.8661, allocations: 455.3 kB / 0.5763 GB, free: 151.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004392/0.8706, allocations: 6.696 MB / 0.5829 GB, free: 144.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/0.8727, allocations: 198.3 kB / 0.5831 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/0.8729, allocations: 115.9 kB / 0.5832 GB, free: 143.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 21 (mFlow3.medium.phase,openTankHot3.inFlow[1],openTankHot3.regularFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankCold3.inFlow[1],openTankCold3.regularFlow[1],openTankCold3.heatTransfer.states[1].phase,mFlow2.medium.phase,mFlow1.medium.phase,openTankHot2.inFlow[1],openTankHot2.regularFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot1.inFlow[1],openTankHot1.regularFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankCold1.inFlow[1],openTankCold1.regularFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold2.inFlow[1],openTankCold2.regularFlow[1],openTankCold2.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 204 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 9 systems {(1,5), (1,5), (4,6), (1,5), (1,5), (4,6), (1,5), (1,5), (6,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0008889/0.8738, allocations: 0.5141 MB / 0.5837 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003973/0.8742, allocations: 197.7 kB / 0.5839 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/0.8845, allocations: 9.846 MB / 0.5935 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.949e-05/0.8846, allocations: 107.5 kB / 0.5936 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.8846, allocations: 0 / 0.5936 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.122e-05/0.8846, allocations: 11.95 kB / 0.5936 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01331/0.898, allocations: 13.25 MB / 0.6065 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.898, allocations: 0 / 0.6065 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/0.8996, allocations: 371.5 kB / 0.6069 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00398/0.9036, allocations: 2.956 MB / 0.6098 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/0.9038, allocations: 59.97 kB / 0.6098 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005705/0.9095, allocations: 8.769 MB / 0.6184 GB, free: 107.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.9096, allocations: 0 / 0.6184 GB, free: 107.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/0.9214, allocations: 10.69 MB / 0.6288 GB, free: 96.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/0.9227, allocations: 0.6873 MB / 0.6295 GB, free: 95.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003958/0.9231, allocations: 107.1 kB / 0.6296 GB, free: 95.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001857/0.925, allocations: 215.5 kB / 0.6298 GB, free: 95.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004345/0.9254, allocations: 217.7 kB / 0.63 GB, free: 95.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001646/0.9256, allocations: 87.95 kB / 0.6301 GB, free: 95.28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001264/0.9269, allocations: 1.27 MB / 0.6313 GB, free: 93.99 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9269, allocations: 0 / 0.6313 GB, free: 93.99 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004706/0.9316, allocations: 1.789 MB / 0.6331 GB, free: 92.33 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.level,openTankCold2.medium.h,openTankCold1.level,openTankCold1.medium.h,openTankHot1.level,openTankHot1.medium.h,openTankHot2.level,openTankHot2.medium.h,openTankCold3.level,openTankCold3.medium.h,openTankHot3.level,openTankHot3.medium.h) * Number of discrete variables: 71 ($cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse51.region3boundary,$cse52.region3boundary,$cse53.phase,$cse53.region,$cse54.phase,$cse54.region,openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 9 systems {(2,4), (2,4), (4,11), (2,4), (2,4), (4,11), (2,4), (2,4), (6,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004766/0.9364, allocations: 1.746 MB / 0.6348 GB, free: 90.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01382/0.9502, allocations: 5.263 MB / 0.6399 GB, free: 85.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.9502, allocations: 0.5625 kB / 0.6399 GB, free: 85.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004907/0.9552, allocations: 3.134 MB / 0.643 GB, free: 82.47 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004713/0.9599, allocations: 1.099 MB / 0.6441 GB, free: 81.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009032/0.969, allocations: 9.353 MB / 0.6532 GB, free: 72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.97, allocations: 2.165 MB / 0.6553 GB, free: 69.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00255/0.9726, allocations: 1.727 MB / 0.657 GB, free: 68.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004964/0.9731, allocations: 187.4 kB / 0.6572 GB, free: 67.88 MB / 446.1 MB Notification: Performance of SimCode: time 1.192e-06/0.9731, allocations: 0 / 0.6572 GB, free: 67.88 MB / 446.1 MB Notification: Performance of Templates: time 0.2489/1.222, allocations: 94.52 MB / 0.7495 GB, free: 148.7 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)