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.001322/0.001327, allocations: 113.3 kB / 16.38 MB, free: 6.426 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.001367/0.001367, allocations: 190.2 kB / 17.32 MB, free: 5.762 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002231/0.002231, allocations: 287.2 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.003/1.003, allocations: 169.2 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 103.8 kB / 0.682 GB, free: 7 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.669/0.6708, allocations: 86.97 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002645/0.6735, allocations: 1.406 MB / 0.7683 GB, free: 2.5 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009334/0.6744, allocations: 498.3 kB / 0.7688 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.708e-05/0.6745, allocations: 0 / 0.7688 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 8.155e-05/0.6746, allocations: 7.875 kB / 0.7688 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.9e-05/0.6746, allocations: 19.84 kB / 0.7688 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007325/0.6754, allocations: 237.4 kB / 0.7691 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002259/0.6756, allocations: 147.7 kB / 0.7692 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.253e-05/0.6757, allocations: 7.984 kB / 0.7692 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.793e-05/0.6757, allocations: 55.89 kB / 0.7693 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.685e-05/0.6758, allocations: 43.83 kB / 0.7693 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.687e-05/0.6759, allocations: 8 kB / 0.7693 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002912/0.6762, allocations: 171.8 kB / 0.7695 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.764e-05/0.6763, allocations: 41.61 kB / 0.7695 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.6764, allocations: 51.78 kB / 0.7696 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003273/0.6767, allocations: 239.2 kB / 0.7698 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.6767, allocations: 0 / 0.7698 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.174e-06/0.6767, allocations: 0 / 0.7698 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.6767, allocations: 0 / 0.7698 GB, free: 1.008 MB / 0.5294 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.0006301/0.6774, allocations: 449.5 kB / 0.7702 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.6774, allocations: 12.03 kB / 0.7702 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.762e-05/0.6775, allocations: 12.84 kB / 0.7703 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/0.6777, allocations: 208.1 kB / 0.7704 GB, free: 260 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.6777, allocations: 8.375 kB / 0.7705 GB, free: 252 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.6778, allocations: 12.38 kB / 0.7705 GB, free: 240 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.6779, allocations: 87.88 kB / 0.7706 GB, free: 140 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.678, allocations: 192 / 0.7706 GB, free: 140 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.678, allocations: 3.938 kB / 0.7706 GB, free: 136 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.678, allocations: 0 / 0.7706 GB, free: 136 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.76e-05/0.6781, allocations: 39.98 kB / 0.7706 GB, free: 96 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002751/0.6784, allocations: 226.5 kB / 0.7708 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.6785, allocations: 81.19 kB / 0.7709 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.698e-05/0.6786, allocations: 57.8 kB / 0.7709 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.6786, allocations: 0 / 0.7709 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002022/0.6788, allocations: 111.8 kB / 0.771 GB, free: 15.54 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.6788, allocations: 0 / 0.771 GB, free: 15.54 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0003679/0.6792, allocations: 201.2 kB / 0.7712 GB, free: 15.33 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.6793, allocations: 85.11 kB / 0.7713 GB, free: 15.23 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.6794, allocations: 147.9 kB / 0.7715 GB, free: 15.08 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.614e-05/0.6794, allocations: 41.7 kB / 0.7715 GB, free: 15.03 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.7e-05/0.6795, allocations: 100.5 kB / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.848e-05/0.6796, allocations: 35.55 kB / 0.7716 GB, free: 14.89 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.582e-05/0.6797, allocations: 49.7 kB / 0.7717 GB, free: 14.84 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.6798, allocations: 326.8 kB / 0.772 GB, free: 14.51 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.524e-05/0.6799, allocations: 35.98 kB / 0.772 GB, free: 14.47 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002391/0.6801, allocations: 208.8 kB / 0.7722 GB, free: 14.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.6803, allocations: 89.7 kB / 0.7723 GB, free: 14.12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.6803, allocations: 7.875 kB / 0.7723 GB, free: 14.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002359/0.6805, allocations: 169.3 kB / 0.7725 GB, free: 13.94 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.6805, allocations: 8 kB / 0.7725 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/0.6806, allocations: 8 kB / 0.7725 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.6806, allocations: 4 kB / 0.7725 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.829e-05/0.6807, allocations: 4 kB / 0.7725 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.6807, allocations: 4 kB / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.681, allocations: 75.8 kB / 0.7726 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.681, allocations: 4 kB / 0.7726 GB, free: 13.84 MB / 0.545 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.0001459/0.6811, allocations: 137.1 kB / 0.7727 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.6812, allocations: 23.77 kB / 0.7727 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.15e-05/0.6812, allocations: 12.72 kB / 0.7727 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.6812, allocations: 4 kB / 0.7728 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.6812, allocations: 4 kB / 0.7728 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.6812, allocations: 0 / 0.7728 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.6814, allocations: 197.5 kB / 0.7729 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.6814, allocations: 7.938 kB / 0.773 GB, free: 13.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.173e-05/0.6815, allocations: 4 kB / 0.773 GB, free: 13.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.6815, allocations: 0 / 0.773 GB, free: 13.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.6815, allocations: 4 kB / 0.773 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.6815, allocations: 0 / 0.773 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.6815, allocations: 0 / 0.773 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.6818, allocations: 185.8 kB / 0.7731 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.107e-05/0.6818, allocations: 88.95 kB / 0.7732 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.6818, allocations: 0 / 0.7732 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.15e-05/0.6819, allocations: 8 kB / 0.7732 GB, free: 13.08 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.982e-05/0.6819, allocations: 3.984 kB / 0.7732 GB, free: 13.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.682, allocations: 4 kB / 0.7732 GB, free: 13.07 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.794e-05/0.6821, allocations: 117.1 kB / 0.7733 GB, free: 12.96 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6821, allocations: 0 / 0.7733 GB, free: 12.96 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002945/0.6824, allocations: 79.94 kB / 0.7734 GB, free: 12.88 MB / 0.545 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.0002917/0.6827, allocations: 163.2 kB / 0.7736 GB, free: 12.71 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003064/0.683, allocations: 171.2 kB / 0.7737 GB, free: 12.53 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.683, allocations: 0 / 0.7737 GB, free: 12.53 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.36e-05/0.6831, allocations: 43.92 kB / 0.7738 GB, free: 12.49 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.6832, allocations: 7.938 kB / 0.7738 GB, free: 12.48 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004804/0.6837, allocations: 264.1 kB / 0.774 GB, free: 12.19 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.6841, allocations: 0.7041 MB / 0.7747 GB, free: 11.46 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.699e-05/0.6841, allocations: 11.44 kB / 0.7747 GB, free: 11.45 MB / 0.545 GB Notification: Performance of SimCode: time 2.21e-07/0.6841, allocations: 0 / 0.7747 GB, free: 11.45 MB / 0.545 GB Notification: Performance of Templates: time 0.004585/0.6887, allocations: 2.437 MB / 0.7771 GB, free: 9.035 MB / 0.545 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)