Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: "" <> buildModelFMU(IBPSA.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IBPSA_latest_IBPSA_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IBPSA_latest_IBPSA_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 106.4 kB / 16.4 MB, free: 6.492 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.001169/0.001169, allocations: 193.2 kB / 17.34 MB, free: 5.766 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.735/0.735, allocations: 115.3 MB / 406.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 56.36 kB / 0.5572 GB, free: 32.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1537, allocations: 76.19 MB / 0.6316 GB, free: 4.973 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.SetPoints.Examples.OccupancySchedule): time 0.002783/0.1565, allocations: 1.396 MB / 0.6329 GB, free: 3.562 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009369/0.1575, allocations: 0.4944 MB / 0.6334 GB, free: 3.066 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.068e-05/0.1575, allocations: 0 / 0.6334 GB, free: 3.066 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 8.15e-05/0.1576, allocations: 7.922 kB / 0.6334 GB, free: 3.059 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 6.43e-05/0.1577, allocations: 15.88 kB / 0.6334 GB, free: 3.043 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000932/0.1587, allocations: 232.1 kB / 0.6336 GB, free: 2.82 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.159, allocations: 143.8 kB / 0.6338 GB, free: 2.68 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.951e-05/0.159, allocations: 7.984 kB / 0.6338 GB, free: 2.672 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.677e-05/0.1591, allocations: 63.83 kB / 0.6339 GB, free: 2.609 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.677e-05/0.1592, allocations: 39.89 kB / 0.6339 GB, free: 2.57 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.1593, allocations: 8 kB / 0.6339 GB, free: 2.562 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003292/0.1596, allocations: 171.8 kB / 0.6341 GB, free: 2.395 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.493e-05/0.1597, allocations: 35.91 kB / 0.6341 GB, free: 2.359 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 9.044e-05/0.1598, allocations: 55.72 kB / 0.6341 GB, free: 2.305 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000424/0.1602, allocations: 234.2 kB / 0.6344 GB, free: 2.078 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1602, allocations: 0 / 0.6344 GB, free: 2.078 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1602, allocations: 0 / 0.6344 GB, free: 2.078 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.1603, allocations: 0 / 0.6344 GB, free: 2.078 MB / 478.1 MB 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.0007104/0.161, allocations: 451.8 kB / 0.6348 GB, free: 1.586 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.161, allocations: 12.03 kB / 0.6348 GB, free: 1.574 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.854e-05/0.1611, allocations: 38.75 kB / 0.6348 GB, free: 1.527 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.835e-05/0.1612, allocations: 16.83 kB / 0.6349 GB, free: 1.512 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.1614, allocations: 204.1 kB / 0.6351 GB, free: 1.273 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.1615, allocations: 4.375 kB / 0.6351 GB, free: 1.27 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.1615, allocations: 12.38 kB / 0.6351 GB, free: 1.258 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.1617, allocations: 83.89 kB / 0.6352 GB, free: 1.164 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.1617, allocations: 3.938 kB / 0.6352 GB, free: 1.16 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.1617, allocations: 4 kB / 0.6352 GB, free: 1.156 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.1617, allocations: 4 kB / 0.6352 GB, free: 1.152 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.326e-05/0.1618, allocations: 35.97 kB / 0.6352 GB, free: 1.117 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002759/0.1621, allocations: 230.5 kB / 0.6354 GB, free: 0.8398 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.1623, allocations: 81.19 kB / 0.6355 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.736e-05/0.1623, allocations: 53.81 kB / 0.6356 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.1624, allocations: 8 kB / 0.6356 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002737/0.1626, allocations: 113 kB / 0.6357 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.1627, allocations: 0 / 0.6357 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003739/0.163, allocations: 193.4 kB / 0.6359 GB, free: 360 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.1631, allocations: 89.05 kB / 0.6359 GB, free: 252 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.1632, allocations: 156 kB / 0.6361 GB, free: 88 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.1633, allocations: 37.7 kB / 0.6361 GB, free: 44 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.1634, allocations: 100.5 kB / 0.6362 GB, free: 15.94 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.393e-05/0.1635, allocations: 39.48 kB / 0.6363 GB, free: 15.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.644e-05/0.1636, allocations: 49.69 kB / 0.6363 GB, free: 15.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1637, allocations: 326.8 kB / 0.6366 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.57e-05/0.1638, allocations: 39.98 kB / 0.6367 GB, free: 15.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.164, allocations: 199.3 kB / 0.6368 GB, free: 15.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.1641, allocations: 93.64 kB / 0.6369 GB, free: 15.13 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1641, allocations: 4 kB / 0.6369 GB, free: 15.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002529/0.1644, allocations: 169.3 kB / 0.6371 GB, free: 14.95 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.1644, allocations: 7.984 kB / 0.6371 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.258e-05/0.1644, allocations: 4 kB / 0.6371 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.1645, allocations: 0 / 0.6371 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.427e-05/0.1646, allocations: 8 kB / 0.6371 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1646, allocations: 0.625 kB / 0.6371 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/0.1649, allocations: 75.84 kB / 0.6372 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.1649, allocations: 4 kB / 0.6372 GB, free: 14.86 MB / 494.1 MB 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.0001229/0.165, allocations: 141.8 kB / 0.6373 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.433e-05/0.165, allocations: 11.84 kB / 0.6373 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.818e-05/0.1651, allocations: 20.7 kB / 0.6374 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1651, allocations: 0 / 0.6374 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1651, allocations: 0 / 0.6374 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.1651, allocations: 4 kB / 0.6374 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.1653, allocations: 201.5 kB / 0.6376 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1653, allocations: 0 / 0.6376 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.956e-05/0.1653, allocations: 8 kB / 0.6376 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1653, allocations: 3.938 kB / 0.6376 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.1654, allocations: 4 kB / 0.6376 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1654, allocations: 0 / 0.6376 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1654, allocations: 4 kB / 0.6376 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002373/0.1656, allocations: 185.7 kB / 0.6377 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.589e-05/0.1657, allocations: 88.95 kB / 0.6378 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.1657, allocations: 7.984 kB / 0.6378 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.292e-05/0.1658, allocations: 4 kB / 0.6378 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.622e-05/0.1658, allocations: 4 kB / 0.6378 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.1658, allocations: 7.984 kB / 0.6379 GB, free: 14.07 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.947e-05/0.1659, allocations: 112.1 kB / 0.638 GB, free: 13.96 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1659, allocations: 0 / 0.638 GB, free: 13.96 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000348/0.1663, allocations: 75.98 kB / 0.638 GB, free: 13.89 MB / 494.1 MB 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.0007064/0.167, allocations: 0.7799 MB / 0.6388 GB, free: 13.08 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002673/0.1673, allocations: 175.2 kB / 0.639 GB, free: 12.89 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1673, allocations: 0 / 0.639 GB, free: 12.89 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.885e-05/0.1674, allocations: 47.92 kB / 0.639 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.1675, allocations: 4 kB / 0.639 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.1693, allocations: 1.723 MB / 0.6407 GB, free: 11.03 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/0.1696, allocations: 0.7078 MB / 0.6414 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.152e-05/0.1697, allocations: 8.672 kB / 0.6414 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.407e-05/0.1697, allocations: 31.36 kB / 0.6414 GB, free: 10.25 MB / 494.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1697, allocations: 0 / 0.6414 GB, free: 10.25 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02156/0.1913, allocations: 4.025 MB / 0.6454 GB, free: 6.348 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.978/8.17, allocations: 5.812 kB / 0.6454 GB, free: 6.348 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_SetPoints_Examples_OccupancySchedule.fmu > IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)