Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.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.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage,fileNamePrefix="Buildings_9_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage,fileNamePrefix="Buildings_9_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage",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 1.814/1.814, allocations: 387.2 MB / 394.5 MB, free: 4.598 MB / 306.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009599/0.0009602, allocations: 181.3 kB / 487 MB, free: 11.12 MB / 402.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.162/1.162, allocations: 221.3 MB / 0.7819 GB, free: 3.984 MB / 0.5497 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008121/0.0008121, allocations: 94.5 kB / 0.9213 GB, free: 5.094 MB / 0.6903 GB Notification: Performance of FrontEnd - loaded program: time 0.3786/0.3795, allocations: 148.5 MB / 1.066 GB, free: 141 MB / 0.7216 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.5681, allocations: 142.3 MB / 1.205 GB, free: 14.72 MB / 0.7372 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5154/1.084, allocations: 154.3 MB / 1.356 GB, free: 13.8 MB / 0.8309 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/1.084, allocations: 87.94 kB / 1.356 GB, free: 13.72 MB / 0.8309 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.02287/1.107, allocations: 9.972 MB / 1.366 GB, free: 3.656 MB / 0.8309 GB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/1.107, allocations: 8 kB / 1.366 GB, free: 3.648 MB / 0.8309 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.858e-05/1.107, allocations: 63.19 kB / 1.366 GB, free: 3.586 MB / 0.8309 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004648/1.107, allocations: 373.7 kB / 1.366 GB, free: 3.18 MB / 0.8309 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/1.107, allocations: 20 kB / 1.366 GB, free: 3.16 MB / 0.8309 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.923e-05/1.107, allocations: 32 kB / 1.366 GB, free: 3.129 MB / 0.8309 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000629/1.108, allocations: 369.9 kB / 1.367 GB, free: 2.77 MB / 0.8309 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006589/1.109, allocations: 440.2 kB / 1.367 GB, free: 2.324 MB / 0.8309 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/1.109, allocations: 7.938 kB / 1.367 GB, free: 2.316 MB / 0.8309 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/1.109, allocations: 3.938 kB / 1.367 GB, free: 2.312 MB / 0.8309 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/1.109, allocations: 12 kB / 1.367 GB, free: 2.301 MB / 0.8309 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/1.111, allocations: 1.32 MB / 1.368 GB, free: 0.9375 MB / 0.8309 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006391/1.111, allocations: 404.3 kB / 1.369 GB, free: 0.5312 MB / 0.8309 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002534/1.112, allocations: 187.9 kB / 1.369 GB, free: 352 kB / 0.8309 GB Notification: Performance of preOpt evalFunc (simulation): time 3.941e-05/1.112, allocations: 8.438 kB / 1.369 GB, free: 344 kB / 0.8309 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003421/1.112, allocations: 237.2 kB / 1.369 GB, free: 96 kB / 0.8309 GB Notification: Performance of pre-optimization done (n=58): time 3.857e-06/1.112, allocations: 3.984 kB / 1.369 GB, free: 92 kB / 0.8309 GB Notification: Performance of matching and sorting (n=58): time 0.0005575/1.112, allocations: 344.1 kB / 1.369 GB, free: 15.75 MB / 0.8466 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/1.113, allocations: 63.91 kB / 1.37 GB, free: 15.67 MB / 0.8466 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/1.113, allocations: 303 kB / 1.37 GB, free: 15.37 MB / 0.8466 GB Notification: Performance of collectPreVariables (initialization): time 5.158e-05/1.113, allocations: 41.7 kB / 1.37 GB, free: 15.32 MB / 0.8466 GB Notification: Performance of collectInitialEqns (initialization): time 9.965e-05/1.113, allocations: 181.2 kB / 1.37 GB, free: 15.14 MB / 0.8466 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/1.113, allocations: 138.1 kB / 1.37 GB, free: 15.01 MB / 0.8466 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.228e-05/1.113, allocations: 0 / 1.37 GB, free: 15.01 MB / 0.8466 GB Notification: Performance of setup shared object (initialization): time 0.0001138/1.113, allocations: 354.8 kB / 1.371 GB, free: 14.65 MB / 0.8466 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/1.113, allocations: 149.3 kB / 1.371 GB, free: 14.51 MB / 0.8466 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/1.114, allocations: 228.8 kB / 1.371 GB, free: 14.26 MB / 0.8466 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002185/1.114, allocations: 143.1 kB / 1.371 GB, free: 14.12 MB / 0.8466 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/1.114, allocations: 0 / 1.371 GB, free: 14.12 MB / 0.8466 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0006537/1.115, allocations: 451.3 kB / 1.371 GB, free: 13.68 MB / 0.8466 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/1.115, allocations: 8 kB / 1.371 GB, free: 13.67 MB / 0.8466 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/1.115, allocations: 3.984 kB / 1.371 GB, free: 13.66 MB / 0.8466 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/1.115, allocations: 4 kB / 1.371 GB, free: 13.66 MB / 0.8466 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003105/1.115, allocations: 80.05 kB / 1.372 GB, free: 13.58 MB / 0.8466 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/1.115, allocations: 11.98 kB / 1.372 GB, free: 13.57 MB / 0.8466 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003655/1.115, allocations: 71.7 kB / 1.372 GB, free: 13.5 MB / 0.8466 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.056e-05/1.115, allocations: 27.98 kB / 1.372 GB, free: 13.47 MB / 0.8466 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.varSpePumSta.con1.enableFire,$PRE.varSpePumSta.con2.enableFire,$PRE.varSpePumSta.con3.enableFire,$PRE.varSpePumSta.con4.enableFire,varSpePumSta.stateGraphRoot.resume,varSpePumSta.stateGraphRoot.suspend,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varSpePumSta.con1.enableFire,varSpePumSta.con1.fire,$PRE.varSpePumSta.con1.t_start,varSpePumSta.con1.t_start,varSpePumSta.con1.condition,$PRE.varSpePumSta.oneOn.localActive,varSpePumSta.oneOn.localActive,varSpePumSta.oneOn.inPort[2].occupied,varSpePumSta.oneOn.outPort[2].available,$PRE.varSpePumSta.oneOn.newActive,varSpePumSta.oneOn.newActive,$PRE.varSpePumSta.oneOn.oldActive,varSpePumSta.oneOn.oldActive,varSpePumSta.oneOn.active,$PRE.varSpePumSta.off.localActive,varSpePumSta.off.localActive,$PRE.varSpePumSta.off.newActive,varSpePumSta.off.newActive,$PRE.varSpePumSta.off.oldActive,varSpePumSta.off.oldActive,varSpePumSta.off.active,$PRE.varSpePumSta.twoOn.localActive,varSpePumSta.twoOn.localActive,$PRE.varSpePumSta.twoOn.newActive,varSpePumSta.twoOn.newActive,$PRE.varSpePumSta.twoOn.oldActive,varSpePumSta.twoOn.oldActive,varSpePumSta.twoOn.active,varSpePumSta.con2.enableFire,varSpePumSta.con2.fire,$PRE.varSpePumSta.con2.t_start,varSpePumSta.con2.t_start,varSpePumSta.con2.condition,varSpePumSta.con3.enableFire,varSpePumSta.con3.fire,$PRE.varSpePumSta.con3.t_start,varSpePumSta.con3.t_start,varSpePumSta.con3.condition,varSpePumSta.con4.enableFire,varSpePumSta.con4.fire,$PRE.varSpePumSta.con4.t_start,varSpePumSta.con4.t_start,varSpePumSta.con4.condition,varSpePumSta.stateGraphRoot.activeSteps,varSpePumSta.addInt.u1,varSpePumSta.addInt.u2,varSpePumSta.addInt.y,$PRE.speSig.T_start,speSig.T_start,$PRE.speSig.count,speSig.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * 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.0001238/1.116, allocations: 140.9 kB / 1.372 GB, free: 13.33 MB / 0.8466 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.477e-05/1.116, allocations: 39.53 kB / 1.372 GB, free: 13.29 MB / 0.8466 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007407/1.116, allocations: 428.2 kB / 1.372 GB, free: 12.86 MB / 0.8466 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/1.116, allocations: 8 kB / 1.372 GB, free: 12.85 MB / 0.8466 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/1.116, allocations: 0 / 1.372 GB, free: 12.85 MB / 0.8466 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/1.116, allocations: 7.891 kB / 1.372 GB, free: 12.84 MB / 0.8466 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/1.118, allocations: 1.049 MB / 1.373 GB, free: 11.75 MB / 0.8466 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/1.118, allocations: 3.938 kB / 1.373 GB, free: 11.75 MB / 0.8466 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002431/1.118, allocations: 63.84 kB / 1.373 GB, free: 11.68 MB / 0.8466 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/1.118, allocations: 4 kB / 1.373 GB, free: 11.68 MB / 0.8466 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/1.118, allocations: 3.984 kB / 1.373 GB, free: 11.68 MB / 0.8466 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/1.118, allocations: 4 kB / 1.373 GB, free: 11.67 MB / 0.8466 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/1.118, allocations: 0 / 1.373 GB, free: 11.67 MB / 0.8466 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006186/1.119, allocations: 488.6 kB / 1.374 GB, free: 11.18 MB / 0.8466 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007016/1.12, allocations: 0.8603 MB / 1.375 GB, free: 10.3 MB / 0.8466 GB Notification: Performance of postOpt removeConstants (simulation): time 7.696e-05/1.12, allocations: 128.5 kB / 1.375 GB, free: 10.16 MB / 0.8466 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.058e-05/1.12, allocations: 0 / 1.375 GB, free: 10.16 MB / 0.8466 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003563/1.12, allocations: 63.94 kB / 1.375 GB, free: 10.09 MB / 0.8466 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/1.12, allocations: 76.53 kB / 1.375 GB, free: 10.02 MB / 0.8466 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.409e-05/1.12, allocations: 20 kB / 1.375 GB, free: 9.996 MB / 0.8466 GB Notification: Performance of sort global known variables: time 0.0001682/1.12, allocations: 207.1 kB / 1.375 GB, free: 9.793 MB / 0.8466 GB Notification: Performance of remove unused functions: time 0.000903/1.121, allocations: 95.91 kB / 1.375 GB, free: 9.699 MB / 0.8466 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 47 (varSpePumSta.con3.enableFire,varSpePumSta.con4.enableFire,varSpePumSta.con1.enableFire,varSpePumSta.con2.enableFire,varSpePumSta.twoOn.localActive,varSpePumSta.off.localActive,varSpePumSta.oneOn.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varSpePumSta.con1.fire,varSpePumSta.con1.t_start,varSpePumSta.con1.condition,varSpePumSta.oneOn.inPort[2].occupied,varSpePumSta.oneOn.outPort[2].available,varSpePumSta.oneOn.newActive,varSpePumSta.oneOn.oldActive,varSpePumSta.oneOn.active,varSpePumSta.off.newActive,varSpePumSta.off.oldActive,varSpePumSta.off.active,varSpePumSta.twoOn.newActive,varSpePumSta.twoOn.oldActive,varSpePumSta.twoOn.active,varSpePumSta.con2.fire,varSpePumSta.con2.t_start,varSpePumSta.con2.condition,varSpePumSta.con3.fire,varSpePumSta.con3.t_start,varSpePumSta.con3.condition,varSpePumSta.con4.fire,varSpePumSta.con4.t_start,varSpePumSta.con4.condition,varSpePumSta.stateGraphRoot.activeSteps,varSpePumSta.addInt.u1,varSpePumSta.addInt.u2,varSpePumSta.addInt.y,speSig.T_start,speSig.count) * Number of discrete states: 4 (speSig.count,varSpePumSta.oneOn.newActive,varSpePumSta.off.newActive,varSpePumSta.twoOn.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.00055/1.122, allocations: 303.2 kB / 1.375 GB, free: 9.469 MB / 0.8466 GB Notification: Performance of simCode: created initialization part: time 0.0006151/1.123, allocations: 448.6 kB / 1.376 GB, free: 9.027 MB / 0.8466 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/1.123, allocations: 0 / 1.376 GB, free: 9.027 MB / 0.8466 GB Notification: Performance of simCode: created simulation system equations: time 0.0003025/1.123, allocations: 230.4 kB / 1.376 GB, free: 8.801 MB / 0.8466 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/1.123, allocations: 44.94 kB / 1.376 GB, free: 8.754 MB / 0.8466 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/1.124, allocations: 0.6162 MB / 1.377 GB, free: 8.121 MB / 0.8466 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000515/1.125, allocations: 0.9018 MB / 1.378 GB, free: 7.191 MB / 0.8466 GB Notification: Performance of SimCode: time 2.7e-07/1.125, allocations: 0 / 1.378 GB, free: 7.191 MB / 0.8466 GB (rm -f Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe ; mkfifo Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe ; head -c 1048576 < Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe >> ../files/Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage_res.mat --tempDir=temp_Buildings_9_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage_fmu --startTime=0 --stopTime=1080 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage.fmu > Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe 2>&1)