Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 182.8 kB / 8.135 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.148/1.148, allocations: 221.4 MB / 229.9 MB, free: 3.066 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009514/0.0009513, allocations: 105.1 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1019/0.1028, allocations: 55.82 MB / 336.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.2892, allocations: 50.39 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.981/4.271, allocations: 2.76 GB / 3.138 GB, free: 53.18 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/4.271, allocations: 83.89 kB / 3.138 GB, free: 53.1 MB / 442.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.911/7.182, allocations: 0.9755 GB / 4.114 GB, free: 30.76 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/7.182, allocations: 14.81 kB / 4.114 GB, free: 30.76 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01456/7.197, allocations: 1.706 MB / 4.116 GB, free: 30.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003744/7.201, allocations: 1.518 MB / 4.117 GB, free: 30.26 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002669/7.201, allocations: 281.1 kB / 4.117 GB, free: 30.07 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006257/7.202, allocations: 118.4 kB / 4.117 GB, free: 30.06 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005093/7.207, allocations: 2.674 MB / 4.12 GB, free: 30.05 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004922/7.212, allocations: 2.726 MB / 4.123 GB, free: 29.63 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.025e-05/7.212, allocations: 10.81 kB / 4.123 GB, free: 29.63 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003572/7.212, allocations: 3.938 kB / 4.123 GB, free: 29.63 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.876e-05/7.212, allocations: 112.9 kB / 4.123 GB, free: 29.62 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01908/7.231, allocations: 14.39 MB / 4.137 GB, free: 22.36 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001778/7.233, allocations: 1.42 MB / 4.138 GB, free: 22.33 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/7.235, allocations: 1.227 MB / 4.139 GB, free: 22.32 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04338/7.278, allocations: 24.17 MB / 4.163 GB, free: 23.46 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.659e-05/7.278, allocations: 56.56 kB / 4.163 GB, free: 23.42 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=175): time 5.16e-06/7.278, allocations: 0 / 4.163 GB, free: 23.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=205): time 0.03104/7.309, allocations: 10.41 MB / 4.173 GB, free: 22.45 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.401e-05/7.309, allocations: 154.1 kB / 4.173 GB, free: 22.29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/7.311, allocations: 0.8441 MB / 4.174 GB, free: 22.12 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003474/7.311, allocations: 29.64 kB / 4.174 GB, free: 22.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003271/7.311, allocations: 0.6214 MB / 4.175 GB, free: 21.71 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006698/7.312, allocations: 0.6485 MB / 4.176 GB, free: 21.27 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002293/7.312, allocations: 0 / 4.176 GB, free: 21.27 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002211/7.312, allocations: 389.5 kB / 4.176 GB, free: 20.97 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001761/7.314, allocations: 1.212 MB / 4.177 GB, free: 20.96 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001992/7.316, allocations: 1.627 MB / 4.179 GB, free: 20.51 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00558/7.322, allocations: 1.985 MB / 4.181 GB, free: 20.45 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/7.322, allocations: 3.062 kB / 4.181 GB, free: 20.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.018/7.34, allocations: 5.342 MB / 4.186 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/7.34, allocations: 3.562 kB / 4.186 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.763e-05/7.34, allocations: 12.81 kB / 4.186 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004352/7.344, allocations: 1.565 MB / 4.187 GB, free: 20.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002462/7.347, allocations: 484.6 kB / 4.188 GB, free: 20.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009782/7.357, allocations: 7.621 MB / 4.195 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002844/7.359, allocations: 187.4 kB / 4.195 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004913/7.36, allocations: 127.3 kB / 4.196 GB, free: 15.29 MB / 0.4948 GB 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.000874/7.361, allocations: 203.3 kB / 4.196 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002275/7.363, allocations: 0.6839 MB / 4.196 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01546/7.379, allocations: 10.21 MB / 4.206 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.579e-05/7.379, allocations: 96.31 kB / 4.207 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.644e-05/7.379, allocations: 0 / 4.207 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.562e-05/7.379, allocations: 11.95 kB / 4.207 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01877/7.398, allocations: 13.35 MB / 4.22 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.778e-05/7.398, allocations: 4 kB / 4.22 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/7.399, allocations: 352.9 kB / 4.22 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00608/7.406, allocations: 4.217 MB / 4.224 GB, free: 7.555 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003203/7.406, allocations: 47.14 kB / 4.224 GB, free: 7.523 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01202/7.418, allocations: 9.797 MB / 4.234 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/7.418, allocations: 4.125 kB / 4.234 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01902/7.437, allocations: 11.21 MB / 4.245 GB, free: 4.223 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2044/7.641, allocations: 14.67 MB / 4.259 GB, free: 92.38 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001892/7.643, allocations: 0.6678 MB / 4.26 GB, free: 92.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005973/7.644, allocations: 4.844 kB / 4.26 GB, free: 92.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002347/7.646, allocations: 209.9 kB / 4.26 GB, free: 92.29 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004742/7.647, allocations: 237.6 kB / 4.26 GB, free: 92.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002302/7.647, allocations: 102.6 kB / 4.26 GB, free: 92.29 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0007083/7.648, allocations: 0.6072 MB / 4.261 GB, free: 92.18 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007499/7.655, allocations: 2.057 MB / 4.263 GB, free: 92.18 MB / 0.5105 GB 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.008459/7.664, allocations: 2.861 MB / 4.265 GB, free: 91.97 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007143/7.671, allocations: 4.855 MB / 4.27 GB, free: 91.88 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/7.671, allocations: 3.969 kB / 4.27 GB, free: 91.88 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005153/7.676, allocations: 3.936 MB / 4.274 GB, free: 91.83 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004673/7.681, allocations: 0.8515 MB / 4.275 GB, free: 91.82 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/7.691, allocations: 6.593 MB / 4.281 GB, free: 90.91 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001885/7.693, allocations: 2.272 MB / 4.284 GB, free: 90.14 MB / 0.5105 GB Notification: Performance of SimCode: time 8.01e-07/7.693, allocations: 0 / 4.284 GB, free: 90.14 MB / 0.5105 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)