Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.VAVReheat.Controls.Examples.OperationModes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.VAVReheat.Controls.Examples.OperationModes") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.96/4.96, allocations: 0.5623 GB / 0.5775 GB, free: 3.34 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002545/0.002544, allocations: 357.3 kB / 0.6446 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.416/4.416, allocations: 410.7 MB / 1.113 GB, free: 6.008 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00192/0.001919, allocations: 191.1 kB / 1.226 GB, free: 6.207 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.000487/0.0004873, allocations: 12 kB / 1.349 GB, free: 8.336 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7629/0.7634, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2234/0.9869, allocations: 151.6 MB / 1.609 GB, free: 132.6 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003573/0.9874, allocations: 104.4 kB / 1.609 GB, free: 132.5 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.1043/1.092, allocations: 28.48 MB / 1.637 GB, free: 104.2 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.324e-06/1.092, allocations: 0 / 1.637 GB, free: 104.2 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 9.162e-05/1.092, allocations: 39.94 kB / 1.637 GB, free: 104.2 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 377 * Number of variables: 377 Notification: Performance of Generate backend data structure: time 0.003443/1.095, allocations: 1.41 MB / 1.639 GB, free: 102.7 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/1.095, allocations: 17.31 kB / 1.639 GB, free: 102.7 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005374/1.096, allocations: 158.1 kB / 1.639 GB, free: 102.5 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/1.098, allocations: 0.7175 MB / 1.64 GB, free: 101.8 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/1.098, allocations: 128.2 kB / 1.64 GB, free: 101.7 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003283/1.098, allocations: 152 kB / 1.64 GB, free: 101.5 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004269/1.103, allocations: 1.61 MB / 1.641 GB, free: 99.8 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.078e-05/1.103, allocations: 11.89 kB / 1.641 GB, free: 99.79 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001965/1.103, allocations: 64.44 kB / 1.641 GB, free: 99.73 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.409e-05/1.103, allocations: 40 kB / 1.642 GB, free: 99.7 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003796/1.107, allocations: 1.213 MB / 1.643 GB, free: 98.48 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009986/1.117, allocations: 5.65 MB / 1.648 GB, free: 92.72 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002789/1.12, allocations: 1.083 MB / 1.649 GB, free: 91.63 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001182/1.121, allocations: 490.4 kB / 1.65 GB, free: 91.16 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/1.121, allocations: 26.31 kB / 1.65 GB, free: 91.13 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001326/1.123, allocations: 0.5137 MB / 1.65 GB, free: 90.61 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=118): time 4.198e-06/1.123, allocations: 4.531 kB / 1.65 GB, free: 90.61 MB / 0.8542 GB Notification: Performance of matching and sorting (n=118): time 0.003405/1.126, allocations: 1.244 MB / 1.651 GB, free: 89.37 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/1.126, allocations: 133.7 kB / 1.652 GB, free: 89.21 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/1.127, allocations: 0.6516 MB / 1.652 GB, free: 88.55 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0002569/1.128, allocations: 77.69 kB / 1.652 GB, free: 88.47 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004697/1.128, allocations: 0.5311 MB / 1.653 GB, free: 87.93 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003339/1.128, allocations: 304.6 kB / 1.653 GB, free: 87.62 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.526e-05/1.128, allocations: 28 kB / 1.653 GB, free: 87.6 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001558/1.129, allocations: 407.9 kB / 1.654 GB, free: 87.19 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/1.13, allocations: 408.8 kB / 1.654 GB, free: 86.79 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/1.131, allocations: 0.7784 MB / 1.655 GB, free: 85.89 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/1.132, allocations: 426.9 kB / 1.655 GB, free: 85.48 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/1.133, allocations: 4.844 kB / 1.655 GB, free: 85.48 MB / 0.8542 GB Notification: Performance of matching and sorting (n=186) (initialization): time 0.00311/1.136, allocations: 1.246 MB / 1.656 GB, free: 84.23 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.23e-05/1.136, allocations: 8 kB / 1.656 GB, free: 84.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.623e-05/1.136, allocations: 13.03 kB / 1.656 GB, free: 84.21 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.834e-05/1.136, allocations: 16 kB / 1.656 GB, free: 84.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/1.137, allocations: 184.2 kB / 1.657 GB, free: 84.02 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.458e-05/1.137, allocations: 28.41 kB / 1.657 GB, free: 83.99 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/1.139, allocations: 157.1 kB / 1.657 GB, free: 83.84 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002393/1.139, allocations: 63.98 kB / 1.657 GB, free: 83.78 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 121 ($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,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.operationModes.initialStepWithSignal.localActive,operationModes.initialStepWithSignal.localActive,$PRE.operationModes.initialStepWithSignal.newActive,operationModes.initialStepWithSignal.newActive,$PRE.operationModes.initialStepWithSignal.oldActive,operationModes.initialStepWithSignal.oldActive,operationModes.initialStepWithSignal.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.sum.u[6],operationModes.yFan,operationModes.yEco,operationModes.and3.u2,mode.u,modSel.y,modSel1.y,$PRE.occSch.occupied,occSch.occupied,$PRE.occSch.tOcc,occSch.tOcc,$PRE.occSch.tNonOcc,occSch.tNonOcc,$PRE.occSch.tNext,occSch.tNext,operationModes.preCooSta.and3.u[2],PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.00114/1.14, allocations: 421.9 kB / 1.657 GB, free: 83.37 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002954/1.14, allocations: 94.89 kB / 1.657 GB, free: 83.27 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003026/1.143, allocations: 1.051 MB / 1.658 GB, free: 82.22 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/1.143, allocations: 12 kB / 1.658 GB, free: 82.21 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/1.143, allocations: 0 / 1.658 GB, free: 82.21 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.121e-05/1.143, allocations: 15.92 kB / 1.658 GB, free: 82.19 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006547/1.15, allocations: 2.436 MB / 1.661 GB, free: 79.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/1.15, allocations: 0 / 1.661 GB, free: 79.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009482/1.151, allocations: 111.8 kB / 1.661 GB, free: 79.59 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.339e-05/1.151, allocations: 4 kB / 1.661 GB, free: 79.58 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/1.151, allocations: 27.98 kB / 1.661 GB, free: 79.55 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.054e-05/1.151, allocations: 4 kB / 1.661 GB, free: 79.55 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/1.151, allocations: 3.984 kB / 1.661 GB, free: 79.55 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003945/1.155, allocations: 1.621 MB / 1.662 GB, free: 77.91 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005899/1.156, allocations: 256.6 kB / 1.663 GB, free: 77.64 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/1.156, allocations: 28 kB / 1.663 GB, free: 77.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009076/1.157, allocations: 84 kB / 1.663 GB, free: 77.53 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004543/1.158, allocations: 144.8 kB / 1.663 GB, free: 77.39 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/1.158, allocations: 43.92 kB / 1.663 GB, free: 77.34 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0006298/1.158, allocations: 367.1 kB / 1.663 GB, free: 76.99 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.81e-07/1.158, allocations: 4 kB / 1.663 GB, free: 76.98 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001412/1.16, allocations: 291.6 kB / 1.664 GB, free: 76.7 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (cap.T,PID.I.y) * Number of discrete variables: 92 (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.initialStepWithSignal.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$cse8,$cse9,$cse10,$cse11,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,operationModes.initialStepWithSignal.newActive,operationModes.initialStepWithSignal.oldActive,operationModes.initialStepWithSignal.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.sum.u[6],operationModes.yFan,operationModes.yEco,operationModes.and3.u2,mode.u,modSel.y,modSel1.y,occSch.occupied,occSch.tOcc,occSch.tNonOcc,occSch.tNext) * Number of discrete states: 7 (occSch.tNext,operationModes.initialStepWithSignal.newActive,operationModes.unOccOff.newActive,operationModes.unOccNigSetBac.newActive,operationModes.morWarUp.newActive,operationModes.occ.newActive,operationModes.morPreCoo.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.000538/1.16, allocations: 243.5 kB / 1.664 GB, free: 76.45 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.002844/1.163, allocations: 1.128 MB / 1.665 GB, free: 75.32 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/1.163, allocations: 1.5 kB / 1.665 GB, free: 75.32 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.001309/1.165, allocations: 0.533 MB / 1.665 GB, free: 74.79 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/1.166, allocations: 184.6 kB / 1.666 GB, free: 74.62 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005027/1.171, allocations: 2.475 MB / 1.668 GB, free: 72.11 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007042/1.172, allocations: 1.15 MB / 1.669 GB, free: 70.93 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.001107/1.173, allocations: 165.4 kB / 1.669 GB, free: 70.77 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000437/1.173, allocations: 95.41 kB / 1.669 GB, free: 70.68 MB / 0.8542 GB Notification: Performance of SimCode: time 1.262e-06/1.173, allocations: 0 / 1.669 GB, free: 70.68 MB / 0.8542 GB Notification: Performance of Templates: time 0.03312/1.207, allocations: 11.26 MB / 1.68 GB, free: 59.62 MB / 0.8542 GB