Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 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.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 108.3 kB / 16.42 MB, free: 6.52 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.001151/0.001151, allocations: 183.2 kB / 17.35 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.331/2.331, allocations: 461.9 MB / 0.7354 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.24e-05/2.24e-05, allocations: 5.094 kB / 1.055 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003828/0.003858, allocations: 2.938 MB / 1.057 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001897/0.005767, allocations: 1.11 MB / 1.059 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002149/0.005993, allocations: 15.94 kB / 1.059 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002386/0.006239, allocations: 79.14 kB / 1.059 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.006414, allocations: 75.25 kB / 1.059 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007003/0.007135, allocations: 346.1 kB / 1.059 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006897/0.007835, allocations: 0.7419 MB / 1.06 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005918/0.008435, allocations: 0.5202 MB / 1.06 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.008696, allocations: 279 kB / 1.061 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.008959, allocations: 270.8 kB / 1.061 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.626e-05/0.009062, allocations: 72 kB / 1.061 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.009182, allocations: 88 kB / 1.061 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of combineBinaries: time 0.0004843/0.009673, allocations: 0.8418 MB / 1.062 GB, free: 424 kB / 0.8262 GB Notification: Performance of replaceArrayConstructors: time 0.0002491/0.009928, allocations: 0.5194 MB / 1.062 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.121e-05/0.01003, allocations: 95.69 kB / 1.062 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of FrontEnd: time 0.000102/0.01013, allocations: 55.61 kB / 1.062 GB, free: 15.73 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 (117) * Number of variables: 113 (113) Notification: Performance of Bindings: time 0.002356/0.0125, allocations: 2.554 MB / 1.065 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 0.0001437/0.01265, allocations: 151.5 kB / 1.065 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.00134/0.014, allocations: 1.505 MB / 1.067 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of simplify1: time 9.804e-05/0.0141, allocations: 99.86 kB / 1.067 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of Alias: time 0.003194/0.0173, allocations: 2.965 MB / 1.07 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of simplify2: time 6.988e-05/0.01738, allocations: 67.91 kB / 1.07 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of Events: time 0.000361/0.01776, allocations: 300.6 kB / 1.07 GB, free: 7.684 MB / 0.8419 GB Notification: Performance of Detect States: time 0.0004648/0.01823, allocations: 0.4998 MB / 1.07 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0004639/0.0187, allocations: 474.2 kB / 1.071 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of Causalize: time 0.002145/0.02085, allocations: 1.836 MB / 1.073 GB, free: 4.805 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.001028/0.02189, allocations: 1.115 MB / 1.074 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of Inline: time 0.001734/0.02363, allocations: 1.887 MB / 1.076 GB, free: 1.734 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0001238/0.02377, allocations: 111.6 kB / 1.076 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of Cleanup: time 6.907e-05/0.02384, allocations: 87.8 kB / 1.076 GB, free: 1.531 MB / 0.8419 GB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) preHeatCoil.toOff.outPort.set = preHeatCoil.pumOn.outPort[1].reset ($RES_SIM_85) slice: {}; [SCAL] (1) preHeatCoil.pumOff.outPort[1].reset = preHeatCoil.toOn.outPort.set ($RES_SIM_91) slice: {}; [SCAL] (1) $SEV_3 = (preHeatCoil.toOn.localCondition and preHeatCoil.toOn.inPort.available) and not preHeatCoil.toOn.outPort.occupied ($RES_EVT_149) slice: {}; [SCAL] (1) $SEV_1 = preHeatCoil.toOff.enableFire and time >= ((time - preHeatCoil.toOff.t_dummy) + preHeatCoil.toOff.waitTime) ($RES_EVT_147) slice: {}; Notification: Performance of Causalize: time 0.4753/0.4991, allocations: 4.615 MB / 1.08 GB, free: 23.18 MB / 0.8419 GB Notification: Performance of Tearing: time 1.645e-05/0.4992, allocations: 1.312 kB / 1.08 GB, free: 23.18 MB / 0.8419 GB Notification: Performance of Initialization: time 1.273e-06/0.4992, allocations: 0 / 1.08 GB, free: 23.18 MB / 0.8419 GB Notification: Performance of Tearing: time 7.404e-06/0.4992, allocations: 1.031 kB / 1.08 GB, free: 23.18 MB / 0.8419 GB Notification: Performance of Categorize: time 2.486e-05/0.4992, allocations: 3.953 kB / 1.08 GB, free: 23.18 MB / 0.8419 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:2011:9-2012:55:writable] Error: Internal error NFCeval.evalBuiltinCall: unimplemented case for pre Notification: Performance of Solve: time 0.0006358/0.4999, allocations: 360.8 kB / 1.081 GB, free: 23.14 MB / 0.8419 GB Notification: Performance of Jacobian: time 0.000668/0.5006, allocations: 0.6849 MB / 1.081 GB, free: 22.86 MB / 0.8419 GB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 1 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 2 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 1 (1) {preHeatCoil.preHeaCoiCon.I.y} * Number of discrete states: .................... 5 (5) {preHeatCoil.pumOn.oldActive, preHeatCoil.toOn.t_start, preHeatCoil.pumOff.oldActive, TMix.T_start, TMix.count} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 49 (49) {preHeatCoil.pumOff.inPort.set, preHeatCoil.pumOff.inPort.occupied, preHeatCoil.pumOff.outPort.reset, preHeatCoil.pumOff.outPort.available, preHeatCoil.pumOff.outerStatePort.localActive, preHeatCoil.pumOff.newActive, preHeatCoil.toOn.localCondition, preHeatCoil.toOn.inPort.available, preHeatCoil.toOn.outPort.occupied, preHeatCoil.toOn.outPort.set, preHeatCoil.stateGraphRoot.activeSteps, preHeatCoil.pumOn.inPort.set, preHeatCoil.pumOn.inPort.occupied, preHeatCoil.pumOn.outPort.reset, preHeatCoil.pumOn.outPort.available, preHeatCoil.pumOn.outerStatePort.localActive, preHeatCoil.pumOn.newActive, preHeatCoil.toOff.enableFire, preHeatCoil.toOff.inPort.available, preHeatCoil.toOff.outPort.occupied, preHeatCoil.toOff.outPort.set, $FUN_1, $FUN_2, $FUN_3, $FUN_4, $SEV_13, $SEV_12, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_9, $TEV_8, $TEV_7, $TEV_6, $TEV_5, $TEV_4, $TEV_3, $TEV_2, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 66 (scalar:66, array:0, record:0) * Number of multi strong components: ............ 6 (algorithm:0, when:6, 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: ........... 111 (scalar:111, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, 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: Performance of backend: time 7.212e-05/0.5006, allocations: 59.34 kB / 1.081 GB, free: 22.85 MB / 0.8419 GB Error: Internal error NBEquation.WhenEquationBody.getBodyAttributes.getConditions failed for condition: false