Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",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 10.0.0-master/package.mo): time 2.162/2.162, allocations: 390.4 MB / 397.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 182.3 kB / 490.8 MB, free: 1.953 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 221.3 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 84.73 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7756/0.7768, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/1.084, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9671/2.051, allocations: 156.2 MB / 1.364 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/2.051, allocations: 91.39 kB / 1.364 GB, free: 17.18 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.04147/2.092, allocations: 13.47 MB / 1.377 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 7.268e-05/2.093, allocations: 9.25 kB / 1.377 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/2.093, allocations: 59.72 kB / 1.378 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005427/2.093, allocations: 350 kB / 1.378 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/2.093, allocations: 7.109 kB / 1.378 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/2.093, allocations: 6.438 kB / 1.378 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002293/2.094, allocations: 99.31 kB / 1.378 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/2.094, allocations: 123.8 kB / 1.378 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/2.094, allocations: 0 / 1.378 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/2.094, allocations: 1.344 kB / 1.378 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/2.094, allocations: 2.656 kB / 1.378 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000962/2.095, allocations: 0.5096 MB / 1.379 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/2.095, allocations: 124.6 kB / 1.379 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/2.095, allocations: 62.8 kB / 1.379 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.976e-05/2.095, allocations: 15.27 kB / 1.379 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/2.095, allocations: 130.5 kB / 1.379 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 2.796e-06/2.095, allocations: 0 / 1.379 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0005259/2.096, allocations: 206.8 kB / 1.379 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/2.096, allocations: 83.48 kB / 1.379 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/2.097, allocations: 0.622 MB / 1.38 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/2.097, allocations: 26.22 kB / 1.38 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/2.097, allocations: 163.5 kB / 1.38 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.693e-05/2.097, allocations: 29.53 kB / 1.38 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.048e-05/2.097, allocations: 1.344 kB / 1.38 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002578/2.098, allocations: 373.1 kB / 1.38 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/2.098, allocations: 54.83 kB / 1.38 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/2.098, allocations: 49.86 kB / 1.38 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/2.098, allocations: 61.14 kB / 1.38 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/2.098, allocations: 0 / 1.38 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004442/2.099, allocations: 206.3 kB / 1.381 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/2.099, allocations: 9.141 kB / 1.381 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/2.099, allocations: 4 kB / 1.381 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/2.099, allocations: 1.156 kB / 1.381 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/2.099, allocations: 6.594 kB / 1.381 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/2.099, allocations: 1.094 kB / 1.381 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/2.099, allocations: 9.438 kB / 1.381 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.908e-05/2.099, allocations: 12.45 kB / 1.381 GB, free: 29.82 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,speRat.a,speRat.b,speRat.last,$PRE.speRat.nextEvent,speRat.nextEvent,speRat.nextEventScaled,booleanToInteger.u,booleanToInteger.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001665/2.099, allocations: 140.8 kB / 1.381 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.198e-05/2.099, allocations: 64.03 kB / 1.381 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006113/2.1, allocations: 237 kB / 1.381 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/2.1, allocations: 9.453 kB / 1.381 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/2.1, allocations: 0 / 1.381 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/2.1, allocations: 1.375 kB / 1.381 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006188/2.101, allocations: 343.4 kB / 1.381 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/2.101, allocations: 1.344 kB / 1.381 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.247e-05/2.101, allocations: 5.281 kB / 1.381 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/2.101, allocations: 0.9688 kB / 1.382 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/2.101, allocations: 6.984 kB / 1.382 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/2.101, allocations: 5.031 kB / 1.382 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/2.101, allocations: 3.906 kB / 1.382 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004723/2.101, allocations: 246.3 kB / 1.382 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000734/2.102, allocations: 0.6287 MB / 1.382 GB, free: 28.72 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/2.102, allocations: 145.1 kB / 1.383 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.988e-05/2.102, allocations: 11.28 kB / 1.383 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/2.102, allocations: 5.188 kB / 1.383 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.719e-05/2.103, allocations: 6.484 kB / 1.383 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/2.103, allocations: 6.375 kB / 1.383 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0009432/2.104, allocations: 0.5109 MB / 1.383 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001836/2.105, allocations: 157.6 kB / 1.383 GB, free: 28.39 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,speRat.a,speRat.b,speRat.last,speRat.nextEvent,speRat.nextEventScaled,booleanToInteger.u,booleanToInteger.y) * Number of discrete states: 6 (speRat.nextEvent,speRat.last,speRat.nextEventScaled,speRat.b,speRat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001269/2.107, allocations: 363.1 kB / 1.384 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004701/2.107, allocations: 140.2 kB / 1.384 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/2.107, allocations: 0 / 1.384 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002282/2.107, allocations: 118.4 kB / 1.384 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007163/2.108, allocations: 92.41 kB / 1.384 GB, free: 28.1 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/2.11, allocations: 0.7905 MB / 1.385 GB, free: 27.8 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/2.111, allocations: 0.9876 MB / 1.386 GB, free: 27 MB / 0.8386 GB Notification: Performance of SimCode: time 3.31e-07/2.111, allocations: 1.312 kB / 1.386 GB, free: 27 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe 2>&1)