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.001343/0.001343, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00124/0.00124, allocations: 200.1 kB / 16.26 MB, free: 6.621 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.555/1.555, allocations: 205.1 MB / 222.1 MB, free: 4.727 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.001188/0.001189, allocations: 55.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.2299, allocations: 46.62 MB / 324.8 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.08379/0.3137, allocations: 95.16 MB / 420 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04034/0.3541, allocations: 34.62 MB / 454.6 MB, free: 1.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003077/0.3572, allocations: 75.38 kB / 454.7 MB, free: 1.852 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003207/0.3605, allocations: 1.201 MB / 455.9 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2482/0.6087, allocations: 4.095 MB / 460 MB, free: 2.059 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02375/0.6325, allocations: 7.945 MB / 467.9 MB, free: 1.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008935/0.6414, allocations: 6.201 MB / 474.1 MB, free: 1.898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003221/0.6447, allocations: 1.991 MB / 476.1 MB, free: 1.695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01124/0.6559, allocations: 5.79 MB / 481.9 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004292/0.6603, allocations: 2.228 MB / 484.1 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006901/0.661, allocations: 257.6 kB / 484.4 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02017/0.6811, allocations: 9.051 MB / 493.4 MB, free: 304 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001681/0.6829, allocations: 0.8573 MB / 494.3 MB, free: 8 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002593/0.6855, allocations: 1.369 MB / 495.7 MB, free: 15.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01995/0.7054, allocations: 8.647 MB / 0.4925 GB, free: 10.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.7055, allocations: 3.938 kB / 0.4925 GB, free: 10.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.077e-06/0.7055, allocations: 3.984 kB / 0.4925 GB, free: 10.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.144e-05/0.7055, allocations: 0 / 0.4925 GB, free: 10.27 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.008593/0.7141, allocations: 3.426 MB / 0.4958 GB, free: 7.191 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.7142, allocations: 8.031 kB / 0.4959 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01233/0.7265, allocations: 1.209 MB / 0.497 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002441/0.729, allocations: 1.337 MB / 0.4983 GB, free: 4.977 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002513/0.7293, allocations: 341.3 kB / 0.4987 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003164/0.7296, allocations: 195.9 kB / 0.4989 GB, free: 4.551 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009149/0.7388, allocations: 3.432 MB / 0.5022 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.828e-05/0.7388, allocations: 6.906 kB / 0.5022 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002602/0.7391, allocations: 82.58 kB / 0.5023 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/0.7392, allocations: 103.1 kB / 0.5024 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008449/0.7477, allocations: 3.411 MB / 0.5057 GB, free: 15.28 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.02078/0.7685, allocations: 14.35 MB / 0.5197 GB, free: 2.672 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006858/0.7754, allocations: 2.808 MB / 0.5225 GB, free: 480 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002563/0.778, allocations: 1.431 MB / 0.5239 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04584/0.8238, allocations: 24.28 MB / 0.5476 GB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.279e-05/0.8239, allocations: 60.56 kB / 0.5476 GB, free: 3.828 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002272/0.8262, allocations: 410.9 kB / 0.548 GB, free: 3.434 MB / 446.1 MB Notification: Performance of pre-optimization done (n=175): time 4.458e-06/0.8262, allocations: 0 / 0.548 GB, free: 3.434 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.03565/0.8619, allocations: 11.99 MB / 0.5597 GB, free: 7.477 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.874e-05/0.862, allocations: 154.5 kB / 0.5599 GB, free: 7.297 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001728/0.8637, allocations: 1.408 MB / 0.5613 GB, free: 5.879 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001939/0.864, allocations: 61.7 kB / 0.5613 GB, free: 5.812 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000534/0.8645, allocations: 0.7864 MB / 0.5621 GB, free: 5.02 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005474/0.865, allocations: 0.6794 MB / 0.5628 GB, free: 4.348 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000718/0.8658, allocations: 443.7 kB / 0.5632 GB, free: 3.906 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.477e-05/0.8659, allocations: 301.1 kB / 0.5635 GB, free: 3.609 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002376/0.8683, allocations: 1.265 MB / 0.5647 GB, free: 2.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002627/0.8709, allocations: 1.7 MB / 0.5664 GB, free: 480 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004927/0.8758, allocations: 2.927 MB / 0.5692 GB, free: 13.44 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/0.8759, allocations: 8 kB / 0.5692 GB, free: 13.43 MB / 478.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.007373/0.8832, allocations: 3.935 MB / 0.5731 GB, free: 9.531 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.8833, allocations: 12 kB / 0.5731 GB, free: 9.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.8833, allocations: 11.56 kB / 0.5731 GB, free: 9.512 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004509/0.8878, allocations: 1.588 MB / 0.5746 GB, free: 7.898 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001842/0.8897, allocations: 448.9 kB / 0.5751 GB, free: 7.484 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005598/0.8953, allocations: 6.696 MB / 0.5816 GB, free: 0.582 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002107/0.8974, allocations: 199.7 kB / 0.5818 GB, free: 396 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002228/0.8976, allocations: 115.9 kB / 0.5819 GB, free: 280 kB / 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.001017/0.8987, allocations: 0.5099 MB / 0.5824 GB, free: 15.78 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004186/0.8991, allocations: 197.7 kB / 0.5826 GB, free: 15.58 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/0.9119, allocations: 9.845 MB / 0.5922 GB, free: 5.641 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-05/0.912, allocations: 107.8 kB / 0.5923 GB, free: 5.535 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.912, allocations: 3 kB / 0.5923 GB, free: 5.535 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.733e-05/0.912, allocations: 11.95 kB / 0.5923 GB, free: 5.523 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01682/0.9289, allocations: 13.25 MB / 0.6053 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.9289, allocations: 0 / 0.6053 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/0.9307, allocations: 372 kB / 0.6056 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004952/0.9357, allocations: 2.952 MB / 0.6085 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003707/0.9361, allocations: 59.97 kB / 0.6086 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007634/0.9437, allocations: 8.773 MB / 0.6171 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.9437, allocations: 4.062 kB / 0.6171 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0147/0.9584, allocations: 10.69 MB / 0.6276 GB, free: 1.008 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001423/0.9599, allocations: 0.6942 MB / 0.6282 GB, free: 300 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000456/0.9604, allocations: 107 kB / 0.6284 GB, free: 192 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1557/1.116, allocations: 198.8 kB / 0.6285 GB, free: 248.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008318/1.117, allocations: 222.7 kB / 0.6288 GB, free: 248.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002823/1.117, allocations: 86.66 kB / 0.6288 GB, free: 248.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001912/1.119, allocations: 1.275 MB / 0.6301 GB, free: 248.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.81e-07/1.119, allocations: 1.844 kB / 0.6301 GB, free: 248.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00437/1.124, allocations: 1.786 MB / 0.6318 GB, free: 248.2 MB / 0.5137 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.004608/1.128, allocations: 1.739 MB / 0.6335 GB, free: 248.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01376/1.142, allocations: 5.264 MB / 0.6387 GB, free: 247.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/1.142, allocations: 0.5625 kB / 0.6387 GB, free: 247.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004658/1.147, allocations: 3.136 MB / 0.6417 GB, free: 245.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004369/1.151, allocations: 1.089 MB / 0.6428 GB, free: 245.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008866/1.16, allocations: 9.352 MB / 0.6519 GB, free: 240.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001039/1.161, allocations: 2.163 MB / 0.654 GB, free: 239.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002492/1.163, allocations: 1.731 MB / 0.6557 GB, free: 237.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004806/1.164, allocations: 195.4 kB / 0.6559 GB, free: 237.4 MB / 0.5137 GB Notification: Performance of SimCode: time 4.51e-07/1.164, allocations: 0 / 0.6559 GB, free: 237.4 MB / 0.5137 GB Notification: Performance of Templates: time 0.09897/1.263, allocations: 94.53 MB / 0.7482 GB, free: 142.8 MB / 0.5137 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)