Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001542/0.001541, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.918/1.918, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 92.42 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003874/0.0003874, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3373, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.943/8.281, allocations: 2.756 GB / 3.122 GB, free: 40.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/8.281, allocations: 90.64 kB / 3.122 GB, free: 40.15 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.041/13.32, allocations: 0.9689 GB / 4.091 GB, free: 30.13 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.695e-06/13.32, allocations: 0 / 4.091 GB, free: 30.13 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002331/13.32, allocations: 58.58 kB / 4.091 GB, free: 30.12 MB / 474.7 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.01668/13.34, allocations: 3.585 MB / 4.094 GB, free: 28.32 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/13.34, allocations: 13.3 kB / 4.094 GB, free: 28.32 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02376/13.36, allocations: 1.227 MB / 4.096 GB, free: 28.2 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00575/13.37, allocations: 1.523 MB / 4.097 GB, free: 27.82 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004626/13.37, allocations: 353.3 kB / 4.097 GB, free: 27.62 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000974/13.37, allocations: 180.6 kB / 4.098 GB, free: 27.62 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/13.38, allocations: 3.533 MB / 4.101 GB, free: 27.2 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.22e-05/13.38, allocations: 10.25 kB / 4.101 GB, free: 27.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005109/13.39, allocations: 84.73 kB / 4.101 GB, free: 27.2 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001967/13.39, allocations: 102.9 kB / 4.101 GB, free: 27.19 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01573/13.4, allocations: 3.514 MB / 4.105 GB, free: 27.18 MB / 474.7 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.03569/13.44, allocations: 14.42 MB / 4.119 GB, free: 19.98 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/13.45, allocations: 2.873 MB / 4.122 GB, free: 19.93 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02611/13.48, allocations: 8.245 MB / 4.13 GB, free: 14.95 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.501e-05/13.48, allocations: 58.84 kB / 4.13 GB, free: 14.91 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00582/13.48, allocations: 0.5731 MB / 4.13 GB, free: 14.81 MB / 474.7 MB Notification: Performance of pre-optimization done (n=175): time 1.511e-05/13.48, allocations: 2.156 kB / 4.13 GB, free: 14.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=205): time 0.06871/13.55, allocations: 12.3 MB / 4.142 GB, free: 13.45 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.792e-05/13.55, allocations: 153.8 kB / 4.142 GB, free: 13.29 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/13.55, allocations: 1.231 MB / 4.144 GB, free: 13.12 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007165/13.55, allocations: 63.67 kB / 4.144 GB, free: 13.09 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005644/13.55, allocations: 0.7383 MB / 4.144 GB, free: 12.71 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001021/13.55, allocations: 0.6677 MB / 4.145 GB, free: 12.28 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003121/13.56, allocations: 43.06 kB / 4.145 GB, free: 12.28 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/13.56, allocations: 398.9 kB / 4.145 GB, free: 11.96 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004576/13.56, allocations: 1.258 MB / 4.147 GB, free: 11.95 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005068/13.57, allocations: 1.698 MB / 4.148 GB, free: 11.47 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004931/13.57, allocations: 1.359 MB / 4.15 GB, free: 11.27 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.615e-05/13.57, allocations: 7.469 kB / 4.15 GB, free: 11.26 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01379/13.58, allocations: 3.828 MB / 4.153 GB, free: 9.809 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/13.58, allocations: 11.34 kB / 4.153 GB, free: 9.809 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/13.58, allocations: 11.19 kB / 4.153 GB, free: 9.809 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007804/13.59, allocations: 1.549 MB / 4.155 GB, free: 9.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003937/13.6, allocations: 458.4 kB / 4.155 GB, free: 9.363 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008072/13.6, allocations: 6.61 MB / 4.162 GB, free: 3.914 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004437/13.61, allocations: 219.5 kB / 4.162 GB, free: 3.852 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006166/13.61, allocations: 110 kB / 4.162 GB, free: 3.832 MB / 474.7 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 (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 initialization (213): * Single equations (assignments): 204 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {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.001719/13.61, allocations: 0.5084 MB / 4.163 GB, free: 3.52 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006975/13.61, allocations: 197.3 kB / 4.163 GB, free: 3.422 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02348/13.64, allocations: 9.89 MB / 4.172 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001545/13.64, allocations: 103.8 kB / 4.173 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-05/13.64, allocations: 3.938 kB / 4.173 GB, free: 11.81 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.771e-05/13.64, allocations: 13.92 kB / 4.173 GB, free: 11.81 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03154/13.67, allocations: 13.37 MB / 4.186 GB, free: 396 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.678e-05/13.67, allocations: 0 / 4.186 GB, free: 396 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003595/13.67, allocations: 398.2 kB / 4.186 GB, free: 72 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.4129/14.08, allocations: 4.148 MB / 4.19 GB, free: 45.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006579/14.08, allocations: 61.06 kB / 4.19 GB, free: 45.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01111/14.1, allocations: 8.778 MB / 4.199 GB, free: 40.52 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/14.1, allocations: 0 / 4.199 GB, free: 40.52 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02538/14.12, allocations: 10.71 MB / 4.209 GB, free: 39.97 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002816/14.12, allocations: 0.9124 MB / 4.21 GB, free: 39.77 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009983/14.12, allocations: 43.41 kB / 4.21 GB, free: 39.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004426/14.13, allocations: 237 kB / 4.21 GB, free: 39.76 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001031/14.13, allocations: 233.8 kB / 4.211 GB, free: 39.76 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003623/14.13, allocations: 86.94 kB / 4.211 GB, free: 39.76 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002748/14.13, allocations: 1.251 MB / 4.212 GB, free: 39.61 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.02e-07/14.13, allocations: 0 / 4.212 GB, free: 39.61 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009858/14.14, allocations: 1.918 MB / 4.214 GB, free: 39.61 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.medium.h,openTankCold2.level,openTankCold1.medium.h,openTankCold1.level,openTankHot1.medium.h,openTankHot1.level,openTankHot2.medium.h,openTankHot2.level,openTankCold3.medium.h,openTankCold3.level,openTankHot3.medium.h,openTankHot3.level) * Number of discrete variables: 71 ($cse1.phase,$cse1.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,6 9,2 4,2 4,6 9,2 4,2 4,6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01424/14.16, allocations: 2.586 MB / 4.216 GB, free: 39.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01495/14.17, allocations: 4.232 MB / 4.22 GB, free: 39.29 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/14.17, allocations: 0.5625 kB / 4.22 GB, free: 39.29 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009823/14.18, allocations: 3.133 MB / 4.223 GB, free: 39.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00879/14.19, allocations: 1.048 MB / 4.224 GB, free: 39.21 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01899/14.21, allocations: 9.552 MB / 4.234 GB, free: 35.77 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/14.21, allocations: 2.195 MB / 4.236 GB, free: 35.02 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001375/14.21, allocations: 197.8 kB / 4.236 GB, free: 35.01 MB / 490.7 MB Notification: Performance of SimCode: time 1.693e-06/14.21, allocations: 0 / 4.236 GB, free: 35.01 MB / 490.7 MB Notification: Performance of Templates: time 0.6593/14.87, allocations: 174.1 MB / 4.406 GB, free: 76.34 MB / 0.5105 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)