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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002654/0.002659, allocations: 180.6 kB / 8.151 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.787/1.787, allocations: 205.2 MB / 213.8 MB, free: 13.86 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.001286/0.001286, allocations: 95.98 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.056e-05/1.081e-05, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2455, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.905/6.15, allocations: 2.755 GB / 3.109 GB, free: 84.87 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/6.151, allocations: 79.59 kB / 3.109 GB, free: 84.87 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.479/10.63, allocations: 0.9619 GB / 4.071 GB, free: 2.457 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002324/10.63, allocations: 59.69 kB / 4.071 GB, free: 2.402 MB / 458.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.01773/10.65, allocations: 3.43 MB / 4.074 GB, free: 14.93 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/10.65, allocations: 8.031 kB / 4.074 GB, free: 14.92 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02638/10.67, allocations: 1.707 MB / 4.076 GB, free: 13.21 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006803/10.68, allocations: 1.514 MB / 4.077 GB, free: 11.66 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000515/10.68, allocations: 281.8 kB / 4.077 GB, free: 11.35 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009566/10.68, allocations: 107.9 kB / 4.077 GB, free: 11.24 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009367/10.69, allocations: 2.678 MB / 4.08 GB, free: 8.562 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009208/10.7, allocations: 2.726 MB / 4.083 GB, free: 5.695 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.042e-05/10.7, allocations: 7.844 kB / 4.083 GB, free: 5.688 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004979/10.7, allocations: 8 kB / 4.083 GB, free: 5.68 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001995/10.7, allocations: 111.3 kB / 4.083 GB, free: 5.57 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2807/10.98, allocations: 14.38 MB / 4.097 GB, free: 65.04 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003833/10.99, allocations: 1.422 MB / 4.098 GB, free: 65.02 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003235/10.99, allocations: 1.231 MB / 4.1 GB, free: 65 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08443/11.07, allocations: 24.16 MB / 4.123 GB, free: 50.35 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.003e-05/11.07, allocations: 57.81 kB / 4.123 GB, free: 50.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=175): time 3.988e-06/11.07, allocations: 2.688 kB / 4.123 GB, free: 50.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=205): time 0.05479/11.13, allocations: 10.39 MB / 4.133 GB, free: 49.57 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/11.13, allocations: 149 kB / 4.133 GB, free: 49.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001993/11.13, allocations: 0.8355 MB / 4.134 GB, free: 49.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008174/11.13, allocations: 28.39 kB / 4.134 GB, free: 49.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004214/11.13, allocations: 0.6102 MB / 4.135 GB, free: 48.87 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001421/11.13, allocations: 0.646 MB / 4.136 GB, free: 48.53 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003136/11.13, allocations: 0 / 4.136 GB, free: 48.53 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002356/11.13, allocations: 394.2 kB / 4.136 GB, free: 48.21 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003845/11.14, allocations: 1.213 MB / 4.137 GB, free: 48.21 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004383/11.14, allocations: 1.632 MB / 4.139 GB, free: 47.77 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/11.15, allocations: 1.986 MB / 4.141 GB, free: 47.75 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.541e-05/11.15, allocations: 7.812 kB / 4.141 GB, free: 47.74 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.0324/11.19, allocations: 5.262 MB / 4.146 GB, free: 47.54 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/11.19, allocations: 8.344 kB / 4.146 GB, free: 47.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.199e-05/11.19, allocations: 9.781 kB / 4.146 GB, free: 47.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007384/11.19, allocations: 1.517 MB / 4.147 GB, free: 47.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004554/11.2, allocations: 489.5 kB / 4.148 GB, free: 47.47 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01568/11.21, allocations: 7.639 MB / 4.155 GB, free: 42.78 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004554/11.22, allocations: 190.7 kB / 4.155 GB, free: 42.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009798/11.22, allocations: 127.8 kB / 4.156 GB, free: 42.77 MB / 474.7 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.V:DUMMY_DER(fixed = false ) "Actual tank volume" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold3.V:DUMMY_DER(fixed = false ) "Actual tank volume" 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.V:DUMMY_DER(fixed = false ) "Actual tank volume" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold1.V:DUMMY_DER(fixed = false ) "Actual tank volume" 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: $DER.openTankHot2.V:DUMMY_DER(fixed = false ) "Actual tank volume" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold2.V:DUMMY_DER(fixed = false ) "Actual tank volume" 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.001293/11.22, allocations: 129.6 kB / 4.156 GB, free: 42.73 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00358/11.22, allocations: 0.6783 MB / 4.156 GB, free: 42.65 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03017/11.25, allocations: 10.21 MB / 4.166 GB, free: 42.11 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001328/11.26, allocations: 88.36 kB / 4.166 GB, free: 42.11 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/11.26, allocations: 6.156 kB / 4.166 GB, free: 42.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.007e-05/11.26, allocations: 10.27 kB / 4.166 GB, free: 42.11 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03448/11.29, allocations: 13.34 MB / 4.179 GB, free: 41.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.474e-05/11.29, allocations: 0 / 4.179 GB, free: 41.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003809/11.29, allocations: 356.5 kB / 4.18 GB, free: 41.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01063/11.3, allocations: 4.229 MB / 4.184 GB, free: 41.06 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006264/11.31, allocations: 43.45 kB / 4.184 GB, free: 41.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01683/11.32, allocations: 9.786 MB / 4.193 GB, free: 36.29 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/11.32, allocations: 6.188 kB / 4.193 GB, free: 36.29 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02842/11.35, allocations: 11.21 MB / 4.204 GB, free: 35.59 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002395/11.35, allocations: 0.6638 MB / 4.205 GB, free: 35.35 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005829/11.35, allocations: 3.438 kB / 4.205 GB, free: 35.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003941/11.36, allocations: 209.8 kB / 4.205 GB, free: 35.34 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007595/11.36, allocations: 245.1 kB / 4.206 GB, free: 35.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003682/11.36, allocations: 95.61 kB / 4.206 GB, free: 35.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001229/11.36, allocations: 0.6024 MB / 4.206 GB, free: 35.23 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009229/11.37, allocations: 1.8 MB / 4.208 GB, free: 35.16 MB / 474.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: 65 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.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 (167): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * 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.01452/11.38, allocations: 2.862 MB / 4.211 GB, free: 34.77 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01469/11.4, allocations: 4.83 MB / 4.215 GB, free: 34.66 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/11.4, allocations: 6.094 kB / 4.215 GB, free: 34.66 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01013/11.41, allocations: 3.929 MB / 4.219 GB, free: 34.59 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008091/11.42, allocations: 0.8591 MB / 4.22 GB, free: 34.55 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01647/11.43, allocations: 6.637 MB / 4.227 GB, free: 33.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003264/11.44, allocations: 2.209 MB / 4.229 GB, free: 32.42 MB / 474.7 MB Notification: Performance of SimCode: time 1.393e-06/11.44, allocations: 0 / 4.229 GB, free: 32.42 MB / 474.7 MB Notification: Performance of Templates: time 0.4767/11.91, allocations: 156.8 MB / 4.382 GB, free: 62.06 MB / 474.7 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)