Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) 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) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ConservationEquation",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/Buildings 8.0.0/package.mo): time 2.525/2.525, allocations: 284.8 MB / 292.1 MB, free: 10.73 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001643/0.001643, allocations: 189.2 kB / 360.3 MB, free: 7.512 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.945/1.945, allocations: 205.1 MB / 0.6187 GB, free: 13.19 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001499/0.001499, allocations: 88.52 kB / 0.7317 GB, free: 45.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.304/0.3055, allocations: 121.4 MB / 0.8502 GB, free: 3.902 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6618/0.9674, allocations: 115.2 MB / 0.9627 GB, free: 78.62 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.047/2.015, allocations: 388.2 MB / 1.342 GB, free: 177.6 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/2.015, allocations: 87.25 kB / 1.342 GB, free: 177.6 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.9656/2.981, allocations: 254.3 MB / 1.59 GB, free: 1.281 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 8.586e-05/2.981, allocations: 12.5 kB / 1.59 GB, free: 1.27 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002604/2.984, allocations: 191 kB / 1.59 GB, free: 1.082 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06023/3.044, allocations: 11.8 MB / 1.602 GB, free: 5.105 MB / 0.9324 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008456/3.045, allocations: 84.72 kB / 1.602 GB, free: 5.023 MB / 0.9324 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002173/3.045, allocations: 24 kB / 1.602 GB, free: 5 MB / 0.9324 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00121/3.046, allocations: 297.5 kB / 1.602 GB, free: 4.707 MB / 0.9324 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/3.047, allocations: 412.4 kB / 1.603 GB, free: 4.281 MB / 0.9324 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/3.047, allocations: 0 / 1.603 GB, free: 4.281 MB / 0.9324 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.624e-05/3.048, allocations: 4 kB / 1.603 GB, free: 4.277 MB / 0.9324 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.03e-05/3.048, allocations: 8 kB / 1.603 GB, free: 4.27 MB / 0.9324 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006024/3.054, allocations: 2.249 MB / 1.605 GB, free: 1.844 MB / 0.9324 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/3.055, allocations: 262.8 kB / 1.605 GB, free: 1.578 MB / 0.9324 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006112/3.055, allocations: 181.3 kB / 1.605 GB, free: 1.398 MB / 0.9324 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006418/3.056, allocations: 340.6 kB / 1.606 GB, free: 0.9922 MB / 0.9324 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005951/3.057, allocations: 246.7 kB / 1.606 GB, free: 0.7305 MB / 0.9324 GB Notification: Performance of pre-optimization done (n=33): time 3.356e-06/3.057, allocations: 0 / 1.606 GB, free: 0.7305 MB / 0.9324 GB Notification: Performance of matching and sorting (n=33): time 0.002157/3.059, allocations: 442 kB / 1.606 GB, free: 300 kB / 0.9324 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.261e-05/3.059, allocations: 85.11 kB / 1.606 GB, free: 196 kB / 0.9324 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4087/3.468, allocations: 366.5 kB / 1.607 GB, free: 330.9 MB / 0.9324 GB Notification: Performance of collectPreVariables (initialization): time 0.0001497/3.468, allocations: 28.86 kB / 1.607 GB, free: 330.8 MB / 0.9324 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/3.468, allocations: 210.8 kB / 1.607 GB, free: 330.8 MB / 0.9324 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/3.468, allocations: 106.3 kB / 1.607 GB, free: 330.7 MB / 0.9324 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/3.468, allocations: 0 / 1.607 GB, free: 330.7 MB / 0.9324 GB Notification: Performance of setup shared object (initialization): time 0.0001071/3.468, allocations: 357 kB / 1.607 GB, free: 330.4 MB / 0.9324 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003301/3.469, allocations: 125 kB / 1.608 GB, free: 330.4 MB / 0.9324 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/3.469, allocations: 219.5 kB / 1.608 GB, free: 330.3 MB / 0.9324 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006428/3.47, allocations: 170.7 kB / 1.608 GB, free: 330.3 MB / 0.9324 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/3.47, allocations: 0 / 1.608 GB, free: 330.3 MB / 0.9324 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001499/3.471, allocations: 470.3 kB / 1.608 GB, free: 330.3 MB / 0.9324 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001486/3.472, allocations: 0.6183 MB / 1.609 GB, free: 329.6 MB / 0.9324 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/3.472, allocations: 0 / 1.609 GB, free: 329.6 MB / 0.9324 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002405/3.472, allocations: 47.95 kB / 1.609 GB, free: 329.6 MB / 0.9324 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007076/3.473, allocations: 82.97 kB / 1.609 GB, free: 329.6 MB / 0.9324 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006298/3.473, allocations: 0.61 MB / 1.61 GB, free: 329.1 MB / 0.9324 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/3.474, allocations: 75.92 kB / 1.61 GB, free: 329.1 MB / 0.9324 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.161e-05/3.475, allocations: 22.64 kB / 1.61 GB, free: 329.1 MB / 0.9324 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/3.475, allocations: 3.719 kB / 1.61 GB, free: 329.1 MB / 0.9324 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001331/3.476, allocations: 374.1 kB / 1.61 GB, free: 329.1 MB / 0.9324 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/3.476, allocations: 0 / 1.61 GB, free: 329.1 MB / 0.9324 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002745/3.476, allocations: 51.25 kB / 1.61 GB, free: 329.1 MB / 0.9324 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007191/3.477, allocations: 90.05 kB / 1.61 GB, free: 329.1 MB / 0.9324 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/3.479, allocations: 1.492 MB / 1.612 GB, free: 327.8 MB / 0.9324 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/3.48, allocations: 74.83 kB / 1.612 GB, free: 327.8 MB / 0.9324 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-05/3.48, allocations: 19.95 kB / 1.612 GB, free: 327.8 MB / 0.9324 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002724/3.48, allocations: 153.4 kB / 1.612 GB, free: 327.6 MB / 0.9324 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/3.48, allocations: 54.59 kB / 1.612 GB, free: 327.6 MB / 0.9324 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001836/3.482, allocations: 0.4957 MB / 1.613 GB, free: 327.6 MB / 0.9324 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/3.482, allocations: 7.406 kB / 1.613 GB, free: 327.6 MB / 0.9324 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/3.482, allocations: 0 / 1.613 GB, free: 327.6 MB / 0.9324 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001359/3.484, allocations: 0.6425 MB / 1.613 GB, free: 327.2 MB / 0.9324 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003005/3.487, allocations: 1.095 MB / 1.614 GB, free: 326.9 MB / 0.9324 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/3.487, allocations: 3.469 kB / 1.614 GB, free: 326.9 MB / 0.9324 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006801/3.488, allocations: 75.84 kB / 1.614 GB, free: 326.9 MB / 0.9324 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001449/3.488, allocations: 32.3 kB / 1.614 GB, free: 326.9 MB / 0.9324 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/3.488, allocations: 9.688 kB / 1.614 GB, free: 326.9 MB / 0.9324 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004117/3.488, allocations: 0.5806 MB / 1.615 GB, free: 326.4 MB / 0.9324 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/3.488, allocations: 0 / 1.615 GB, free: 326.4 MB / 0.9324 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001948/3.49, allocations: 0.8087 MB / 1.616 GB, free: 326.1 MB / 0.9324 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002543/3.493, allocations: 1.422 MB / 1.617 GB, free: 325.5 MB / 0.9324 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004863/3.493, allocations: 187.2 kB / 1.617 GB, free: 325.4 MB / 0.9324 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/3.493, allocations: 7.609 kB / 1.617 GB, free: 325.4 MB / 0.9324 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/3.494, allocations: 59.44 kB / 1.617 GB, free: 325.4 MB / 0.9324 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.93e-05/3.495, allocations: 29.27 kB / 1.617 GB, free: 325.4 MB / 0.9324 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.11e-05/3.495, allocations: 21.25 kB / 1.617 GB, free: 325.4 MB / 0.9324 GB Notification: Performance of sort global known variables: time 0.0004378/3.495, allocations: 289.3 kB / 1.618 GB, free: 325.3 MB / 0.9324 GB Notification: Performance of remove unused functions: time 0.003766/3.499, allocations: 440.7 kB / 1.618 GB, free: 325.3 MB / 0.9324 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001104/3.5, allocations: 414.6 kB / 1.619 GB, free: 325.2 MB / 0.9324 GB Notification: Performance of simCode: created initialization part: time 0.001847/3.502, allocations: 0.7098 MB / 1.619 GB, free: 325 MB / 0.9324 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/3.502, allocations: 0 / 1.619 GB, free: 325 MB / 0.9324 GB Notification: Performance of simCode: created simulation system equations: time 0.0005123/3.502, allocations: 239.1 kB / 1.619 GB, free: 325 MB / 0.9324 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002367/3.505, allocations: 219.4 kB / 1.62 GB, free: 325 MB / 0.9324 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/3.508, allocations: 0.7734 MB / 1.62 GB, free: 324.8 MB / 0.9324 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008189/3.509, allocations: 0.9453 MB / 1.621 GB, free: 324.1 MB / 0.9324 GB Notification: Performance of SimCode: time 2.925e-06/3.509, allocations: 0 / 1.621 GB, free: 324.1 MB / 0.9324 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ConservationEquation.fmu > Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)