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.001369/0.001369, allocations: 104.8 kB / 16.4 MB, free: 6.461 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.001292/0.001292, allocations: 192 kB / 17.34 MB, free: 5.715 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.466/1.466, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002583/0.002583, allocations: 285.6 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.037/1.037, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002918/0.002918, allocations: 91.86 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5673/0.5702, allocations: 86.98 MB / 0.767 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002595/0.5728, allocations: 1.41 MB / 0.7684 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009539/0.5738, allocations: 0.4983 MB / 0.7689 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.15e-05/0.5738, allocations: 0 / 0.7689 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 7.955e-05/0.5739, allocations: 7.938 kB / 0.7689 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.787e-05/0.574, allocations: 11.86 kB / 0.7689 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000739/0.5747, allocations: 225.5 kB / 0.7691 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002225/0.5749, allocations: 155.8 kB / 0.7693 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.567e-05/0.575, allocations: 4 kB / 0.7693 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.149e-05/0.575, allocations: 55.84 kB / 0.7693 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.255e-05/0.5751, allocations: 43.88 kB / 0.7694 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.735e-05/0.5752, allocations: 8 kB / 0.7694 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002557/0.5754, allocations: 163.8 kB / 0.7695 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.283e-05/0.5755, allocations: 37.69 kB / 0.7696 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.445e-05/0.5756, allocations: 59.7 kB / 0.7696 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003302/0.5759, allocations: 225 kB / 0.7698 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.5759, allocations: 8 kB / 0.7698 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5759, allocations: 3.938 kB / 0.7698 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.5759, allocations: 0 / 0.7698 GB, free: 1.039 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.0006271/0.5766, allocations: 454.7 kB / 0.7703 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.5766, allocations: 8.031 kB / 0.7703 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.9e-05/0.5766, allocations: 20.78 kB / 0.7703 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.5769, allocations: 208.1 kB / 0.7705 GB, free: 280 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.5769, allocations: 8.359 kB / 0.7705 GB, free: 272 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.828e-05/0.5769, allocations: 16.38 kB / 0.7705 GB, free: 256 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001634/0.5771, allocations: 87.95 kB / 0.7706 GB, free: 156 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.5771, allocations: 8.109 kB / 0.7706 GB, free: 148 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.5771, allocations: 3.938 kB / 0.7706 GB, free: 144 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.5771, allocations: 0 / 0.7706 GB, free: 144 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.422e-05/0.5772, allocations: 35.98 kB / 0.7707 GB, free: 108 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002886/0.5775, allocations: 222.5 kB / 0.7709 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.5776, allocations: 81.19 kB / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.489e-05/0.5777, allocations: 45.81 kB / 0.771 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.5777, allocations: 4 kB / 0.771 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.5779, allocations: 111.7 kB / 0.7711 GB, free: 15.56 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.5779, allocations: 7.938 kB / 0.7711 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0003652/0.5783, allocations: 193.5 kB / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.716e-05/0.5784, allocations: 85.05 kB / 0.7714 GB, free: 15.25 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.5785, allocations: 151.9 kB / 0.7715 GB, free: 15.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.5786, allocations: 33.7 kB / 0.7716 GB, free: 15.06 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.044e-05/0.5787, allocations: 108.4 kB / 0.7717 GB, free: 14.95 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.759e-05/0.5787, allocations: 47.67 kB / 0.7717 GB, free: 14.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.136e-05/0.5788, allocations: 45.7 kB / 0.7717 GB, free: 14.85 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.579, allocations: 326.8 kB / 0.7721 GB, free: 14.52 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.396e-05/0.579, allocations: 39.98 kB / 0.7721 GB, free: 14.48 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.5793, allocations: 200.3 kB / 0.7723 GB, free: 14.23 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.5794, allocations: 97.58 kB / 0.7724 GB, free: 14.13 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.5794, allocations: 4 kB / 0.7724 GB, free: 14.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002533/0.5797, allocations: 161.4 kB / 0.7725 GB, free: 13.96 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.5797, allocations: 7.938 kB / 0.7725 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.073e-05/0.5797, allocations: 4 kB / 0.7725 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.5797, allocations: 0 / 0.7725 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.346e-05/0.5798, allocations: 8 kB / 0.7726 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.5798, allocations: 4 kB / 0.7726 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.5801, allocations: 75.78 kB / 0.7726 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.5801, allocations: 8 kB / 0.7726 GB, free: 13.86 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.0001308/0.5803, allocations: 140.2 kB / 0.7728 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.5803, allocations: 11.89 kB / 0.7728 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.5803, allocations: 16.7 kB / 0.7728 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.5803, allocations: 96 / 0.7728 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.5803, allocations: 4 kB / 0.7728 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.5803, allocations: 3.984 kB / 0.7728 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.5805, allocations: 197.5 kB / 0.773 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.5805, allocations: 3.938 kB / 0.773 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.478e-05/0.5806, allocations: 12 kB / 0.773 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.5806, allocations: 0 / 0.773 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.5806, allocations: 4 kB / 0.773 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.5806, allocations: 4 kB / 0.773 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.5806, allocations: 3.938 kB / 0.773 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002472/0.5808, allocations: 173.8 kB / 0.7732 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.767e-05/0.5809, allocations: 96.94 kB / 0.7733 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.5809, allocations: 8 kB / 0.7733 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.837e-05/0.581, allocations: 4 kB / 0.7733 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.989e-05/0.581, allocations: 11.98 kB / 0.7733 GB, free: 13.08 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.581, allocations: 4 kB / 0.7733 GB, free: 13.07 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.747e-05/0.5811, allocations: 111.2 kB / 0.7734 GB, free: 12.96 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5811, allocations: 0 / 0.7734 GB, free: 12.96 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003048/0.5814, allocations: 67.88 kB / 0.7735 GB, free: 12.9 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.0002534/0.5816, allocations: 160.8 kB / 0.7736 GB, free: 12.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002784/0.5819, allocations: 167.2 kB / 0.7738 GB, free: 12.56 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.5819, allocations: 0 / 0.7738 GB, free: 12.56 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 6.909e-05/0.582, allocations: 43.92 kB / 0.7738 GB, free: 12.52 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001627/0.5822, allocations: 16.11 kB / 0.7738 GB, free: 12.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004416/0.5826, allocations: 219.3 kB / 0.7741 GB, free: 12.26 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.583, allocations: 0.7119 MB / 0.7748 GB, free: 11.52 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.836e-05/0.583, allocations: 8.656 kB / 0.7748 GB, free: 11.51 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.544e-05/0.583, allocations: 15.44 kB / 0.7748 GB, free: 11.5 MB / 0.545 GB Notification: Performance of SimCode: time 6.31e-07/0.583, allocations: 3.938 kB / 0.7748 GB, free: 11.49 MB / 0.545 GB Notification: Performance of Templates: time 0.006075/0.5891, allocations: 2.538 MB / 0.7773 GB, free: 8.996 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)