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.001495/0.001495, allocations: 179 kB / 8.364 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.116/2.116, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 86.83 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.965e-05/2.97e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3587, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.226/8.584, allocations: 2.755 GB / 3.109 GB, free: 86.32 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/8.585, allocations: 83.59 kB / 3.109 GB, free: 86.32 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.818/13.4, allocations: 0.9577 GB / 4.067 GB, free: 14.21 MB / 459.1 MB Notification: Performance of FrontEnd: time 2.054e-06/13.4, allocations: 0 / 4.067 GB, free: 14.21 MB / 459.1 MB Notification: Performance of Transformations before backend: time 0.0002527/13.4, allocations: 59.78 kB / 4.067 GB, free: 14.15 MB / 459.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.01613/13.42, allocations: 3.389 MB / 4.07 GB, free: 10.72 MB / 459.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/13.42, allocations: 12.02 kB / 4.07 GB, free: 10.71 MB / 459.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02254/13.44, allocations: 1.23 MB / 4.072 GB, free: 9.48 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006046/13.45, allocations: 1.531 MB / 4.073 GB, free: 7.918 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004239/13.45, allocations: 277.8 kB / 4.073 GB, free: 7.609 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009907/13.45, allocations: 115.9 kB / 4.073 GB, free: 7.496 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007957/13.46, allocations: 2.662 MB / 4.076 GB, free: 4.832 MB / 459.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008935/13.47, allocations: 2.703 MB / 4.079 GB, free: 1.988 MB / 459.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-05/13.47, allocations: 7.938 kB / 4.079 GB, free: 1.98 MB / 459.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005078/13.47, allocations: 4 kB / 4.079 GB, free: 1.977 MB / 459.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002154/13.47, allocations: 111.3 kB / 4.079 GB, free: 1.867 MB / 459.1 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.04091/13.51, allocations: 13.99 MB / 4.092 GB, free: 3.125 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006149/13.51, allocations: 2.087 MB / 4.094 GB, free: 1.035 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3934/13.91, allocations: 1.22 MB / 4.096 GB, free: 35.9 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0264/13.93, allocations: 8.266 MB / 4.104 GB, free: 30.93 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.106e-05/13.93, allocations: 57.81 kB / 4.104 GB, free: 30.89 MB / 475.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005676/13.94, allocations: 0.5076 MB / 4.104 GB, free: 30.89 MB / 475.1 MB Notification: Performance of pre-optimization done (n=175): time 1.282e-05/13.94, allocations: 0 / 4.104 GB, free: 30.89 MB / 475.1 MB Notification: Performance of matching and sorting (n=205): time 0.05025/13.99, allocations: 9.843 MB / 4.114 GB, free: 30.21 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/13.99, allocations: 149.8 kB / 4.114 GB, free: 30.05 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001705/13.99, allocations: 0.828 MB / 4.115 GB, free: 29.9 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006816/13.99, allocations: 29.95 kB / 4.115 GB, free: 29.87 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006091/13.99, allocations: 0.7838 MB / 4.116 GB, free: 29.51 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001113/13.99, allocations: 0.6485 MB / 4.116 GB, free: 29.17 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/13.99, allocations: 3 kB / 4.116 GB, free: 29.17 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/13.99, allocations: 395.3 kB / 4.117 GB, free: 28.85 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002783/14, allocations: 1.059 MB / 4.118 GB, free: 28.84 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003538/14, allocations: 1.482 MB / 4.119 GB, free: 28.41 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009327/14.01, allocations: 1.808 MB / 4.121 GB, free: 28.39 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.59e-05/14.01, allocations: 3.781 kB / 4.121 GB, free: 28.39 MB / 475.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.0168/14.03, allocations: 3.945 MB / 4.125 GB, free: 28.19 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.589e-05/14.03, allocations: 8.719 kB / 4.125 GB, free: 28.19 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.619e-05/14.03, allocations: 11.25 kB / 4.125 GB, free: 28.19 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006615/14.03, allocations: 1.485 MB / 4.126 GB, free: 28.12 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003924/14.04, allocations: 461.5 kB / 4.127 GB, free: 28.12 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/14.05, allocations: 7.217 MB / 4.134 GB, free: 23.42 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004482/14.06, allocations: 176.7 kB / 4.134 GB, free: 23.41 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000714/14.06, allocations: 112.5 kB / 4.134 GB, free: 23.41 MB / 475.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot3.mb_flow:VARIABLE(min = max(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), -100000.0) max = min(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), 100000.0) unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot1.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot1.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot1.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankCold1.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold2.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold2.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real 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 {2 4,2 4,4 6,2 4,2 4,4 6,2 4,2 4,4 8} Notification: Performance of prepare postOptimizeDAE: time 0.001062/14.06, allocations: 217.8 kB / 4.134 GB, free: 23.29 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007251/14.06, allocations: 169.4 kB / 4.134 GB, free: 23.21 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02456/14.08, allocations: 10.05 MB / 4.144 GB, free: 22.24 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001737/14.08, allocations: 106.3 kB / 4.144 GB, free: 22.24 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/14.08, allocations: 3.25 kB / 4.144 GB, free: 22.24 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.923e-05/14.08, allocations: 14.28 kB / 4.144 GB, free: 22.24 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03251/14.12, allocations: 13.18 MB / 4.157 GB, free: 21.36 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-05/14.12, allocations: 0 / 4.157 GB, free: 21.36 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003554/14.12, allocations: 407.1 kB / 4.158 GB, free: 21.36 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01066/14.13, allocations: 4.649 MB / 4.162 GB, free: 21.16 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006902/14.13, allocations: 37.11 kB / 4.162 GB, free: 21.16 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/14.15, allocations: 9.813 MB / 4.172 GB, free: 16.36 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/14.15, allocations: 0 / 4.172 GB, free: 16.36 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02488/14.17, allocations: 10.63 MB / 4.182 GB, free: 15.62 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002688/14.17, allocations: 0.8716 MB / 4.183 GB, free: 15.27 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006965/14.17, allocations: 8.484 kB / 4.183 GB, free: 15.27 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003819/14.18, allocations: 198.8 kB / 4.183 GB, free: 15.25 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007672/14.18, allocations: 228.2 kB / 4.183 GB, free: 15.25 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003733/14.18, allocations: 87.2 kB / 4.183 GB, free: 15.25 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.001735/14.18, allocations: 0.9008 MB / 4.184 GB, free: 15.14 MB / 475.1 MB Notification: Performance of sort global known variables: time 5.11e-07/14.18, allocations: 0 / 4.184 GB, free: 15.14 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.009101/14.19, allocations: 1.791 MB / 4.186 GB, free: 15.07 MB / 475.1 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.01312/14.2, allocations: 2.799 MB / 4.189 GB, free: 14.77 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.01107/14.21, allocations: 3.816 MB / 4.193 GB, free: 14.69 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/14.21, allocations: 4.125 kB / 4.193 GB, free: 14.69 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008415/14.22, allocations: 2.904 MB / 4.195 GB, free: 14.64 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008283/14.23, allocations: 0.9005 MB / 4.196 GB, free: 14.62 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01564/14.25, allocations: 6.448 MB / 4.203 GB, free: 13.41 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002095/14.25, allocations: 2.194 MB / 4.205 GB, free: 12.64 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001291/14.25, allocations: 187.6 kB / 4.205 GB, free: 12.64 MB / 475.1 MB Notification: Performance of SimCode: time 1.773e-06/14.25, allocations: 3.781 kB / 4.205 GB, free: 12.64 MB / 475.1 MB Notification: Performance of Templates: time 0.6587/14.91, allocations: 172.7 MB / 4.374 GB, free: 38.35 MB / 491.1 MB 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)