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.001549/0.001549, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001065/0.001065, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.959e-05/2.981e-05, allocations: 0 / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09876/0.09882, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.368/8.467, allocations: 2.756 GB / 3.116 GB, free: 4.816 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/8.467, allocations: 85.7 kB / 3.117 GB, free: 4.777 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.132/13.6, allocations: 0.966 GB / 4.083 GB, free: 29.66 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.244e-06/13.6, allocations: 0 / 4.083 GB, free: 29.66 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000259/13.6, allocations: 54.88 kB / 4.083 GB, free: 29.64 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.0165/13.62, allocations: 3.385 MB / 4.086 GB, free: 27.93 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/13.62, allocations: 13.84 kB / 4.086 GB, free: 27.93 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02245/13.64, allocations: 1.23 MB / 4.087 GB, free: 27.81 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005941/13.64, allocations: 1.522 MB / 4.089 GB, free: 27.38 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000502/13.64, allocations: 350.8 kB / 4.089 GB, free: 27.18 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/13.65, allocations: 181.3 kB / 4.089 GB, free: 27.18 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/13.66, allocations: 3.471 MB / 4.092 GB, free: 26.75 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.453e-05/13.66, allocations: 15.09 kB / 4.092 GB, free: 26.73 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005181/13.66, allocations: 87.3 kB / 4.093 GB, free: 26.73 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002057/13.66, allocations: 102.1 kB / 4.093 GB, free: 26.73 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01264/13.67, allocations: 3.307 MB / 4.096 GB, free: 26.69 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.0374/13.71, allocations: 14.43 MB / 4.11 GB, free: 19.48 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009367/13.72, allocations: 2.697 MB / 4.113 GB, free: 19.41 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003474/13.72, allocations: 1.27 MB / 4.114 GB, free: 19.05 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02611/13.75, allocations: 8.267 MB / 4.122 GB, free: 13.75 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.829e-05/13.75, allocations: 65.08 kB / 4.122 GB, free: 13.68 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005775/13.75, allocations: 0.5644 MB / 4.123 GB, free: 13.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=175): time 1.081e-05/13.75, allocations: 0 / 4.123 GB, free: 13.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=205): time 0.04952/13.8, allocations: 10.13 MB / 4.132 GB, free: 10.36 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.045e-05/13.8, allocations: 150.2 kB / 4.133 GB, free: 10.21 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/13.81, allocations: 1.209 MB / 4.134 GB, free: 9.137 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006764/13.81, allocations: 65.7 kB / 4.134 GB, free: 9.066 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000543/13.81, allocations: 0.7428 MB / 4.135 GB, free: 8.363 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000997/13.81, allocations: 0.6704 MB / 4.135 GB, free: 7.758 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/13.81, allocations: 48 kB / 4.135 GB, free: 7.711 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/13.81, allocations: 388.1 kB / 4.136 GB, free: 7.348 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003015/13.81, allocations: 1.103 MB / 4.137 GB, free: 6.348 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00353/13.82, allocations: 1.526 MB / 4.138 GB, free: 4.781 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003363/13.82, allocations: 1.211 MB / 4.139 GB, free: 3.746 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/13.82, allocations: 4 kB / 4.139 GB, free: 3.742 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01035/13.83, allocations: 3.501 MB / 4.143 GB, free: 0.6484 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/13.83, allocations: 20 kB / 4.143 GB, free: 0.6328 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.503e-05/13.83, allocations: 12 kB / 4.143 GB, free: 0.6211 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008068/13.84, allocations: 1.564 MB / 4.144 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004143/13.84, allocations: 460.6 kB / 4.145 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009799/13.85, allocations: 6.604 MB / 4.151 GB, free: 8.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004555/13.86, allocations: 222.5 kB / 4.151 GB, free: 8.414 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007859/13.86, allocations: 114.6 kB / 4.152 GB, free: 8.32 MB / 490.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 () * 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.0008561/13.86, allocations: 235.6 kB / 4.152 GB, free: 8.082 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007837/13.86, allocations: 197.7 kB / 4.152 GB, free: 7.887 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4129/14.27, allocations: 9.71 MB / 4.161 GB, free: 43.59 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001702/14.27, allocations: 103.2 kB / 4.162 GB, free: 43.59 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.797e-05/14.27, allocations: 4.375 kB / 4.162 GB, free: 43.59 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.12e-05/14.27, allocations: 12.05 kB / 4.162 GB, free: 43.59 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03054/14.3, allocations: 13.12 MB / 4.174 GB, free: 42.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.715e-05/14.3, allocations: 3.391 kB / 4.174 GB, free: 42.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003802/14.31, allocations: 399.7 kB / 4.175 GB, free: 42.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01172/14.32, allocations: 4.696 MB / 4.179 GB, free: 42.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006945/14.32, allocations: 63 kB / 4.179 GB, free: 42.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/14.33, allocations: 8.761 MB / 4.188 GB, free: 38 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/14.33, allocations: 3.094 kB / 4.188 GB, free: 38 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02168/14.35, allocations: 10.22 MB / 4.198 GB, free: 37.42 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002777/14.36, allocations: 0.9094 MB / 4.199 GB, free: 37.14 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006916/14.36, allocations: 51.45 kB / 4.199 GB, free: 37.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003915/14.36, allocations: 233.7 kB / 4.199 GB, free: 37.12 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007974/14.36, allocations: 230.7 kB / 4.199 GB, free: 37.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003143/14.36, allocations: 87.62 kB / 4.199 GB, free: 37.12 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002694/14.36, allocations: 1.233 MB / 4.201 GB, free: 36.96 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.11e-07/14.36, allocations: 0 / 4.201 GB, free: 36.96 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01013/14.37, allocations: 1.917 MB / 4.202 GB, free: 36.96 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 () * 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.01327/14.39, allocations: 2.591 MB / 4.205 GB, free: 36.69 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01199/14.4, allocations: 3.911 MB / 4.209 GB, free: 36.61 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/14.4, allocations: 0.5625 kB / 4.209 GB, free: 36.61 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009175/14.41, allocations: 2.961 MB / 4.212 GB, free: 36.55 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009383/14.42, allocations: 1.057 MB / 4.213 GB, free: 36.51 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/14.43, allocations: 6.623 MB / 4.219 GB, free: 35.29 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002007/14.44, allocations: 2.191 MB / 4.221 GB, free: 34.54 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/14.44, allocations: 203.4 kB / 4.222 GB, free: 34.54 MB / 490.7 MB Notification: Performance of SimCode: time 1.333e-06/14.44, allocations: 0 / 4.222 GB, free: 34.54 MB / 490.7 MB Notification: Performance of Templates: time 0.6742/15.11, allocations: 173.9 MB / 4.391 GB, free: 60.17 MB / 0.4948 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)