Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001082/0.001082, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.132/1.132, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008555/0.0008556, allocations: 90.22 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09166/0.09254, allocations: 56.9 MB / 343.2 MB, free: 8.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08496/0.1775, allocations: 51.47 MB / 394.7 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.787/3.965, allocations: 2.761 GB / 3.147 GB, free: 110.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/3.965, allocations: 78.11 kB / 3.147 GB, free: 110.5 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 2.519/6.484, allocations: 0.9759 GB / 4.123 GB, free: 25.28 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/6.484, allocations: 6.719 kB / 4.123 GB, free: 25.28 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01431/6.498, allocations: 1.714 MB / 4.124 GB, free: 25.17 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003456/6.502, allocations: 1.52 MB / 4.126 GB, free: 24.71 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002477/6.502, allocations: 283 kB / 4.126 GB, free: 24.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004952/6.503, allocations: 116.3 kB / 4.126 GB, free: 24.5 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00445/6.507, allocations: 2.675 MB / 4.129 GB, free: 23.62 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004153/6.511, allocations: 2.719 MB / 4.131 GB, free: 22.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.998e-05/6.511, allocations: 14.03 kB / 4.131 GB, free: 22.47 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002907/6.512, allocations: 6.125 kB / 4.131 GB, free: 22.47 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-05/6.512, allocations: 106.1 kB / 4.132 GB, free: 22.46 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01817/6.53, allocations: 14.45 MB / 4.146 GB, free: 12.79 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/6.532, allocations: 1.425 MB / 4.147 GB, free: 12.25 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/6.533, allocations: 1.228 MB / 4.148 GB, free: 11.77 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0458/6.579, allocations: 27.26 MB / 4.175 GB, free: 1.977 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.31e-05/6.579, allocations: 60.75 kB / 4.175 GB, free: 1.91 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=175): time 3.576e-06/6.579, allocations: 0 / 4.175 GB, free: 1.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=205): time 0.2/6.779, allocations: 10.41 MB / 4.185 GB, free: 75.05 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/6.779, allocations: 151.1 kB / 4.185 GB, free: 74.89 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/6.78, allocations: 0.8405 MB / 4.186 GB, free: 74.74 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001883/6.78, allocations: 25.7 kB / 4.186 GB, free: 74.71 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002685/6.781, allocations: 0.6214 MB / 4.187 GB, free: 74.41 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004864/6.781, allocations: 0.6506 MB / 4.187 GB, free: 74.05 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/6.781, allocations: 0 / 4.187 GB, free: 74.05 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.989e-05/6.781, allocations: 388.8 kB / 4.188 GB, free: 73.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/6.783, allocations: 1.218 MB / 4.189 GB, free: 73.74 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001763/6.785, allocations: 1.63 MB / 4.19 GB, free: 73.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005271/6.79, allocations: 1.988 MB / 4.192 GB, free: 73.28 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/6.79, allocations: 10.36 kB / 4.192 GB, free: 73.28 MB / 0.4948 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01575/6.806, allocations: 5.343 MB / 4.198 GB, free: 73.04 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/6.806, allocations: 3.719 kB / 4.198 GB, free: 73.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/6.806, allocations: 11.31 kB / 4.198 GB, free: 73.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00388/6.81, allocations: 1.555 MB / 4.199 GB, free: 72.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/6.812, allocations: 487.9 kB / 4.2 GB, free: 72.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007932/6.82, allocations: 7.617 MB / 4.207 GB, free: 68.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002339/6.822, allocations: 190.1 kB / 4.207 GB, free: 68.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000271/6.822, allocations: 127.4 kB / 4.207 GB, free: 68.25 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.0005736/6.823, allocations: 216.1 kB / 4.208 GB, free: 68.13 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001829/6.825, allocations: 0.6783 MB / 4.208 GB, free: 68.05 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01441/6.839, allocations: 10.22 MB / 4.218 GB, free: 67.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.655e-05/6.839, allocations: 87.91 kB / 4.218 GB, free: 67.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/6.839, allocations: 3.375 kB / 4.218 GB, free: 67.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.047e-05/6.839, allocations: 9.656 kB / 4.218 GB, free: 67.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01657/6.856, allocations: 13.35 MB / 4.231 GB, free: 66.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/6.856, allocations: 1.25 kB / 4.231 GB, free: 66.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/6.858, allocations: 357.9 kB / 4.232 GB, free: 66.71 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005679/6.863, allocations: 4.222 MB / 4.236 GB, free: 66.51 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/6.864, allocations: 45.25 kB / 4.236 GB, free: 66.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009325/6.873, allocations: 9.796 MB / 4.245 GB, free: 61.72 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/6.873, allocations: 5.812 kB / 4.245 GB, free: 61.72 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01526/6.888, allocations: 11.21 MB / 4.256 GB, free: 61.02 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01884/6.907, allocations: 14.64 MB / 4.271 GB, free: 59.91 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001368/6.909, allocations: 0.6717 MB / 4.271 GB, free: 59.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003664/6.909, allocations: 3.188 kB / 4.271 GB, free: 59.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002036/6.911, allocations: 210 kB / 4.272 GB, free: 59.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004331/6.911, allocations: 240.4 kB / 4.272 GB, free: 59.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002394/6.912, allocations: 98.17 kB / 4.272 GB, free: 59.66 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0006956/6.912, allocations: 0.6014 MB / 4.272 GB, free: 59.55 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006718/6.919, allocations: 2.096 MB / 4.275 GB, free: 59.48 MB / 0.4948 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.005776/6.925, allocations: 2.876 MB / 4.277 GB, free: 59.19 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006439/6.931, allocations: 4.844 MB / 4.282 GB, free: 59.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/6.931, allocations: 0.5 kB / 4.282 GB, free: 59.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00485/6.936, allocations: 3.938 MB / 4.286 GB, free: 59.04 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003792/6.94, allocations: 0.8511 MB / 4.287 GB, free: 59.04 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008855/6.949, allocations: 6.578 MB / 4.293 GB, free: 57.42 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002304/6.951, allocations: 2.278 MB / 4.295 GB, free: 56.57 MB / 0.4948 GB Notification: Performance of SimCode: time 7.61e-07/6.951, allocations: 0 / 4.295 GB, free: 56.57 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature.fmu > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)