Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.047/2.047, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001076/0.001076, allocations: 177.3 kB / 487 MB, free: 5.352 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.422/1.422, allocations: 221.3 MB / 0.7819 GB, free: 1.316 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009725/0.0009726, allocations: 101.9 kB / 0.9213 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6544/0.6554, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.9504, allocations: 142.3 MB / 1.205 GB, free: 26.1 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8321/1.783, allocations: 155.4 MB / 1.357 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/1.783, allocations: 90.91 kB / 1.357 GB, free: 15.34 MB / 0.8073 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.03569/1.819, allocations: 13.46 MB / 1.37 GB, free: 6.875 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/1.819, allocations: 12.5 kB / 1.37 GB, free: 6.863 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/1.819, allocations: 62 kB / 1.37 GB, free: 6.805 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005662/1.819, allocations: 350.7 kB / 1.371 GB, free: 6.449 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/1.819, allocations: 4 kB / 1.371 GB, free: 6.445 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/1.819, allocations: 8 kB / 1.371 GB, free: 6.438 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001853/1.82, allocations: 97.75 kB / 1.371 GB, free: 6.363 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/1.82, allocations: 127.8 kB / 1.371 GB, free: 6.254 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/1.82, allocations: 0 / 1.371 GB, free: 6.254 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/1.82, allocations: 3.938 kB / 1.371 GB, free: 6.25 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/1.82, allocations: 4 kB / 1.371 GB, free: 6.246 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000828/1.821, allocations: 0.5103 MB / 1.371 GB, free: 5.777 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/1.821, allocations: 114.8 kB / 1.372 GB, free: 5.68 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.11e-05/1.821, allocations: 69.47 kB / 1.372 GB, free: 5.629 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 5.404e-05/1.821, allocations: 14.73 kB / 1.372 GB, free: 5.617 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/1.821, allocations: 128.4 kB / 1.372 GB, free: 5.488 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/1.821, allocations: 0 / 1.372 GB, free: 5.488 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0004048/1.822, allocations: 211.5 kB / 1.372 GB, free: 5.301 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/1.822, allocations: 77.11 kB / 1.372 GB, free: 5.207 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000703/1.822, allocations: 0.618 MB / 1.373 GB, free: 4.719 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/1.822, allocations: 29.7 kB / 1.373 GB, free: 4.684 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 9.429e-05/1.823, allocations: 167.4 kB / 1.373 GB, free: 4.539 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/1.823, allocations: 23.22 kB / 1.373 GB, free: 4.52 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.716e-06/1.823, allocations: 0 / 1.373 GB, free: 4.52 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001082/1.823, allocations: 375.5 kB / 1.373 GB, free: 4.168 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.885e-05/1.823, allocations: 57.97 kB / 1.373 GB, free: 4.125 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.838e-05/1.823, allocations: 45.86 kB / 1.373 GB, free: 4.094 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/1.823, allocations: 58.38 kB / 1.373 GB, free: 4.047 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/1.823, allocations: 0 / 1.373 GB, free: 4.047 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002745/1.823, allocations: 215.4 kB / 1.374 GB, free: 3.855 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/1.823, allocations: 6.812 kB / 1.374 GB, free: 3.852 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/1.823, allocations: 4 kB / 1.374 GB, free: 3.848 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/1.823, allocations: 0 / 1.374 GB, free: 3.848 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.324e-05/1.823, allocations: 11.91 kB / 1.374 GB, free: 3.836 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/1.823, allocations: 0 / 1.374 GB, free: 3.836 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/1.824, allocations: 12.05 kB / 1.374 GB, free: 3.824 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/1.824, allocations: 8 kB / 1.374 GB, free: 3.816 MB / 0.8073 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 9.016e-05/1.824, allocations: 141.7 kB / 1.374 GB, free: 3.668 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.988e-05/1.824, allocations: 67.25 kB / 1.374 GB, free: 3.602 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/1.824, allocations: 229.1 kB / 1.374 GB, free: 3.41 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/1.824, allocations: 3.938 kB / 1.374 GB, free: 3.406 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/1.824, allocations: 3.906 kB / 1.374 GB, free: 3.402 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/1.824, allocations: 0 / 1.374 GB, free: 3.402 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003107/1.825, allocations: 348.2 kB / 1.374 GB, free: 3.086 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/1.825, allocations: 0 / 1.374 GB, free: 3.086 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.219e-05/1.825, allocations: 7.984 kB / 1.374 GB, free: 3.078 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/1.825, allocations: 0 / 1.374 GB, free: 3.078 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/1.825, allocations: 4 kB / 1.374 GB, free: 3.074 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/1.825, allocations: 7.906 kB / 1.374 GB, free: 3.066 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.825, allocations: 0 / 1.374 GB, free: 3.066 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002971/1.825, allocations: 250.4 kB / 1.375 GB, free: 2.836 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003681/1.825, allocations: 0.6208 MB / 1.375 GB, free: 2.227 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/1.825, allocations: 151.2 kB / 1.375 GB, free: 2.066 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.526e-05/1.826, allocations: 4 kB / 1.375 GB, free: 2.062 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/1.826, allocations: 8 kB / 1.375 GB, free: 2.055 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.971e-05/1.826, allocations: 3.984 kB / 1.375 GB, free: 2.051 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/1.826, allocations: 11.62 kB / 1.375 GB, free: 2.043 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.000499/1.826, allocations: 0.5087 MB / 1.376 GB, free: 1.656 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.001175/1.827, allocations: 161 kB / 1.376 GB, free: 1.512 MB / 0.8073 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.000778/1.828, allocations: 358.8 kB / 1.376 GB, free: 1.184 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002161/1.828, allocations: 147.5 kB / 1.377 GB, free: 1.066 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/1.828, allocations: 4 kB / 1.377 GB, free: 1.062 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.089e-05/1.829, allocations: 116.7 kB / 1.377 GB, free: 0.9766 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000449/1.829, allocations: 87.88 kB / 1.377 GB, free: 0.9141 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/1.83, allocations: 0.7932 MB / 1.377 GB, free: 204 kB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006199/1.831, allocations: 0.9909 MB / 1.378 GB, free: 15.23 MB / 0.823 GB Notification: Performance of SimCode: time 2.71e-07/1.831, allocations: 0 / 1.378 GB, free: 15.23 MB / 0.823 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe 2>&1)