Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.SetPoints.Validation.ZoneTemperatures.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.SetPoints.Validation.ZoneTemperatures,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.SetPoints.Validation.ZoneTemperatures") translateModel(Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.SetPoints.Validation.ZoneTemperatures,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.SetPoints.Validation.ZoneTemperatures") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 105.2 kB / 16.37 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.001211, allocations: 190.1 kB / 17.3 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.827/1.827, allocations: 292.3 MB / 0.5496 GB, free: 17.57 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.73e-05/2.739e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.902 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.SetPoints.Validation.ZoneTemperatures): time 0.006486/0.006527, allocations: 5.153 MB / 0.6779 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003611/0.01016, allocations: 1.938 MB / 0.6798 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007317/0.01091, allocations: 31.88 kB / 0.6798 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005604/0.01148, allocations: 197.5 kB / 0.68 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004335/0.01192, allocations: 162 kB / 0.6802 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001739/0.01371, allocations: 0.8566 MB / 0.681 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0019/0.01562, allocations: 2.056 MB / 0.683 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002037/0.01766, allocations: 1.715 MB / 0.6847 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007429/0.01842, allocations: 0.7163 MB / 0.6854 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006159/0.01904, allocations: 0.7658 MB / 0.6861 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002506/0.0193, allocations: 228 kB / 0.6864 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002835/0.01959, allocations: 248 kB / 0.6866 GB, free: 7.742 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.001483/0.02108, allocations: 2.528 MB / 0.6891 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0008277/0.02192, allocations: 1.565 MB / 0.6906 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003548/0.02228, allocations: 283 kB / 0.6909 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of FrontEnd: time 0.0004/0.02269, allocations: 130.7 kB / 0.691 GB, free: 3.188 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 410 (410) * Number of variables: 406 (406) Notification: Performance of Bindings: time 0.006162/0.02886, allocations: 7.521 MB / 0.6983 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 0.0008462/0.02971, allocations: 1.022 MB / 0.6993 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.004849/0.03457, allocations: 5.544 MB / 0.7047 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of simplify1: time 0.0003263/0.03491, allocations: 299.6 kB / 0.705 GB, free: 4.508 MB / 0.5762 GB Notification: Performance of Alias: time 0.01007/0.04499, allocations: 9.317 MB / 0.7141 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of simplify2: time 0.0003235/0.04536, allocations: 159.8 kB / 0.7143 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of Events: time 0.001251/0.04662, allocations: 0.9582 MB / 0.7152 GB, free: 8.93 MB / 0.5919 GB Notification: Performance of Detect States: time 0.00138/0.04801, allocations: 1.31 MB / 0.7165 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of Partitioning: time 0.00127/0.04929, allocations: 1.12 MB / 0.7176 GB, free: 6.43 MB / 0.5919 GB Notification: Performance of Causalize: time 0.006492/0.05579, allocations: 6.606 MB / 0.724 GB, free: 152 kB / 0.5919 GB Notification: Performance of After Index Reduction Inline: time 0.003208/0.05903, allocations: 2.939 MB / 0.7269 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of Inline: time 0.006141/0.06518, allocations: 5.73 MB / 0.7325 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of Partitioning: time 0.0004317/0.06565, allocations: 293.1 kB / 0.7328 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of Cleanup: time 0.0006199/0.06628, allocations: 0.5782 MB / 0.7334 GB, free: 6.398 MB / 0.6075 GB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [ALGO] (3) ($RES_SIM_0) [----] occSta.t0 := if $FUN_10 + occSta.period * integer(time / occSta.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_10 + occSta.period * integer(time / occSta.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_10 + occSta.period * integer(time / occSta.period))); [----] occSta.t1 := occSta.t0 + occSta.width * occSta.period; [----] if time + occSta.period < occSta.t1 then [----] occSta.t0 := occSta.t0 - occSta.period; [----] occSta.t1 := occSta.t1 - occSta.period; [----] end if; [----] if time >= occSta.t1 then [----] occSta.t0 := occSta.t0 + occSta.period; [----] elseif time < occSta.t0 then [----] occSta.t1 := occSta.t1 - occSta.period; [----] end if; [----] if occSta.t0 < occSta.t1 then [----] assert(occSta.t0 <= time and time < occSta.t1, "ZoneTemperatures.occSta: Implementation error in initial time calculation: t0 = " + String(occSta.t0, 6, 0, true) + ", t1 = " + String(occSta.t1, 6, 0, true) + ", period = " + String(occSta.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] occSta.y := time >= occSta.t0 and time < occSta.t1; [----] elseif true then [----] assert(occSta.t1 <= time and time < occSta.t0, "ZoneTemperatures.occSta: Implementation error in initial time calculation: t0 = " + String(occSta.t0, 6, 0, true) + ", t1 = " + String(occSta.t1, 6, 0, true) + ", period = " + String(occSta.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] occSta.y := not (time >= occSta.t1 and time < occSta.t0); [----] end if; slice: {1, 2}; [ALGO] (3) ($RES_SIM_1) [----] winSta.t0 := if $FUN_9 + winSta.period * integer(time / winSta.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_9 + winSta.period * integer(time / winSta.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_9 + winSta.period * integer(time / winSta.period))); [----] winSta.t1 := winSta.t0 + winSta.width * winSta.period; [----] if time + winSta.period < winSta.t1 then [----] winSta.t0 := winSta.t0 - winSta.period; [----] winSta.t1 := winSta.t1 - winSta.period; [----] end if; [----] if time >= winSta.t1 then [----] winSta.t0 := winSta.t0 + winSta.period; [----] elseif time < winSta.t0 then [----] winSta.t1 := winSta.t1 - winSta.period; [----] end if; [----] if winSta.t0 < winSta.t1 then [----] assert(winSta.t0 <= time and time < winSta.t1, "ZoneTemperatures.winSta: Implementation error in initial time calculation: t0 = " + String(winSta.t0, 6, 0, true) + ", t1 = " + String(winSta.t1, 6, 0, true) + ", period = " + String(winSta.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] swi2.u2 := time >= winSta.t0 and time < winSta.t1; [----] elseif true then [----] assert(winSta.t1 <= time and time < winSta.t0, "ZoneTemperatures.winSta: Implementation error in initial time calculation: t0 = " + String(winSta.t0, 6, 0, true) + ", t1 = " + String(winSta.t1, 6, 0, true) + ", period = " + String(winSta.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] swi2.u2 := not (time >= winSta.t1 and time < winSta.t0); [----] end if; slice: {1, 2}; [SCAL] (1) $TEV_24 = false ($RES_SIM_16) slice: {}; [SCAL] (1) TZonSet.truHol.outputTrue.outerStatePort.localActive = $TEV_28 ($RES_SIM_148) slice: {}; [SCAL] (1) TZonSet.truHol.toInitial.outPort.set = TZonSet.truHol.initialStep.inPort[1].set ($RES_SIM_414) slice: {}; [SCAL] (1) TZonSet.truHol.initialStep.outPort[1].reset = TZonSet.truHol.toOutputTrue.outPort.set ($RES_SIM_419) slice: {}; [SCAL] (1) $SEV_33 = (TZonSet.truHol.toOutputTrue.localCondition and TZonSet.truHol.toOutputTrue.inPort.available) and not TZonSet.truHol.toOutputTrue.outPort.occupied ($RES_EVT_490) slice: {}; [SCAL] (1) $SEV_32 = (TZonSet.truHol.toInitial.localCondition and TZonSet.truHol.toInitial.inPort.available) and not TZonSet.truHol.toInitial.outPort.occupied ($RES_EVT_489) slice: {}; Notification: Performance of Causalize: time 0.03537/0.1017, allocations: 39.23 MB / 0.7717 GB, free: 1.766 MB / 0.6387 GB Notification: Performance of Tearing: time 0.0007531/0.1025, allocations: 0.8006 MB / 0.7724 GB, free: 0.8672 MB / 0.6387 GB Notification: Performance of Initialization: time 1.282e-06/0.1025, allocations: 0 / 0.7724 GB, free: 0.8672 MB / 0.6387 GB Notification: Performance of Tearing: time 7.484e-06/0.1025, allocations: 4 kB / 0.7725 GB, free: 0.8633 MB / 0.6387 GB Notification: Performance of Categorize: time 3.013e-05/0.1025, allocations: 8.562 kB / 0.7725 GB, free: 0.8555 MB / 0.6387 GB Notification: Performance of Solve: time 0.001948/0.1045, allocations: 0.9291 MB / 0.7734 GB, free: 15.91 MB / 0.6544 GB Notification: Performance of Jacobian: time 3.136e-06/0.1045, allocations: 0 / 0.7734 GB, free: 15.91 MB / 0.6544 GB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 4 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 12 (12) {occSta.y, swi2.u2, TZonSet.heaSetSam.y, TZonSet.cooSetSam.y, TZonSet.truHol.outputTrue.oldActive, TZonSet.truHol.initialStep.oldActive, TZonSet.truHol.onDelay.t_next, TZonSet.truHol.toInitial.localCondition, TZonSet.tim.entryTime, TZonSet.truHol.toOutputTrue.localCondition, TZonSet.pro7.u2, TZonSet.addPar2.u} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 105 (105) {TZonSet.edg.u, TZonSet.cooSetFre.trigger, TZonSet.or1.y, TZonSet.or4.y, TZonSet.truHol.stateGraphRoot.activeSteps, TZonSet.truHol.initialStep.inPort.set, TZonSet.truHol.initialStep.inPort.occupied, TZonSet.truHol.initialStep.outPort.reset, TZonSet.truHol.initialStep.outPort.available, TZonSet.truHol.initialStep.outerStatePort.localActive, TZonSet.truHol.initialStep.newActive, TZonSet.truHol.outputTrue.inPort.set, TZonSet.truHol.outputTrue.inPort.occupied, TZonSet.truHol.outputTrue.outPort.reset, TZonSet.truHol.outputTrue.outPort.available, TZonSet.truHol.outputTrue.outerStatePort.localActive, TZonSet.truHol.outputTrue.newActive, TZonSet.truHol.toOutputTrue.inPort.available, TZonSet.truHol.toOutputTrue.outPort.occupied, TZonSet.truHol.toOutputTrue.outPort.set, TZonSet.truHol.toInitial.inPort.available, TZonSet.truHol.toInitial.outPort.occupied, TZonSet.truHol.toInitial.outPort.set, TZonSet.cooSetSam.trigger, TZonSet.intEqu.y, TZonSet.intEqu1.y, TZonSet.or3.u3, TZonSet.reaToInt.y, TZonSet.booToRea.u, TZonSet.booToRea1.u, TZonSet.booToRea2.u, TZonSet.booToRea3.u, TZonSet.booToRea4.u, TZonSet.booToRea5.u, TZonSet.and11.y, TZonSet.swi.u2, TZonSet.swi7.u2, TZonSet.swi8.u2, TZonSet.swi9.u2, TZonSet.swi10.u2, TZonSet.and10.y, TZonSet.intGreThr.y, TZonSet.intGreThr1.y, booToInt.y, not1.u, $FUN_1, $FUN_2, $FUN_3, $FUN_4, $SEV_41, $SEV_40, $SEV_39, $SEV_38, $SEV_37, $SEV_36, $SEV_35, $SEV_34, $SEV_33, $SEV_32, $SEV_31, $SEV_30, $SEV_29, $SEV_28, $SEV_27, $SEV_26, $SEV_25, $SEV_24, $SEV_23, $SEV_22, $SEV_21, $SEV_20, $SEV_19, $SEV_18, $SEV_17, $SEV_16, $SEV_15, $SEV_14, $SEV_13, $SEV_12, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $TEV_43, $TEV_42, $TEV_41, $TEV_40, $TEV_39, $TEV_38, $TEV_37, $TEV_36, $TEV_35, $TEV_34, $TEV_33, $TEV_32, $TEV_31, $TEV_30, $TEV_29, $TEV_28, $TEV_27, $TEV_26, $TEV_25, $TEV_24} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 176 (scalar:176, array:0, record:0) * Number of multi strong components: ............ 12 (algorithm:0, when:12, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 285 (scalar:285, array:0, record:0) * Number of multi strong components: ............ 2 (algorithm:2, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 285 (scalar:285, array:0, record:0) * Number of multi strong components: ............ 2 (algorithm:2, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 0.0001459/0.1046, allocations: 152.2 kB / 0.7735 GB, free: 15.77 MB / 0.6544 GB Error: Internal error NBEquation.WhenEquationBody.getBodyAttributes.getConditions failed for condition: not TZonSet.truHol.outputTrue.outerStatePort.localActive