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.001021/0.001021, allocations: 91.3 kB / 16.65 MB, free: 6.555 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.001178/0.001178, allocations: 179.2 kB / 17.56 MB, free: 6.18 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.583/1.583, allocations: 205.4 MB / 223.7 MB, free: 13.05 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.0004746/0.0004746, allocations: 15.94 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.102, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.3352/0.4373, allocations: 94.47 MB / 422.8 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04698/0.4843, allocations: 35.26 MB / 458 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005038/0.4894, allocations: 67.44 kB / 458.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00527/0.4947, allocations: 1.177 MB / 459.3 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01508/0.5098, allocations: 3.953 MB / 463.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02598/0.5358, allocations: 7.601 MB / 470.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01164/0.5475, allocations: 8.823 MB / 479.7 MB, free: 2.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00368/0.5512, allocations: 1.765 MB / 481.4 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01258/0.5638, allocations: 5.437 MB / 486.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004325/0.5681, allocations: 2.156 MB / 489 MB, free: 9.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001168/0.5693, allocations: 136 kB / 489.2 MB, free: 9.074 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02102/0.5904, allocations: 8.963 MB / 498.1 MB, free: 104 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002065/0.5925, allocations: 0.7321 MB / 498.8 MB, free: 15.37 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002428/0.5949, allocations: 1.262 MB / 0.4884 GB, free: 14.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02033/0.6153, allocations: 8.487 MB / 0.4967 GB, free: 5.586 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.6153, allocations: 0 / 0.4967 GB, free: 5.586 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.6153, allocations: 0 / 0.4967 GB, free: 5.586 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.771e-05/0.6154, allocations: 0 / 0.4967 GB, free: 5.586 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.008003/0.6234, allocations: 2.954 MB / 0.4996 GB, free: 2.574 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.6235, allocations: 12.03 kB / 0.4996 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01032/0.6338, allocations: 1.251 MB / 0.5008 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002414/0.6362, allocations: 1.349 MB / 0.5021 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002669/0.6365, allocations: 342.3 kB / 0.5024 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003315/0.6368, allocations: 188.2 kB / 0.5026 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007998/0.6448, allocations: 3.507 MB / 0.506 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.281e-05/0.6449, allocations: 7.938 kB / 0.506 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00028/0.6452, allocations: 83.97 kB / 0.5061 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001367/0.6454, allocations: 103.3 kB / 0.5062 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008494/0.6539, allocations: 3.526 MB / 0.5097 GB, free: 8 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.02089/0.6748, allocations: 14.46 MB / 0.5238 GB, free: 8.648 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007285/0.6821, allocations: 2.932 MB / 0.5267 GB, free: 5.711 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002567/0.6847, allocations: 1.463 MB / 0.5281 GB, free: 4.246 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2417/0.9264, allocations: 24.5 MB / 0.552 GB, free: 139.8 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.025e-05/0.9265, allocations: 55.38 kB / 0.5521 GB, free: 139.7 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002641/0.9291, allocations: 454.7 kB / 0.5525 GB, free: 139.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=175): time 6.172e-06/0.9292, allocations: 0 / 0.5525 GB, free: 139.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=205): time 0.03566/0.9648, allocations: 12.48 MB / 0.5647 GB, free: 134.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.9649, allocations: 157.1 kB / 0.5648 GB, free: 134.4 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001573/0.9665, allocations: 1.403 MB / 0.5662 GB, free: 133.4 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002368/0.9668, allocations: 69.7 kB / 0.5663 GB, free: 133.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/0.9671, allocations: 0.783 MB / 0.567 GB, free: 132.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004403/0.9676, allocations: 0.6709 MB / 0.5677 GB, free: 131.9 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002399/0.9678, allocations: 189.9 kB / 0.5679 GB, free: 131.7 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.935e-05/0.9679, allocations: 305.1 kB / 0.5682 GB, free: 131.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002139/0.97, allocations: 1.3 MB / 0.5694 GB, free: 130.1 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002256/0.9723, allocations: 1.748 MB / 0.5711 GB, free: 128.1 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004348/0.9767, allocations: 3.001 MB / 0.5741 GB, free: 125 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.9767, allocations: 8 kB / 0.5741 GB, free: 125 MB / 430.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.006788/0.9835, allocations: 4.013 MB / 0.578 GB, free: 120.9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.9835, allocations: 12.03 kB / 0.578 GB, free: 120.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.9836, allocations: 12 kB / 0.578 GB, free: 120.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004157/0.9877, allocations: 1.575 MB / 0.5796 GB, free: 119.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001954/0.9897, allocations: 471.3 kB / 0.58 GB, free: 118.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004692/0.9944, allocations: 6.71 MB / 0.5866 GB, free: 111.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002486/0.9969, allocations: 219.6 kB / 0.5868 GB, free: 111.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/0.9972, allocations: 115.9 kB / 0.5869 GB, free: 111.6 MB / 430.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.0009793/0.9981, allocations: 0.5092 MB / 0.5874 GB, free: 111.1 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003487/0.9985, allocations: 193.7 kB / 0.5876 GB, free: 110.9 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01124/1.01, allocations: 9.966 MB / 0.5973 GB, free: 100.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-05/1.01, allocations: 111.8 kB / 0.5974 GB, free: 100.7 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/1.01, allocations: 0 / 0.5974 GB, free: 100.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.266e-05/1.01, allocations: 15.95 kB / 0.5974 GB, free: 100.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/1.025, allocations: 13.37 MB / 0.6105 GB, free: 87.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/1.025, allocations: 0 / 0.6105 GB, free: 87.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/1.027, allocations: 419.4 kB / 0.6109 GB, free: 86.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005185/1.032, allocations: 3.808 MB / 0.6146 GB, free: 83.03 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002804/1.032, allocations: 56.16 kB / 0.6146 GB, free: 82.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006085/1.038, allocations: 8.785 MB / 0.6232 GB, free: 73.95 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/1.038, allocations: 3.938 kB / 0.6232 GB, free: 73.95 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/1.051, allocations: 10.8 MB / 0.6338 GB, free: 63.03 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001437/1.052, allocations: 0.9087 MB / 0.6347 GB, free: 62.1 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003108/1.052, allocations: 44 kB / 0.6347 GB, free: 62.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001861/1.054, allocations: 239.6 kB / 0.6349 GB, free: 61.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004271/1.055, allocations: 217.7 kB / 0.6351 GB, free: 61.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/1.055, allocations: 87.94 kB / 0.6352 GB, free: 61.52 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00136/1.056, allocations: 1.27 MB / 0.6365 GB, free: 60.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.51e-07/1.056, allocations: 0 / 0.6365 GB, free: 60.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004801/1.061, allocations: 1.801 MB / 0.6382 GB, free: 58.55 MB / 430.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.005642/1.067, allocations: 1.748 MB / 0.6399 GB, free: 57.07 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008129/1.075, allocations: 4.287 MB / 0.6441 GB, free: 52.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.686e-05/1.075, allocations: 8.688 kB / 0.6441 GB, free: 52.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005779/1.081, allocations: 3.138 MB / 0.6472 GB, free: 49.62 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005639/1.087, allocations: 1.093 MB / 0.6483 GB, free: 48.53 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/1.097, allocations: 9.644 MB / 0.6577 GB, free: 38.85 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/1.099, allocations: 2.162 MB / 0.6598 GB, free: 36.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00303/1.102, allocations: 1.749 MB / 0.6615 GB, free: 34.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005066/1.102, allocations: 179.4 kB / 0.6617 GB, free: 34.72 MB / 430.1 MB Notification: Performance of SimCode: time 2.625e-06/1.102, allocations: 4 kB / 0.6617 GB, free: 34.72 MB / 430.1 MB Notification: Performance of Templates: time 0.2874/1.39, allocations: 91.32 MB / 0.7508 GB, free: 109 MB / 430.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)