Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 110.2 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 192.2 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 225.6 MB / 251 MB, free: 12.99 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002514/0.002514, allocations: 290.7 kB / 306.6 MB, free: 8.309 MB / 238.1 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.199/1.199, allocations: 180.9 MB / 0.53 GB, free: 14.42 MB / 382.1 MB
"
[Timeout remaining time 179]
Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo)
Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule")
translateModel(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00283/0.00283, allocations: 99.14 kB / 0.7308 GB, free: 38.96 MB / 0.545 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1658, allocations: 94.21 MB / 0.8228 GB, free: 1.801 MB / 0.5606 GB
Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.003056/0.1689, allocations: 1.423 MB / 0.8242 GB, free: 376 kB / 0.5606 GB
Notification: Performance of NFInst.instExpressions: time 0.001066/0.1699, allocations: 0.4959 MB / 0.8247 GB, free: 15.87 MB / 0.5762 GB
Notification: Performance of NFInst.updateImplicitVariability: time 3.202e-05/0.17, allocations: 0 / 0.8247 GB, free: 15.87 MB / 0.5762 GB
Notification: Performance of NFTyping.typeComponents: time 8.05e-05/0.17, allocations: 7.938 kB / 0.8247 GB, free: 15.86 MB / 0.5762 GB
Notification: Performance of NFTyping.typeBindings: time 6.773e-05/0.1701, allocations: 19.84 kB / 0.8247 GB, free: 15.84 MB / 0.5762 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0007675/0.1709, allocations: 236.6 kB / 0.8249 GB, free: 15.62 MB / 0.5762 GB
Notification: Performance of NFFlatten.flatten: time 0.0002194/0.1711, allocations: 151.7 kB / 0.8251 GB, free: 15.47 MB / 0.5762 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.75e-05/0.1711, allocations: 8 kB / 0.8251 GB, free: 15.46 MB / 0.5762 GB
Notification: Performance of NFEvalConstants.evaluate: time 7.812e-05/0.1712, allocations: 59.84 kB / 0.8251 GB, free: 15.4 MB / 0.5762 GB
Notification: Performance of NFSimplifyModel.simplify: time 8.503e-05/0.1713, allocations: 39.88 kB / 0.8252 GB, free: 15.36 MB / 0.5762 GB
Notification: Performance of NFPackage.collectConstants: time 3.249e-05/0.1713, allocations: 12 kB / 0.8252 GB, free: 15.35 MB / 0.5762 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0003214/0.1717, allocations: 199.7 kB / 0.8254 GB, free: 15.16 MB / 0.5762 GB
Notification: Performance of NFScalarize.scalarize: time 7.173e-05/0.1717, allocations: 35.89 kB / 0.8254 GB, free: 15.12 MB / 0.5762 GB
Notification: Performance of NFVerifyModel.verify: time 8.094e-05/0.1718, allocations: 51.73 kB / 0.8255 GB, free: 15.07 MB / 0.5762 GB
Notification: Performance of NFConvertDAE.convert: time 0.000345/0.1722, allocations: 239.2 kB / 0.8257 GB, free: 14.84 MB / 0.5762 GB
Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1722, allocations: 0 / 0.8257 GB, free: 14.84 MB / 0.5762 GB
Notification: Performance of FrontEnd: time 1.403e-06/0.1722, allocations: 0 / 0.8257 GB, free: 14.84 MB / 0.5762 GB
Notification: Performance of Transformations before backend: time 5.35e-06/0.1722, allocations: 0 / 0.8257 GB, free: 14.84 MB / 0.5762 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 12
 * Number of variables: 12
Notification: Performance of Generate backend data structure: time 0.0005932/0.1728, allocations: 381.5 kB / 0.8261 GB, free: 14.43 MB / 0.5762 GB
Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1728, allocations: 8.031 kB / 0.8261 GB, free: 14.42 MB / 0.5762 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.516e-05/0.1729, allocations: 16.89 kB / 0.8261 GB, free: 14.41 MB / 0.5762 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002185/0.1731, allocations: 150.3 kB / 0.8262 GB, free: 14.23 MB / 0.5762 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.1731, allocations: 8.375 kB / 0.8262 GB, free: 14.23 MB / 0.5762 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.394e-05/0.1731, allocations: 12.38 kB / 0.8262 GB, free: 14.21 MB / 0.5762 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001575/0.1733, allocations: 83.88 kB / 0.8263 GB, free: 14.12 MB / 0.5762 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.1733, allocations: 4.188 kB / 0.8263 GB, free: 14.12 MB / 0.5762 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.1733, allocations: 3.938 kB / 0.8263 GB, free: 14.11 MB / 0.5762 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1733, allocations: 0 / 0.8263 GB, free: 14.11 MB / 0.5762 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 8.237e-05/0.1734, allocations: 35.98 kB / 0.8264 GB, free: 14.08 MB / 0.5762 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002487/0.1736, allocations: 205.6 kB / 0.8266 GB, free: 13.83 MB / 0.5762 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.1738, allocations: 73.12 kB / 0.8266 GB, free: 13.74 MB / 0.5762 GB
Notification: Performance of preOpt resolveLoops (simulation): time 7.912e-05/0.1738, allocations: 53.84 kB / 0.8267 GB, free: 13.68 MB / 0.5762 GB
Notification: Performance of preOpt evalFunc (simulation): time 9.668e-06/0.1738, allocations: 4 kB / 0.8267 GB, free: 13.68 MB / 0.5762 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.1741, allocations: 117 kB / 0.8268 GB, free: 13.55 MB / 0.5762 GB
Notification: Performance of pre-optimization done (n=14): time 1.052e-06/0.1741, allocations: 0 / 0.8268 GB, free: 13.55 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=14): time 0.0003681/0.1744, allocations: 201.4 kB / 0.827 GB, free: 13.34 MB / 0.5762 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.1745, allocations: 81.11 kB / 0.8271 GB, free: 13.25 MB / 0.5762 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.1746, allocations: 156 kB / 0.8272 GB, free: 13.09 MB / 0.5762 GB
Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.1747, allocations: 33.7 kB / 0.8272 GB, free: 13.05 MB / 0.5762 GB
Notification: Performance of collectInitialEqns (initialization): time 7.464e-05/0.1748, allocations: 104.5 kB / 0.8273 GB, free: 12.94 MB / 0.5762 GB
Notification: Performance of collectInitialBindings (initialization): time 4.784e-05/0.1748, allocations: 35.73 kB / 0.8274 GB, free: 12.9 MB / 0.5762 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.827e-05/0.1749, allocations: 53.64 kB / 0.8274 GB, free: 12.84 MB / 0.5762 GB
Notification: Performance of setup shared object (initialization): time 0.0001396/0.175, allocations: 322.8 kB / 0.8277 GB, free: 12.52 MB / 0.5762 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.382e-05/0.1751, allocations: 39.98 kB / 0.8278 GB, free: 12.48 MB / 0.5762 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.1753, allocations: 204.4 kB / 0.828 GB, free: 12.23 MB / 0.5762 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.1755, allocations: 93.64 kB / 0.8281 GB, free: 12.13 MB / 0.5762 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1755, allocations: 4 kB / 0.8281 GB, free: 12.12 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002461/0.1757, allocations: 173.4 kB / 0.8282 GB, free: 11.95 MB / 0.5762 GB
Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.1758, allocations: 11.94 kB / 0.8282 GB, free: 11.94 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.088e-05/0.1758, allocations: 4 kB / 0.8282 GB, free: 11.93 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.1758, allocations: 0 / 0.8282 GB, free: 11.93 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.792e-05/0.1759, allocations: 12 kB / 0.8283 GB, free: 11.92 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1759, allocations: 3.984 kB / 0.8283 GB, free: 11.92 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002897/0.1762, allocations: 75.86 kB / 0.8283 GB, free: 11.84 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.1762, allocations: 4 kB / 0.8283 GB, free: 11.84 MB / 0.5762 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 18 (occSchWee.tNext,$PRE.occSchWee.tNext,occSchWee.tNonOcc,$PRE.occSchWee.tNonOcc,occSchWee.tOcc,$PRE.occSchWee.tOcc,occSchWee.occupied,$PRE.occSchWee.occupied,$whenCondition2,occSchDay.tNext,$PRE.occSchDay.tNext,occSchDay.tNonOcc,$PRE.occSchDay.tNonOcc,occSchDay.tOcc,$PRE.occSchDay.tOcc,occSchDay.occupied,$PRE.occSchDay.occupied,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (16):
 * Single equations (assignments): 14
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 2
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.1763, allocations: 135.1 kB / 0.8285 GB, free: 11.7 MB / 0.5762 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.755e-05/0.1763, allocations: 15.88 kB / 0.8285 GB, free: 11.68 MB / 0.5762 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.37e-05/0.1764, allocations: 12.72 kB / 0.8285 GB, free: 11.66 MB / 0.5762 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.1764, allocations: 0 / 0.8285 GB, free: 11.66 MB / 0.5762 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1764, allocations: 4 kB / 0.8285 GB, free: 11.66 MB / 0.5762 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.1764, allocations: 4 kB / 0.8285 GB, free: 11.66 MB / 0.5762 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.1765, allocations: 164.7 kB / 0.8287 GB, free: 11.45 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.1765, allocations: 7.875 kB / 0.8287 GB, free: 11.45 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.472e-05/0.1766, allocations: 8 kB / 0.8287 GB, free: 11.44 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1766, allocations: 0 / 0.8287 GB, free: 11.44 MB / 0.5762 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.1766, allocations: 0 / 0.8287 GB, free: 11.44 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1766, allocations: 4 kB / 0.8287 GB, free: 11.43 MB / 0.5762 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1766, allocations: 0 / 0.8287 GB, free: 11.43 MB / 0.5762 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002397/0.1768, allocations: 181.8 kB / 0.8289 GB, free: 11.23 MB / 0.5762 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.577e-05/0.1768, allocations: 15.84 kB / 0.8289 GB, free: 11.22 MB / 0.5762 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.1769, allocations: 8 kB / 0.8289 GB, free: 11.21 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.014e-05/0.1769, allocations: 0 / 0.8289 GB, free: 11.21 MB / 0.5762 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.1769, allocations: 7.984 kB / 0.8289 GB, free: 11.2 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.177, allocations: 4 kB / 0.8289 GB, free: 11.2 MB / 0.5762 GB
Notification: Performance of sorting global known variables: time 8.693e-05/0.177, allocations: 117 kB / 0.829 GB, free: 11.09 MB / 0.5762 GB
Notification: Performance of sort global known variables: time 8e-08/0.177, allocations: 0 / 0.829 GB, free: 11.09 MB / 0.5762 GB
Notification: Performance of remove unused functions: time 0.000301/0.1773, allocations: 75.8 kB / 0.8291 GB, free: 11.01 MB / 0.5762 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 10 ($whenCondition2,occSchWee.occupied,occSchWee.tOcc,occSchWee.tNonOcc,occSchWee.tNext,$whenCondition1,occSchDay.occupied,occSchDay.tOcc,occSchDay.tNonOcc,occSchDay.tNext)
 * Number of discrete states: 2 (occSchDay.tNext,occSchWee.tNext)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (8):
 * Single equations (assignments): 6
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0002533/0.1776, allocations: 164.9 kB / 0.8292 GB, free: 10.84 MB / 0.5762 GB
Notification: Performance of simCode: created initialization part: time 0.0002908/0.1779, allocations: 163.3 kB / 0.8294 GB, free: 10.67 MB / 0.5762 GB
Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1779, allocations: 0 / 0.8294 GB, free: 10.67 MB / 0.5762 GB
Notification: Performance of simCode: created simulation system equations: time 7.313e-05/0.178, allocations: 43.92 kB / 0.8294 GB, free: 10.63 MB / 0.5762 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001646/0.1781, allocations: 14.11 kB / 0.8294 GB, free: 10.62 MB / 0.5762 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004263/0.1786, allocations: 223.4 kB / 0.8297 GB, free: 10.37 MB / 0.5762 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.1789, allocations: 0.7157 MB / 0.8304 GB, free: 9.629 MB / 0.5762 GB
Notification: Performance of simCode: alias equations: time 3.848e-05/0.1789, allocations: 4.672 kB / 0.8304 GB, free: 9.621 MB / 0.5762 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.432e-05/0.179, allocations: 11.44 kB / 0.8304 GB, free: 9.609 MB / 0.5762 GB
Notification: Performance of SimCode: time 2.91e-07/0.179, allocations: 0 / 0.8304 GB, free: 9.609 MB / 0.5762 GB
Notification: Performance of Templates: time 0.006083/0.185, allocations: 2.589 MB / 0.8329 GB, free: 7.051 MB / 0.5762 GB
"
[Timeout remaining time 660]
make -j1 -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 660]
(rm -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.sim & ./BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule  -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.937805219553411]
Failed to read output from testmodel.py, exit status != 0:
0.1922826012596488 0.20705958700000002 0.031904218000000005
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f137a53d7b0>