Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001595/0.001595, 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.001755/0.001755, allocations: 194 kB / 16.25 MB, free: 6.617 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.405/1.405, allocations: 205.1 MB / 222.1 MB, free: 4.754 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.001435/0.001435, allocations: 47.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2293, allocations: 46.63 MB / 324.8 MB, free: 1.895 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.08495/0.3143, allocations: 95.14 MB / 420 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04334/0.3576, allocations: 34.63 MB / 454.6 MB, free: 1.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003929/0.3616, allocations: 75.38 kB / 454.7 MB, free: 1.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004131/0.3658, allocations: 1.201 MB / 455.9 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2267/0.5926, allocations: 4.094 MB / 460 MB, free: 2.105 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02008/0.6127, allocations: 7.94 MB / 467.9 MB, free: 1.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007949/0.6207, allocations: 6.199 MB / 474.1 MB, free: 1.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002872/0.6236, allocations: 1.99 MB / 476.1 MB, free: 1.746 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01046/0.6341, allocations: 5.786 MB / 481.9 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003771/0.6379, allocations: 2.235 MB / 484.1 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007074/0.6386, allocations: 256.3 kB / 484.4 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01756/0.6562, allocations: 9.049 MB / 493.4 MB, free: 340 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001692/0.6579, allocations: 0.8587 MB / 494.3 MB, free: 48 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002633/0.6605, allocations: 1.36 MB / 495.7 MB, free: 15.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01813/0.6787, allocations: 8.648 MB / 0.4925 GB, free: 10.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.238e-06/0.6787, allocations: 7.922 kB / 0.4925 GB, free: 10.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6787, allocations: 0 / 0.4925 GB, free: 10.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.201e-05/0.6788, allocations: 8 kB / 0.4925 GB, free: 10.32 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.008519/0.6873, allocations: 3.427 MB / 0.4958 GB, free: 7.246 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.6874, allocations: 8.031 kB / 0.4959 GB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01093/0.6983, allocations: 1.208 MB / 0.497 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002853/0.7012, allocations: 1.339 MB / 0.4983 GB, free: 5.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002968/0.7015, allocations: 341 kB / 0.4987 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000377/0.7019, allocations: 192.7 kB / 0.4988 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008352/0.7103, allocations: 3.43 MB / 0.5022 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.191e-05/0.7103, allocations: 6.516 kB / 0.5022 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002772/0.7106, allocations: 83.95 kB / 0.5023 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/0.7108, allocations: 107.4 kB / 0.5024 GB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008471/0.7193, allocations: 3.406 MB / 0.5057 GB, free: 15.34 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.02032/0.7396, allocations: 14.36 MB / 0.5197 GB, free: 2.723 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006877/0.7465, allocations: 2.807 MB / 0.5225 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002506/0.749, allocations: 1.43 MB / 0.5239 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04696/0.796, allocations: 24.28 MB / 0.5476 GB, free: 3.934 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.337e-05/0.7961, allocations: 56.56 kB / 0.5476 GB, free: 3.871 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003017/0.7992, allocations: 410.8 kB / 0.548 GB, free: 3.477 MB / 446.1 MB Notification: Performance of pre-optimization done (n=175): time 6.722e-06/0.7992, allocations: 0 / 0.548 GB, free: 3.477 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04897/0.8482, allocations: 11.99 MB / 0.5597 GB, free: 7.516 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.741e-05/0.8483, allocations: 150.5 kB / 0.5599 GB, free: 7.34 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/0.8501, allocations: 1.404 MB / 0.5613 GB, free: 5.926 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002238/0.8503, allocations: 65.7 kB / 0.5613 GB, free: 5.855 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005102/0.8508, allocations: 0.785 MB / 0.5621 GB, free: 5.066 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005613/0.8514, allocations: 0.6788 MB / 0.5627 GB, free: 4.395 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007275/0.8521, allocations: 446.6 kB / 0.5632 GB, free: 3.953 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.288e-05/0.8522, allocations: 312.8 kB / 0.5635 GB, free: 3.648 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002421/0.8546, allocations: 1.261 MB / 0.5647 GB, free: 2.383 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002829/0.8575, allocations: 1.699 MB / 0.5664 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005022/0.8625, allocations: 2.925 MB / 0.5692 GB, free: 13.48 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.8625, allocations: 0 / 0.5692 GB, free: 13.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.007496/0.87, allocations: 3.942 MB / 0.5731 GB, free: 9.574 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.8701, allocations: 8 kB / 0.5731 GB, free: 9.566 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.8701, allocations: 14.91 kB / 0.5731 GB, free: 9.555 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004683/0.8748, allocations: 1.581 MB / 0.5746 GB, free: 7.949 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/0.8769, allocations: 453.5 kB / 0.5751 GB, free: 7.531 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005904/0.8828, allocations: 6.697 MB / 0.5816 GB, free: 0.625 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/0.8853, allocations: 195.6 kB / 0.5818 GB, free: 444 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002318/0.8856, allocations: 115.9 kB / 0.5819 GB, free: 328 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.001099/0.8867, allocations: 0.5199 MB / 0.5824 GB, free: 15.82 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004874/0.8872, allocations: 197.7 kB / 0.5826 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01389/0.9011, allocations: 9.846 MB / 0.5922 GB, free: 5.68 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.653e-05/0.9012, allocations: 111.7 kB / 0.5923 GB, free: 5.574 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/0.9012, allocations: 0 / 0.5923 GB, free: 5.574 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.21e-05/0.9013, allocations: 11.95 kB / 0.5923 GB, free: 5.562 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0187/0.92, allocations: 13.25 MB / 0.6053 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.92, allocations: 0 / 0.6053 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001876/0.9219, allocations: 370.5 kB / 0.6056 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005091/0.927, allocations: 2.95 MB / 0.6085 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000312/0.9274, allocations: 59.97 kB / 0.6086 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008045/0.9354, allocations: 8.765 MB / 0.6171 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.9355, allocations: 0 / 0.6171 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01633/0.9518, allocations: 10.7 MB / 0.6276 GB, free: 1.059 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001653/0.9535, allocations: 0.6873 MB / 0.6282 GB, free: 356 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000712/0.9542, allocations: 111 kB / 0.6283 GB, free: 244 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/0.9566, allocations: 207.5 kB / 0.6285 GB, free: 36 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.1719/1.129, allocations: 217.8 kB / 0.6287 GB, free: 248.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003625/1.129, allocations: 87.25 kB / 0.6288 GB, free: 248.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002303/1.131, allocations: 1.277 MB / 0.6301 GB, free: 247.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.21e-07/1.131, allocations: 0 / 0.6301 GB, free: 247.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005382/1.137, allocations: 1.782 MB / 0.6318 GB, free: 247.9 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.005812/1.142, allocations: 1.753 MB / 0.6335 GB, free: 247.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01465/1.157, allocations: 5.265 MB / 0.6387 GB, free: 247 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/1.157, allocations: 4.469 kB / 0.6387 GB, free: 247 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004869/1.162, allocations: 3.121 MB / 0.6417 GB, free: 245.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004746/1.167, allocations: 1.092 MB / 0.6428 GB, free: 245.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009651/1.177, allocations: 9.367 MB / 0.6519 GB, free: 240.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/1.178, allocations: 2.162 MB / 0.6541 GB, free: 239.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00253/1.18, allocations: 1.728 MB / 0.6557 GB, free: 237.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004903/1.181, allocations: 187.4 kB / 0.6559 GB, free: 237.5 MB / 0.5137 GB Notification: Performance of SimCode: time 6.61e-07/1.181, allocations: 0 / 0.6559 GB, free: 237.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.1016/1.282, allocations: 94.53 MB / 0.7482 GB, free: 142.8 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)