Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.0008145/0.0008145, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005395/0.005395, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.57/1.57, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.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.0004892/0.0004892, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2686, allocations: 47.58 MB / 327 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.08494/0.3536, allocations: 94.48 MB / 421.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04496/0.3986, allocations: 35.26 MB / 456.8 MB, free: 1.246 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004303/0.4029, allocations: 67.44 kB / 456.8 MB, free: 1.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2653/0.6682, allocations: 1.174 MB / 458 MB, free: 0 / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01464/0.6829, allocations: 3.94 MB / 461.9 MB, free: 2.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02385/0.7068, allocations: 7.604 MB / 469.5 MB, free: 2.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01246/0.7192, allocations: 8.818 MB / 478.4 MB, free: 2.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003603/0.7229, allocations: 1.749 MB / 480.1 MB, free: 2.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01278/0.7357, allocations: 5.448 MB / 485.6 MB, free: 1.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005413/0.7411, allocations: 2.156 MB / 487.7 MB, free: 1.469 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001335/0.7425, allocations: 142.5 kB / 487.9 MB, free: 1.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02482/0.7673, allocations: 8.975 MB / 496.8 MB, free: 15.38 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001664/0.769, allocations: 0.7378 MB / 497.6 MB, free: 15.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002347/0.7714, allocations: 1.259 MB / 498.8 MB, free: 15.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02477/0.7962, allocations: 8.488 MB / 0.4954 GB, free: 10.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.7962, allocations: 0 / 0.4954 GB, free: 10.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.7962, allocations: 0 / 0.4954 GB, free: 10.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.137e-05/0.7963, allocations: 0 / 0.4954 GB, free: 10.5 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.00789/0.8041, allocations: 2.954 MB / 0.4983 GB, free: 7.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.8042, allocations: 8.031 kB / 0.4983 GB, free: 7.672 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01045/0.8147, allocations: 1.265 MB / 0.4996 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002648/0.8173, allocations: 1.328 MB / 0.5009 GB, free: 5.414 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003175/0.8177, allocations: 347.3 kB / 0.5012 GB, free: 5.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003549/0.818, allocations: 195.7 kB / 0.5014 GB, free: 4.984 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007956/0.826, allocations: 3.502 MB / 0.5048 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.702e-05/0.8261, allocations: 8.406 kB / 0.5048 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002467/0.8263, allocations: 80.45 kB / 0.5049 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001926/0.8265, allocations: 107 kB / 0.505 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008214/0.8347, allocations: 3.524 MB / 0.5084 GB, free: 15.52 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.0207/0.8555, allocations: 14.46 MB / 0.5225 GB, free: 2.809 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007232/0.8627, allocations: 2.922 MB / 0.5254 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002573/0.8653, allocations: 1.476 MB / 0.5268 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05013/0.9155, allocations: 24.51 MB / 0.5508 GB, free: 4.867 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.005e-05/0.9156, allocations: 58.34 kB / 0.5508 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002865/0.9184, allocations: 450.3 kB / 0.5513 GB, free: 4.449 MB / 446.1 MB Notification: Performance of pre-optimization done (n=175): time 1.543e-05/0.9185, allocations: 0 / 0.5513 GB, free: 4.449 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04096/0.9594, allocations: 12.48 MB / 0.5634 GB, free: 8.758 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.9596, allocations: 154.5 kB / 0.5636 GB, free: 8.578 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002206/0.9618, allocations: 1.408 MB / 0.565 GB, free: 7.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002574/0.9621, allocations: 65.7 kB / 0.565 GB, free: 7.09 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007374/0.9628, allocations: 0.7861 MB / 0.5658 GB, free: 6.297 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008033/0.9636, allocations: 0.6713 MB / 0.5665 GB, free: 5.637 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003684/0.964, allocations: 189.9 kB / 0.5666 GB, free: 5.445 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.9641, allocations: 301.1 kB / 0.5669 GB, free: 5.148 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00276/0.9669, allocations: 1.308 MB / 0.5682 GB, free: 3.836 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002923/0.9698, allocations: 1.738 MB / 0.5699 GB, free: 1.926 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005525/0.9754, allocations: 3.012 MB / 0.5728 GB, free: 14.81 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.9754, allocations: 4 kB / 0.5728 GB, free: 14.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.008316/0.9837, allocations: 4.017 MB / 0.5768 GB, free: 10.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.9838, allocations: 8 kB / 0.5768 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/0.9838, allocations: 12 kB / 0.5768 GB, free: 10.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004738/0.9885, allocations: 1.575 MB / 0.5783 GB, free: 9.207 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002011/0.9906, allocations: 473.5 kB / 0.5788 GB, free: 8.77 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006205/0.9968, allocations: 6.703 MB / 0.5853 GB, free: 1.859 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/0.9993, allocations: 223.6 kB / 0.5855 GB, free: 1.641 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002913/0.9996, allocations: 119.7 kB / 0.5856 GB, free: 1.527 MB / 478.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.001169/1.001, allocations: 0.5115 MB / 0.5861 GB, free: 1.027 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005058/1.001, allocations: 193.8 kB / 0.5863 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01551/1.017, allocations: 9.954 MB / 0.5961 GB, free: 6.801 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001018/1.017, allocations: 111.8 kB / 0.5962 GB, free: 6.691 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.247e-05/1.017, allocations: 4 kB / 0.5962 GB, free: 6.688 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.421e-05/1.017, allocations: 11.95 kB / 0.5962 GB, free: 6.676 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02267/1.04, allocations: 13.36 MB / 0.6092 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/1.04, allocations: 4 kB / 0.6092 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001928/1.042, allocations: 415.2 kB / 0.6096 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006854/1.049, allocations: 3.806 MB / 0.6133 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002547/1.049, allocations: 63.91 kB / 0.6134 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2146/1.263, allocations: 8.778 MB / 0.622 GB, free: 229.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.263, allocations: 3.703 kB / 0.622 GB, free: 229.9 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01621/1.28, allocations: 10.8 MB / 0.6325 GB, free: 225.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001743/1.281, allocations: 0.9082 MB / 0.6334 GB, free: 225.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003878/1.282, allocations: 52.69 kB / 0.6335 GB, free: 225.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001968/1.284, allocations: 232.5 kB / 0.6337 GB, free: 225.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000467/1.284, allocations: 225.6 kB / 0.6339 GB, free: 225.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000165/1.285, allocations: 89.72 kB / 0.634 GB, free: 225.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00164/1.286, allocations: 1.27 MB / 0.6352 GB, free: 224.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.286, allocations: 0 / 0.6352 GB, free: 224.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006041/1.292, allocations: 1.799 MB / 0.637 GB, free: 224.8 MB / 0.4981 GB 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.0069/1.299, allocations: 1.751 MB / 0.6387 GB, free: 224.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008811/1.308, allocations: 4.283 MB / 0.6429 GB, free: 223.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.465e-05/1.308, allocations: 3.625 kB / 0.6429 GB, free: 223 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005304/1.313, allocations: 3.143 MB / 0.6459 GB, free: 220.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006199/1.32, allocations: 1.073 MB / 0.647 GB, free: 219.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01561/1.335, allocations: 9.649 MB / 0.6564 GB, free: 210 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001719/1.337, allocations: 2.162 MB / 0.6585 GB, free: 207.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004353/1.341, allocations: 1.741 MB / 0.6602 GB, free: 206.1 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007371/1.342, allocations: 191.3 kB / 0.6604 GB, free: 205.9 MB / 0.4981 GB Notification: Performance of SimCode: time 1.052e-06/1.342, allocations: 0 / 0.6604 GB, free: 205.9 MB / 0.4981 GB Notification: Performance of Templates: time 0.1112/1.453, allocations: 91.31 MB / 0.7496 GB, free: 114.5 MB / 0.4981 GB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)