Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.VAVReheat.Controls.Examples.OperationModes.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.VAVReheat.Controls.Examples.OperationModes,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_VAVReheat_Controls_Examples_OperationModes",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 7.0.1/package.mo): time 2.136/2.136, allocations: 248.6 MB / 255.9 MB, free: 7.156 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001661/0.001661, allocations: 169.3 kB / 315.1 MB, free: 4.215 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.813/1.813, allocations: 205.1 MB / 0.5658 GB, free: 304 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001306/0.001306, allocations: 82.97 kB / 0.67 GB, free: 5.512 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4873/0.4887, allocations: 112.4 MB / 0.7797 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.7799, allocations: 106.2 MB / 0.8835 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7393/1.519, allocations: 145.2 MB / 1.025 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003803/1.52, allocations: 95.25 kB / 1.025 GB, free: 10.96 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.1406/1.66, allocations: 29.78 MB / 1.054 GB, free: 1.676 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 6.072e-05/1.66, allocations: 8 kB / 1.054 GB, free: 1.668 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/1.662, allocations: 174.1 kB / 1.055 GB, free: 1.496 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002881/1.664, allocations: 0.7555 MB / 1.055 GB, free: 0.8789 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/1.665, allocations: 69.86 kB / 1.055 GB, free: 0.8164 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005771/1.665, allocations: 100 kB / 1.056 GB, free: 0.7188 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004474/1.67, allocations: 1.068 MB / 1.057 GB, free: 60 kB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004287/1.674, allocations: 1.417 MB / 1.058 GB, free: 14.91 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.372e-05/1.674, allocations: 7.938 kB / 1.058 GB, free: 14.91 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/1.674, allocations: 11.61 kB / 1.058 GB, free: 14.9 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.476e-05/1.674, allocations: 40 kB / 1.058 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01258/1.687, allocations: 5.555 MB / 1.063 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002909/1.69, allocations: 0.8742 MB / 1.064 GB, free: 9.586 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001416/1.692, allocations: 485.5 kB / 1.065 GB, free: 9.285 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/1.692, allocations: 16.98 kB / 1.065 GB, free: 9.27 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001585/1.693, allocations: 0.5685 MB / 1.065 GB, free: 8.859 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=123): time 6.212e-06/1.693, allocations: 7.922 kB / 1.065 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of matching and sorting (n=123): time 0.002646/1.696, allocations: 0.8243 MB / 1.066 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/1.696, allocations: 160.2 kB / 1.066 GB, free: 8.055 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/1.697, allocations: 0.5085 MB / 1.067 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002874/1.697, allocations: 55.25 kB / 1.067 GB, free: 7.621 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007092/1.698, allocations: 487.5 kB / 1.067 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007795/1.699, allocations: 293.8 kB / 1.068 GB, free: 6.945 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/1.699, allocations: 4 kB / 1.068 GB, free: 6.941 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000284/1.7, allocations: 406 kB / 1.068 GB, free: 6.578 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/1.701, allocations: 409.8 kB / 1.068 GB, free: 6.34 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/1.703, allocations: 0.7361 MB / 1.069 GB, free: 5.66 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/1.704, allocations: 429.1 kB / 1.069 GB, free: 5.383 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.449e-05/1.704, allocations: 11.84 kB / 1.069 GB, free: 5.371 MB / 0.6823 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003783/1.708, allocations: 1.183 MB / 1.071 GB, free: 4.465 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/1.708, allocations: 8.062 kB / 1.071 GB, free: 4.457 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.872e-05/1.708, allocations: 12 kB / 1.071 GB, free: 4.445 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.123e-05/1.708, allocations: 23.89 kB / 1.071 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/1.71, allocations: 191.8 kB / 1.071 GB, free: 4.246 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.815e-05/1.71, allocations: 23.92 kB / 1.071 GB, free: 4.223 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/1.712, allocations: 151.2 kB / 1.071 GB, free: 4.074 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000229/1.712, allocations: 69.55 kB / 1.071 GB, free: 4.02 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 125 ($PRE.operationModes.start.enableFire,$PRE.operationModes.t2.enableFire,$PRE.operationModes.t1.enableFire,$PRE.operationModes.t6.enableFire,$PRE.operationModes.t5.enableFire,$PRE.operationModes.t3.enableFire,$PRE.operationModes.t4.enableFire,$PRE.operationModes.t7.enableFire,$PRE.operationModes.t9.enableFire,$PRE.operationModes.t8.enableFire,operationModes.stateGraphRoot.resume,operationModes.stateGraphRoot.suspend,operationModes.start.condition,$whenCondition4,$whenCondition5,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.operationModes.initialStep.localActive,operationModes.initialStep.localActive,$PRE.operationModes.initialStep.newActive,operationModes.initialStep.newActive,$PRE.operationModes.initialStep.oldActive,operationModes.initialStep.oldActive,operationModes.initialStep.active,operationModes.start.enableFire,$PRE.operationModes.unOccOff.localActive,operationModes.unOccOff.localActive,operationModes.unOccOff.inPort[2].occupied,operationModes.unOccOff.inPort[3].occupied,operationModes.unOccOff.outPort[2].available,operationModes.unOccOff.outPort[3].available,operationModes.unOccOff.outPort[4].available,$PRE.operationModes.unOccOff.newActive,operationModes.unOccOff.newActive,$PRE.operationModes.unOccOff.oldActive,operationModes.unOccOff.oldActive,operationModes.unOccOff.active,$PRE.operationModes.unOccNigSetBac.localActive,operationModes.unOccNigSetBac.localActive,operationModes.unOccNigSetBac.outPort[2].available,$PRE.operationModes.unOccNigSetBac.newActive,operationModes.unOccNigSetBac.newActive,$PRE.operationModes.unOccNigSetBac.oldActive,operationModes.unOccNigSetBac.oldActive,operationModes.unOccNigSetBac.active,operationModes.t2.enableFire,operationModes.t2.fire,$PRE.operationModes.t2.t_start,operationModes.t2.t_start,operationModes.t2.condition,operationModes.t1.enableFire,operationModes.t1.fire,$PRE.operationModes.t1.t_start,operationModes.t1.t_start,operationModes.t1.condition,operationModes.stateGraphRoot.activeSteps,$PRE.operationModes.morWarUp.localActive,operationModes.morWarUp.localActive,operationModes.morWarUp.inPort[2].occupied,$PRE.operationModes.morWarUp.newActive,operationModes.morWarUp.newActive,$PRE.operationModes.morWarUp.oldActive,operationModes.morWarUp.oldActive,operationModes.morWarUp.active,operationModes.t6.enableFire,operationModes.t6.fire,$PRE.operationModes.t6.t_start,operationModes.t6.t_start,operationModes.t5.enableFire,$PRE.operationModes.occ.localActive,operationModes.occ.localActive,operationModes.occ.inPort[2].occupied,operationModes.occ.inPort[3].occupied,$PRE.operationModes.occ.newActive,operationModes.occ.newActive,$PRE.operationModes.occ.oldActive,operationModes.occ.oldActive,operationModes.occ.active,operationModes.t3.enableFire,operationModes.t3.condition,operationModes.t4.enableFire,$PRE.operationModes.morPreCoo.localActive,operationModes.morPreCoo.localActive,$PRE.operationModes.morPreCoo.newActive,operationModes.morPreCoo.newActive,$PRE.operationModes.morPreCoo.oldActive,operationModes.morPreCoo.oldActive,operationModes.morPreCoo.active,operationModes.t7.enableFire,operationModes.t7.condition,operationModes.and1.u2,operationModes.and1.y,operationModes.preCooSta.y,operationModes.preCooSta.and3.u[1],operationModes.preCooSta.and3.u[3],operationModes.t9.enableFire,operationModes.and2.u2,operationModes.and2.y,operationModes.t8.enableFire,operationModes.sum.u[1],operationModes.sum.u[2],operationModes.sum.u[3],operationModes.sum.u[4],operationModes.sum.u[5],operationModes.yFan,mode.u,modSel.y,modSel1.y,$PRE.occSch.occupied,occSch.occupied,$PRE.occSch.nexStaInd,occSch.nexStaInd,$PRE.occSch.nexStoInd,occSch.nexStoInd,$PRE.occSch.iPerSta,occSch.iPerSta,$PRE.occSch.iPerSto,occSch.iPerSto,$PRE.occSch.tOcc,occSch.tOcc,$PRE.occSch.tNonOcc,occSch.tNonOcc,operationModes.preCooSta.and3.u[2],PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (189): * Single equations (assignments): 188 * 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.0005071/1.712, allocations: 221.7 kB / 1.071 GB, free: 3.809 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002845/1.713, allocations: 90.95 kB / 1.071 GB, free: 3.719 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003115/1.716, allocations: 0.9637 MB / 1.072 GB, free: 3.031 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.203e-05/1.716, allocations: 12 kB / 1.072 GB, free: 3.02 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/1.716, allocations: 4 kB / 1.072 GB, free: 3.016 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.046e-05/1.716, allocations: 7.969 kB / 1.072 GB, free: 3.008 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/1.727, allocations: 2.224 MB / 1.075 GB, free: 1.387 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.228e-05/1.727, allocations: 4 kB / 1.075 GB, free: 1.383 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001698/1.729, allocations: 125.4 kB / 1.075 GB, free: 1.27 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.244e-05/1.729, allocations: 4 kB / 1.075 GB, free: 1.266 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002015/1.729, allocations: 15.23 kB / 1.075 GB, free: 1.254 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.765e-05/1.729, allocations: 4 kB / 1.075 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/1.729, allocations: 0 / 1.075 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006576/1.736, allocations: 1.592 MB / 1.076 GB, free: 136 kB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009141/1.745, allocations: 2.536 MB / 1.079 GB, free: 14.32 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007926/1.746, allocations: 260 kB / 1.079 GB, free: 14.1 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002676/1.746, allocations: 11.17 kB / 1.079 GB, free: 14.09 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/1.748, allocations: 79.67 kB / 1.079 GB, free: 14.02 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004841/1.748, allocations: 148.3 kB / 1.079 GB, free: 13.91 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/1.748, allocations: 46.23 kB / 1.079 GB, free: 13.87 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.0005812/1.749, allocations: 311.9 kB / 1.08 GB, free: 13.64 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002291/1.751, allocations: 262.9 kB / 1.08 GB, free: 13.39 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cap.T,PID.I.y,PID.D.x) * Number of discrete variables: 93 (operationModes.t6.enableFire,operationModes.t2.enableFire,operationModes.t1.enableFire,operationModes.morPreCoo.localActive,operationModes.occ.localActive,operationModes.morWarUp.localActive,operationModes.unOccNigSetBac.localActive,operationModes.unOccOff.localActive,operationModes.initialStep.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$cse8,$cse9,$cse10,$cse11,$whenCondition4,$whenCondition5,$whenCondition3,$whenCondition2,$whenCondition1,operationModes.initialStep.newActive,operationModes.initialStep.oldActive,operationModes.initialStep.active,operationModes.start.enableFire,operationModes.unOccOff.inPort[2].occupied,operationModes.unOccOff.inPort[3].occupied,operationModes.unOccOff.outPort[2].available,operationModes.unOccOff.outPort[3].available,operationModes.unOccOff.outPort[4].available,operationModes.unOccOff.newActive,operationModes.unOccOff.oldActive,operationModes.unOccOff.active,operationModes.unOccNigSetBac.outPort[2].available,operationModes.unOccNigSetBac.newActive,operationModes.unOccNigSetBac.oldActive,operationModes.unOccNigSetBac.active,operationModes.t2.fire,operationModes.t2.t_start,operationModes.t2.condition,operationModes.t1.fire,operationModes.t1.t_start,operationModes.t1.condition,operationModes.stateGraphRoot.activeSteps,operationModes.morWarUp.inPort[2].occupied,operationModes.morWarUp.newActive,operationModes.morWarUp.oldActive,operationModes.morWarUp.active,operationModes.t6.fire,operationModes.t6.t_start,operationModes.t5.enableFire,operationModes.occ.inPort[2].occupied,operationModes.occ.inPort[3].occupied,operationModes.occ.newActive,operationModes.occ.oldActive,operationModes.occ.active,operationModes.t3.enableFire,operationModes.t3.condition,operationModes.t4.enableFire,operationModes.morPreCoo.newActive,operationModes.morPreCoo.oldActive,operationModes.morPreCoo.active,operationModes.t7.enableFire,operationModes.t7.condition,operationModes.and1.u2,operationModes.and1.y,operationModes.preCooSta.y,operationModes.preCooSta.and3.u[1],operationModes.preCooSta.and3.u[3],operationModes.t9.enableFire,operationModes.and2.u2,operationModes.and2.y,operationModes.t8.enableFire,operationModes.sum.u[1],operationModes.sum.u[2],operationModes.sum.u[3],operationModes.sum.u[4],operationModes.sum.u[5],operationModes.yFan,mode.u,modSel.y,modSel1.y,occSch.occupied,occSch.nexStaInd,occSch.nexStoInd,occSch.iPerSta,occSch.iPerSto,occSch.tOcc,occSch.tNonOcc) * Number of discrete states: 13 (occSch.tNonOcc,occSch.tOcc,operationModes.initialStep.newActive,operationModes.unOccOff.newActive,operationModes.unOccNigSetBac.newActive,operationModes.morWarUp.newActive,operationModes.occ.newActive,operationModes.morPreCoo.newActive,occSch.iPerSto,occSch.nexStoInd,occSch.occupied,occSch.nexStaInd,occSch.iPerSta) * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.0004866/1.752, allocations: 198.7 kB / 1.08 GB, free: 13.19 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003107/1.755, allocations: 1.157 MB / 1.081 GB, free: 12.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/1.755, allocations: 0 / 1.081 GB, free: 12.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001346/1.756, allocations: 0.5516 MB / 1.082 GB, free: 12.02 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/1.758, allocations: 153 kB / 1.082 GB, free: 11.91 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005908/1.764, allocations: 1.587 MB / 1.083 GB, free: 10.52 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003074/1.767, allocations: 1.253 MB / 1.085 GB, free: 9.254 MB / 0.698 GB Notification: Performance of SimCode: time 2.725e-06/1.767, allocations: 0 / 1.085 GB, free: 9.254 MB / 0.698 GB