Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) [: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.00115/0.00115, allocations: 183.7 kB / 8.479 MB, free: 1.875 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.19/1.19, allocations: 205.2 MB / 214.1 MB, free: 5.113 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009625/0.0009625, allocations: 79.67 kB / 262.1 MB, free: 5.16 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1676/0.1686, allocations: 52.97 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0697/0.2383, allocations: 47.57 MB / 362.6 MB, free: 9.895 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.172/4.41, allocations: 2.755 GB / 3.109 GB, free: 132.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001766/4.411, allocations: 87.67 kB / 3.109 GB, free: 132.6 MB / 426.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 2.821/7.231, allocations: 0.9652 GB / 4.075 GB, free: 22.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/7.231, allocations: 9.656 kB / 4.075 GB, free: 22.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01533/7.247, allocations: 1.702 MB / 4.076 GB, free: 21.85 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004482/7.251, allocations: 1.517 MB / 4.078 GB, free: 21.07 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003758/7.252, allocations: 288.7 kB / 4.078 GB, free: 20.86 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008837/7.253, allocations: 114 kB / 4.078 GB, free: 20.85 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00607/7.259, allocations: 2.674 MB / 4.081 GB, free: 19.98 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005957/7.265, allocations: 2.717 MB / 4.084 GB, free: 18.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-05/7.265, allocations: 17.84 kB / 4.084 GB, free: 18.21 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006383/7.265, allocations: 8 kB / 4.084 GB, free: 18.21 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001308/7.266, allocations: 108.6 kB / 4.084 GB, free: 18.11 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02234/7.288, allocations: 14.38 MB / 4.098 GB, free: 4.961 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/7.29, allocations: 1.427 MB / 4.099 GB, free: 3.59 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001615/7.292, allocations: 1.225 MB / 4.1 GB, free: 2.363 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2333/7.525, allocations: 24.15 MB / 4.124 GB, free: 64.57 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.026e-05/7.525, allocations: 58.31 kB / 4.124 GB, free: 64.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=175): time 3.396e-06/7.525, allocations: 0 / 4.124 GB, free: 64.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=205): time 0.02907/7.554, allocations: 10.4 MB / 4.134 GB, free: 63.95 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/7.554, allocations: 154.1 kB / 4.134 GB, free: 63.79 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/7.555, allocations: 0.8363 MB / 4.135 GB, free: 63.64 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00021/7.556, allocations: 25.7 kB / 4.135 GB, free: 63.61 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000277/7.556, allocations: 0.6262 MB / 4.136 GB, free: 63.31 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005222/7.556, allocations: 0.6487 MB / 4.136 GB, free: 62.96 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/7.556, allocations: 3.25 kB / 4.136 GB, free: 62.96 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.616e-05/7.557, allocations: 386.2 kB / 4.137 GB, free: 62.65 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001589/7.558, allocations: 1.211 MB / 4.138 GB, free: 62.64 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001766/7.56, allocations: 1.635 MB / 4.139 GB, free: 62.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005238/7.565, allocations: 1.982 MB / 4.141 GB, free: 62.19 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-06/7.565, allocations: 3.375 kB / 4.141 GB, free: 62.19 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01591/7.581, allocations: 5.344 MB / 4.147 GB, free: 61.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/7.581, allocations: 10.41 kB / 4.147 GB, free: 61.95 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/7.581, allocations: 11.19 kB / 4.147 GB, free: 61.95 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003799/7.585, allocations: 1.556 MB / 4.148 GB, free: 61.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002078/7.587, allocations: 492.4 kB / 4.149 GB, free: 61.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00895/7.596, allocations: 7.621 MB / 4.156 GB, free: 57.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002883/7.599, allocations: 193.3 kB / 4.156 GB, free: 57.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003022/7.599, allocations: 126.9 kB / 4.156 GB, free: 57.16 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.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.0007129/7.6, allocations: 217.2 kB / 4.157 GB, free: 57.04 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002158/7.602, allocations: 0.6716 MB / 4.157 GB, free: 56.95 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01523/7.617, allocations: 10.22 MB / 4.167 GB, free: 56.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.009e-05/7.618, allocations: 88.86 kB / 4.167 GB, free: 56.41 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/7.618, allocations: 0 / 4.167 GB, free: 56.41 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.376e-05/7.618, allocations: 10.31 kB / 4.167 GB, free: 56.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01903/7.637, allocations: 13.35 MB / 4.18 GB, free: 55.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/7.637, allocations: 1.844 kB / 4.18 GB, free: 55.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/7.639, allocations: 356.5 kB / 4.181 GB, free: 55.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007025/7.646, allocations: 4.232 MB / 4.185 GB, free: 55.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006494/7.647, allocations: 46.22 kB / 4.185 GB, free: 55.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01215/7.659, allocations: 9.786 MB / 4.194 GB, free: 50.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/7.659, allocations: 2.625 kB / 4.194 GB, free: 50.62 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02131/7.68, allocations: 11.2 MB / 4.205 GB, free: 49.92 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0255/7.706, allocations: 14.65 MB / 4.22 GB, free: 48.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002037/7.708, allocations: 0.6649 MB / 4.22 GB, free: 48.57 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009053/7.709, allocations: 3.75 kB / 4.22 GB, free: 48.57 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003146/7.712, allocations: 216.1 kB / 4.221 GB, free: 48.55 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007398/7.713, allocations: 237.5 kB / 4.221 GB, free: 48.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004634/7.713, allocations: 98.64 kB / 4.221 GB, free: 48.55 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001162/7.714, allocations: 0.6056 MB / 4.221 GB, free: 48.44 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01176/7.726, allocations: 2.057 MB / 4.223 GB, free: 48.37 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.01327/7.739, allocations: 2.863 MB / 4.226 GB, free: 48.08 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009937/7.749, allocations: 4.844 MB / 4.231 GB, free: 47.98 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.188e-06/7.749, allocations: 3.688 kB / 4.231 GB, free: 47.98 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007127/7.757, allocations: 3.946 MB / 4.235 GB, free: 47.42 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005911/7.762, allocations: 0.8519 MB / 4.236 GB, free: 47.29 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/7.777, allocations: 6.608 MB / 4.242 GB, free: 44.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003703/7.781, allocations: 2.272 MB / 4.244 GB, free: 44.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.173e-06/7.781, allocations: 0 / 4.244 GB, free: 44.1 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)