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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8357/0.8357, allocations: 141.8 MB / 149.3 MB, free: 9.246 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 175.8 kB / 182.2 MB, free: 9.473 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 221.5 MB / 436.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007965/0.0007965, allocations: 88.11 kB / 0.5074 GB, free: 10.2 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001671/0.001672, allocations: 278.9 kB / 0.5889 GB, free: 54.7 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.481e-05/1.488e-05, allocations: 0 / 0.6765 GB, free: 12.87 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.3794, allocations: 82.77 MB / 0.7574 GB, free: 32.05 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.133/0.5124, allocations: 108.3 MB / 0.8631 GB, free: 3.598 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.5127, allocations: 79.83 kB / 0.8632 GB, free: 3.523 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.0113/0.524, allocations: 3.943 MB / 0.8671 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.723e-06/0.5241, allocations: 0 / 0.8671 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.223e-06/0.5241, allocations: 8 kB / 0.8671 GB, free: 15.56 MB / 0.5417 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.0004574/0.5246, allocations: 418.1 kB / 0.8675 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.5246, allocations: 12.03 kB / 0.8675 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.536e-05/0.5247, allocations: 15.81 kB / 0.8675 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002688/0.5249, allocations: 215.8 kB / 0.8677 GB, free: 14.83 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.525, allocations: 0 / 0.8677 GB, free: 14.83 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.525, allocations: 8 kB / 0.8677 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001006/0.5251, allocations: 43.97 kB / 0.8677 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.5252, allocations: 83.27 kB / 0.8678 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.5253, allocations: 3.984 kB / 0.8678 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.5253, allocations: 3.938 kB / 0.8678 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.5253, allocations: 4 kB / 0.8678 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002195/0.5255, allocations: 215 kB / 0.868 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.5256, allocations: 77.25 kB / 0.8681 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.758e-05/0.5257, allocations: 57.75 kB / 0.8682 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-06/0.5257, allocations: 0 / 0.8682 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000156/0.5259, allocations: 118.4 kB / 0.8683 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=14): time 1.223e-06/0.5259, allocations: 4 kB / 0.8683 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14): time 0.0003591/0.5263, allocations: 157.5 kB / 0.8684 GB, free: 13.97 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.5263, allocations: 85.11 kB / 0.8685 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.5264, allocations: 134.6 kB / 0.8686 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.5265, allocations: 29.7 kB / 0.8687 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.095e-05/0.5265, allocations: 96.58 kB / 0.8688 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.436e-05/0.5266, allocations: 39.55 kB / 0.8688 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-06/0.5266, allocations: 0 / 0.8688 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.5267, allocations: 330.8 kB / 0.8691 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.387e-05/0.5268, allocations: 40.17 kB / 0.8692 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.527, allocations: 211.8 kB / 0.8694 GB, free: 12.92 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.5271, allocations: 68.31 kB / 0.8694 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.5271, allocations: 0 / 0.8694 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002369/0.5274, allocations: 153.5 kB / 0.8696 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.5274, allocations: 11.98 kB / 0.8696 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/0.5274, allocations: 8 kB / 0.8696 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.5274, allocations: 0 / 0.8696 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.511e-05/0.5275, allocations: 11.94 kB / 0.8696 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.5275, allocations: 0 / 0.8696 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002629/0.5278, allocations: 79.84 kB / 0.8697 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.5278, allocations: 12 kB / 0.8697 GB, free: 12.58 MB / 0.5417 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 ($whenCondition2,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$PRE.occSchWee.tNext,occSchWee.tNext,$whenCondition1,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc,$PRE.occSchDay.tNext,occSchDay.tNext) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.758e-05/0.5279, allocations: 120.9 kB / 0.8698 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.325e-05/0.528, allocations: 15.81 kB / 0.8698 GB, free: 12.44 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.911e-05/0.528, allocations: 12.56 kB / 0.8698 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.528, allocations: 4 kB / 0.8698 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.528, allocations: 0 / 0.8698 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.528, allocations: 0 / 0.8698 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.5281, allocations: 170.2 kB / 0.87 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.5281, allocations: 0 / 0.87 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.106e-05/0.5282, allocations: 19.91 kB / 0.87 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.5282, allocations: 0 / 0.87 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.5282, allocations: 4 kB / 0.87 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.5282, allocations: 8 kB / 0.87 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5282, allocations: 0 / 0.87 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002598/0.5285, allocations: 203.2 kB / 0.8702 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.889e-05/0.5286, allocations: 92.91 kB / 0.8703 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.5286, allocations: 4 kB / 0.8703 GB, free: 11.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.317e-05/0.5286, allocations: 4 kB / 0.8703 GB, free: 11.85 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.93e-05/0.5287, allocations: 7.984 kB / 0.8703 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.5287, allocations: 4 kB / 0.8703 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 6.454e-05/0.5288, allocations: 113.7 kB / 0.8704 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.723e-06/0.5288, allocations: 0 / 0.8704 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003306/0.5291, allocations: 83.8 kB / 0.8705 GB, free: 11.64 MB / 0.5417 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002434/0.5294, allocations: 167.1 kB / 0.8707 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002125/0.5296, allocations: 159.3 kB / 0.8708 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.5296, allocations: 7.938 kB / 0.8708 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.989e-05/0.5297, allocations: 39.98 kB / 0.8709 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001115/0.5298, allocations: 9.203 kB / 0.8709 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002818/0.5301, allocations: 153.7 kB / 0.871 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.5303, allocations: 0.708 MB / 0.8717 GB, free: 10.34 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.726e-05/0.5304, allocations: 12.67 kB / 0.8717 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.943e-05/0.5304, allocations: 15.42 kB / 0.8717 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of SimCode: time 2.51e-07/0.5304, allocations: 0 / 0.8717 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of Templates: time 0.004493/0.5349, allocations: 2.214 MB / 0.8739 GB, free: 8.129 MB / 0.5417 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)