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.005328/0.005327, allocations: 98.39 kB / 15.73 MB, free: 5.535 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.001246/0.001246, allocations: 185 kB / 16.67 MB, free: 5.473 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002083/0.002084, allocations: 287.1 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9403/0.9403, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 91.86 kB / 0.6814 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.369, allocations: 86.96 MB / 0.7663 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002171/0.3712, allocations: 1.425 MB / 0.7677 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008021/0.372, allocations: 490.3 kB / 0.7682 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.012e-05/0.3721, allocations: 0 / 0.7682 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 5.739e-05/0.3721, allocations: 11.94 kB / 0.7682 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.924e-05/0.3722, allocations: 15.84 kB / 0.7682 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006516/0.3728, allocations: 234.8 kB / 0.7685 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.373, allocations: 139.8 kB / 0.7686 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.812e-05/0.3731, allocations: 7.984 kB / 0.7686 GB, free: 1.641 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.452e-05/0.3732, allocations: 59.83 kB / 0.7686 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.139e-05/0.3732, allocations: 43.89 kB / 0.7687 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.3733, allocations: 8 kB / 0.7687 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002474/0.3735, allocations: 167.8 kB / 0.7689 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.366e-05/0.3736, allocations: 41.67 kB / 0.7689 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.927e-05/0.3737, allocations: 55.72 kB / 0.769 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.374, allocations: 239.1 kB / 0.7692 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.374, allocations: 0 / 0.7692 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.572e-06/0.374, allocations: 0 / 0.7692 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.374, allocations: 0 / 0.7692 GB, free: 1.043 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.000511/0.3745, allocations: 453.5 kB / 0.7696 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.3746, allocations: 12.03 kB / 0.7696 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.194e-05/0.3746, allocations: 8.844 kB / 0.7696 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001821/0.3748, allocations: 218.8 kB / 0.7698 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.3748, allocations: 4.375 kB / 0.7698 GB, free: 284 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.3749, allocations: 12.38 kB / 0.7699 GB, free: 272 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.375, allocations: 87.88 kB / 0.7699 GB, free: 172 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.375, allocations: 192 / 0.7699 GB, free: 172 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.375, allocations: 7.938 kB / 0.7699 GB, free: 164 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.375, allocations: 0 / 0.7699 GB, free: 164 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.717e-05/0.3751, allocations: 35.98 kB / 0.77 GB, free: 128 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002302/0.3754, allocations: 226.5 kB / 0.7702 GB, free: 15.85 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.3755, allocations: 81.14 kB / 0.7703 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.095e-05/0.3755, allocations: 61.84 kB / 0.7703 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 8.455e-06/0.3756, allocations: 0 / 0.7703 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.3757, allocations: 105 kB / 0.7704 GB, free: 15.57 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.3757, allocations: 0 / 0.7704 GB, free: 15.57 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0003059/0.3761, allocations: 189.4 kB / 0.7706 GB, free: 15.38 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.3761, allocations: 93.05 kB / 0.7707 GB, free: 15.27 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.3762, allocations: 149.8 kB / 0.7708 GB, free: 15.11 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.3763, allocations: 33.7 kB / 0.7709 GB, free: 15.07 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.733e-05/0.3763, allocations: 104.5 kB / 0.771 GB, free: 14.96 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.915e-05/0.3764, allocations: 31.55 kB / 0.771 GB, free: 14.93 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.781e-05/0.3765, allocations: 49.7 kB / 0.7711 GB, free: 14.88 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.3766, allocations: 330.8 kB / 0.7714 GB, free: 14.54 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.392e-05/0.3767, allocations: 39.98 kB / 0.7714 GB, free: 14.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.3769, allocations: 206.8 kB / 0.7716 GB, free: 14.25 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.377, allocations: 93.64 kB / 0.7717 GB, free: 14.15 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.377, allocations: 4 kB / 0.7717 GB, free: 14.15 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002196/0.3772, allocations: 177.2 kB / 0.7719 GB, free: 13.97 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.3773, allocations: 8 kB / 0.7719 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/0.3773, allocations: 0 / 0.7719 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.3773, allocations: 4 kB / 0.7719 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.839e-05/0.3774, allocations: 8 kB / 0.7719 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.3774, allocations: 0 / 0.7719 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002727/0.3777, allocations: 75.8 kB / 0.772 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.3777, allocations: 4 kB / 0.772 GB, free: 13.87 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.0001082/0.3778, allocations: 137.9 kB / 0.7721 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.3778, allocations: 15.83 kB / 0.7721 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.56e-05/0.3779, allocations: 16.72 kB / 0.7721 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3779, allocations: 0 / 0.7721 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3779, allocations: 0 / 0.7721 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3779, allocations: 3.938 kB / 0.7721 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001389/0.378, allocations: 201.5 kB / 0.7723 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.378, allocations: 3.938 kB / 0.7723 GB, free: 13.44 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.184e-05/0.3781, allocations: 4 kB / 0.7723 GB, free: 13.44 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.305e-06/0.3781, allocations: 4 kB / 0.7723 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.3781, allocations: 0 / 0.7723 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3781, allocations: 0 / 0.7723 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3781, allocations: 0 / 0.7723 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.3783, allocations: 189.7 kB / 0.7725 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.68e-05/0.3784, allocations: 88.95 kB / 0.7726 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.3784, allocations: 0 / 0.7726 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.309e-05/0.3784, allocations: 8 kB / 0.7726 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.3785, allocations: 7.984 kB / 0.7726 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.511e-06/0.3785, allocations: 0 / 0.7726 GB, free: 13.11 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.268e-05/0.3786, allocations: 121.3 kB / 0.7727 GB, free: 12.99 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3786, allocations: 0 / 0.7727 GB, free: 12.99 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002801/0.3789, allocations: 79.94 kB / 0.7728 GB, free: 12.91 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.000216/0.3791, allocations: 161.2 kB / 0.773 GB, free: 12.75 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002285/0.3793, allocations: 169.8 kB / 0.7731 GB, free: 12.57 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3793, allocations: 0 / 0.7731 GB, free: 12.57 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.053e-05/0.3794, allocations: 43.92 kB / 0.7732 GB, free: 12.53 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001555/0.3796, allocations: 14.28 kB / 0.7732 GB, free: 12.52 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003636/0.3799, allocations: 223.4 kB / 0.7734 GB, free: 12.27 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.3802, allocations: 0.708 MB / 0.7741 GB, free: 11.54 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.644e-05/0.3802, allocations: 8.656 kB / 0.7741 GB, free: 11.52 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.283e-05/0.3803, allocations: 15.44 kB / 0.7741 GB, free: 11.51 MB / 0.545 GB Notification: Performance of SimCode: time 3.21e-07/0.3803, allocations: 0 / 0.7741 GB, free: 11.51 MB / 0.545 GB Notification: Performance of Templates: time 0.004898/0.3852, allocations: 2.531 MB / 0.7766 GB, free: 9.016 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)