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) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule") translateModel(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001586/0.001587, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001253/0.001253, allocations: 200.4 kB / 16.14 MB, free: 6.637 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.402/1.402, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002551/0.002551, allocations: 286.5 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.095/1.095, allocations: 178.6 MB / 0.5068 GB, free: 4.773 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002802/0.002802, allocations: 100.2 kB / 0.6057 GB, free: 24.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1539, allocations: 89.17 MB / 0.6928 GB, free: 4.855 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002657/0.1566, allocations: 1.461 MB / 0.6942 GB, free: 3.395 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009819/0.1576, allocations: 0.5179 MB / 0.6947 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.158e-05/0.1576, allocations: 4.781 kB / 0.6947 GB, free: 2.871 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.439e-05/0.1577, allocations: 0 / 0.6947 GB, free: 2.871 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-05/0.1578, allocations: 11.94 kB / 0.6947 GB, free: 2.859 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006157/0.1584, allocations: 200 kB / 0.6949 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000212/0.1586, allocations: 143.7 kB / 0.6951 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.03e-05/0.1586, allocations: 7.984 kB / 0.6951 GB, free: 2.52 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.333e-05/0.1587, allocations: 43.92 kB / 0.6951 GB, free: 2.477 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.856e-05/0.1588, allocations: 43.77 kB / 0.6952 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.759e-05/0.1588, allocations: 4 kB / 0.6952 GB, free: 2.43 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002616/0.1591, allocations: 167.8 kB / 0.6953 GB, free: 2.266 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.886e-05/0.1592, allocations: 35.89 kB / 0.6954 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.286e-05/0.1593, allocations: 39.8 kB / 0.6954 GB, free: 2.191 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003133/0.1596, allocations: 223.7 kB / 0.6956 GB, free: 1.973 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1596, allocations: 7.938 kB / 0.6956 GB, free: 1.965 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1596, allocations: 0 / 0.6956 GB, free: 1.965 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.1596, allocations: 0 / 0.6956 GB, free: 1.965 MB / 494.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.0006186/0.1602, allocations: 451 kB / 0.696 GB, free: 1.473 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.1603, allocations: 12.03 kB / 0.6961 GB, free: 1.461 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.63e-05/0.1603, allocations: 12.84 kB / 0.6961 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002226/0.1606, allocations: 208.1 kB / 0.6963 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.1606, allocations: 12.36 kB / 0.6963 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.1606, allocations: 20.31 kB / 0.6963 GB, free: 1.176 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.1608, allocations: 71.95 kB / 0.6964 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.1608, allocations: 4.188 kB / 0.6964 GB, free: 1.09 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.1608, allocations: 7.938 kB / 0.6964 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1608, allocations: 7.984 kB / 0.6964 GB, free: 1.074 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.249e-05/0.1609, allocations: 35.98 kB / 0.6964 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002701/0.1612, allocations: 230.4 kB / 0.6966 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.1613, allocations: 77.3 kB / 0.6967 GB, free: 0.668 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.396e-05/0.1614, allocations: 57.75 kB / 0.6968 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.1614, allocations: 4 kB / 0.6968 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002047/0.1616, allocations: 113 kB / 0.6969 GB, free: 484 kB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.1616, allocations: 0 / 0.6969 GB, free: 484 kB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003567/0.162, allocations: 201.2 kB / 0.6971 GB, free: 276 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.1621, allocations: 85.09 kB / 0.6972 GB, free: 172 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.1622, allocations: 151.3 kB / 0.6973 GB, free: 12 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.893e-05/0.1623, allocations: 41.69 kB / 0.6973 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.19e-05/0.1624, allocations: 96.52 kB / 0.6974 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.694e-05/0.1624, allocations: 39.55 kB / 0.6975 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.001e-05/0.1625, allocations: 45.7 kB / 0.6975 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1627, allocations: 326.8 kB / 0.6978 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.322e-05/0.1627, allocations: 43.97 kB / 0.6979 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.163, allocations: 203.3 kB / 0.6981 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.1632, allocations: 101.6 kB / 0.6982 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1632, allocations: 0 / 0.6982 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002483/0.1634, allocations: 161.4 kB / 0.6983 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.1634, allocations: 4 kB / 0.6983 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.1635, allocations: 4 kB / 0.6983 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.1635, allocations: 0 / 0.6983 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-05/0.1636, allocations: 15.98 kB / 0.6983 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.1636, allocations: 0 / 0.6983 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.1639, allocations: 83.62 kB / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.1639, allocations: 8 kB / 0.6984 GB, free: 14.77 MB / 0.4981 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.0001253/0.164, allocations: 129.8 kB / 0.6985 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.095e-05/0.164, allocations: 11.84 kB / 0.6986 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.941e-05/0.1641, allocations: 16.66 kB / 0.6986 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1641, allocations: 4 kB / 0.6986 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1641, allocations: 4 kB / 0.6986 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1641, allocations: 0 / 0.6986 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.1643, allocations: 189.5 kB / 0.6988 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1643, allocations: 3.938 kB / 0.6988 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.825e-05/0.1643, allocations: 8 kB / 0.6988 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1643, allocations: 0 / 0.6988 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.1644, allocations: 7.984 kB / 0.6988 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.1644, allocations: 4 kB / 0.6988 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1644, allocations: 7.938 kB / 0.6988 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.1646, allocations: 177.9 kB / 0.699 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.186e-05/0.1647, allocations: 96.88 kB / 0.6991 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.1647, allocations: 4 kB / 0.6991 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.07e-05/0.1648, allocations: 0 / 0.6991 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.1648, allocations: 11.98 kB / 0.6991 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-06/0.1648, allocations: 4 kB / 0.6991 GB, free: 14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.228e-05/0.1649, allocations: 112.8 kB / 0.6992 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1649, allocations: 4 kB / 0.6992 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002898/0.1652, allocations: 75.98 kB / 0.6993 GB, free: 13.81 MB / 0.4981 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.0002475/0.1655, allocations: 163 kB / 0.6994 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002629/0.1657, allocations: 155.4 kB / 0.6996 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1657, allocations: 0 / 0.6996 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.571e-05/0.1658, allocations: 47.92 kB / 0.6996 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.166, allocations: 17.12 kB / 0.6996 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000426/0.1664, allocations: 253.1 kB / 0.6999 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.1668, allocations: 0.7043 MB / 0.7006 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.81e-05/0.1668, allocations: 8.672 kB / 0.7006 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.369e-05/0.1669, allocations: 15.38 kB / 0.7006 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1669, allocations: 0 / 0.7006 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of Templates: time 0.005621/0.1725, allocations: 2.414 MB / 0.7029 GB, free: 9.996 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.makefile (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)