Running: ./testmodel.py --libraries=/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.VAVReheat.Controls.Examples.OperationModes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.VAVReheat.Controls.Examples.OperationModes") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 1.952/1.952, allocations: 253.1 MB / 260.4 MB, free: 7.516 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001626/0.001626, allocations: 189.2 kB / 319.6 MB, free: 3.34 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.741/1.741, allocations: 205.4 MB / 0.5704 GB, free: 15.07 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001284/0.001284, allocations: 94.33 kB / 0.6746 GB, free: 4.438 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.08e-05/1.097e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1924, allocations: 106.3 MB / 0.8881 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6749/0.8674, allocations: 145.2 MB / 1.03 GB, free: 9.363 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003503/0.8678, allocations: 96.56 kB / 1.03 GB, free: 9.312 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.1204/0.9883, allocations: 28.34 MB / 1.058 GB, free: 1.438 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0001062/0.9884, allocations: 36 kB / 1.058 GB, free: 1.402 MB / 0.6667 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.003807/0.9922, allocations: 1.419 MB / 1.059 GB, free: 20 kB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.9923, allocations: 8.031 kB / 1.059 GB, free: 12 kB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000631/0.9929, allocations: 166.3 kB / 1.059 GB, free: 15.84 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002211/0.9952, allocations: 0.7638 MB / 1.06 GB, free: 15.22 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.9953, allocations: 55.69 kB / 1.06 GB, free: 15.17 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003404/0.9957, allocations: 107.7 kB / 1.06 GB, free: 15.07 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003431/0.9991, allocations: 1.061 MB / 1.061 GB, free: 14.41 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003726/1.003, allocations: 1.426 MB / 1.063 GB, free: 13.26 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.286e-05/1.003, allocations: 7.938 kB / 1.063 GB, free: 13.25 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001782/1.003, allocations: 11.73 kB / 1.063 GB, free: 13.24 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.104e-05/1.003, allocations: 36 kB / 1.063 GB, free: 13.21 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/1.014, allocations: 5.547 MB / 1.068 GB, free: 8.531 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002501/1.017, allocations: 0.8693 MB / 1.069 GB, free: 7.945 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/1.018, allocations: 479.8 kB / 1.069 GB, free: 7.656 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/1.018, allocations: 16.98 kB / 1.069 GB, free: 7.641 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001474/1.02, allocations: 0.573 MB / 1.07 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=123): time 5.049e-06/1.02, allocations: 0 / 1.07 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of matching and sorting (n=123): time 0.002648/1.022, allocations: 0.8222 MB / 1.071 GB, free: 6.609 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/1.022, allocations: 156.8 kB / 1.071 GB, free: 6.43 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/1.024, allocations: 0.5137 MB / 1.071 GB, free: 6.039 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0003345/1.024, allocations: 59.56 kB / 1.071 GB, free: 5.988 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006063/1.025, allocations: 483.6 kB / 1.072 GB, free: 5.562 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000499/1.025, allocations: 302.2 kB / 1.072 GB, free: 5.309 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/1.025, allocations: 0 / 1.072 GB, free: 5.309 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0003152/1.026, allocations: 401.3 kB / 1.072 GB, free: 4.945 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/1.027, allocations: 416.2 kB / 1.073 GB, free: 4.703 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/1.028, allocations: 0.7354 MB / 1.074 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/1.03, allocations: 426.9 kB / 1.074 GB, free: 3.754 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/1.03, allocations: 0 / 1.074 GB, free: 3.754 MB / 0.6823 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.0035/1.033, allocations: 1.198 MB / 1.075 GB, free: 2.832 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/1.033, allocations: 6.656 kB / 1.075 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/1.033, allocations: 8 kB / 1.075 GB, free: 2.82 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.595e-05/1.033, allocations: 23.91 kB / 1.075 GB, free: 2.797 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/1.035, allocations: 198.5 kB / 1.075 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.053e-05/1.035, allocations: 19.94 kB / 1.075 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/1.037, allocations: 151 kB / 1.076 GB, free: 2.449 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/1.037, allocations: 69.64 kB / 1.076 GB, free: 2.391 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.0004732/1.037, allocations: 225.8 kB / 1.076 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/1.038, allocations: 86.97 kB / 1.076 GB, free: 2.09 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003086/1.041, allocations: 0.9709 MB / 1.077 GB, free: 1.398 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.288e-05/1.041, allocations: 16 kB / 1.077 GB, free: 1.383 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/1.041, allocations: 0 / 1.077 GB, free: 1.383 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.002e-05/1.041, allocations: 7.969 kB / 1.077 GB, free: 1.375 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006314/1.047, allocations: 2.223 MB / 1.079 GB, free: 15.76 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/1.047, allocations: 0 / 1.079 GB, free: 15.76 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/1.048, allocations: 114.8 kB / 1.079 GB, free: 15.65 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.263e-05/1.048, allocations: 4 kB / 1.079 GB, free: 15.65 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/1.048, allocations: 19.16 kB / 1.079 GB, free: 15.63 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.064e-05/1.048, allocations: 8 kB / 1.079 GB, free: 15.62 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.048, allocations: 0 / 1.079 GB, free: 15.62 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004163/1.053, allocations: 1.587 MB / 1.081 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007108/1.053, allocations: 259.9 kB / 1.081 GB, free: 14.29 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/1.054, allocations: 19.11 kB / 1.081 GB, free: 14.27 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/1.055, allocations: 75.92 kB / 1.081 GB, free: 14.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004806/1.055, allocations: 147.7 kB / 1.081 GB, free: 14.09 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001395/1.055, allocations: 53.42 kB / 1.081 GB, free: 14.05 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.0005779/1.056, allocations: 309.1 kB / 1.082 GB, free: 13.82 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001453/1.057, allocations: 255.5 kB / 1.082 GB, free: 13.57 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.0004868/1.058, allocations: 206.7 kB / 1.082 GB, free: 13.36 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003094/1.061, allocations: 1.157 MB / 1.083 GB, free: 12.57 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/1.061, allocations: 3.938 kB / 1.083 GB, free: 12.57 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001428/1.063, allocations: 0.5485 MB / 1.084 GB, free: 12.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/1.064, allocations: 158.3 kB / 1.084 GB, free: 12.07 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005757/1.07, allocations: 1.586 MB / 1.085 GB, free: 10.69 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00186/1.072, allocations: 1.248 MB / 1.087 GB, free: 9.426 MB / 0.698 GB Notification: Performance of SimCode: time 1.452e-06/1.072, allocations: 0 / 1.087 GB, free: 9.426 MB / 0.698 GB Notification: Performance of Templates: time 0.04564/1.117, allocations: 13.73 MB / 1.1 GB, free: 11.8 MB / 0.7136 GB