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.9088/0.9088, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 176.5 kB / 187.3 MB, free: 11.88 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.314/1.314, allocations: 221.3 MB / 441.4 MB, free: 4.582 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.0008368/0.0008369, allocations: 96.09 kB / 0.5124 GB, free: 24.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0017/0.0017, allocations: 278.7 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.941e-05/2.953e-05, allocations: 4 kB / 0.6834 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.392, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1106/0.5027, allocations: 109 MB / 0.8707 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.5029, allocations: 79.83 kB / 0.8708 GB, free: 15.51 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01107/0.514, allocations: 3.946 MB / 0.8746 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.092e-06/0.514, allocations: 3.938 kB / 0.8746 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.5141, allocations: 0 / 0.8746 GB, free: 11.55 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.0004311/0.5145, allocations: 427.5 kB / 0.875 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.5145, allocations: 8.031 kB / 0.875 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.02e-05/0.5146, allocations: 15.81 kB / 0.8751 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.5149, allocations: 218.8 kB / 0.8753 GB, free: 10.82 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.5149, allocations: 8 kB / 0.8753 GB, free: 10.81 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.5149, allocations: 12 kB / 0.8753 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.5151, allocations: 87.38 kB / 0.8754 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.5151, allocations: 4 kB / 0.8754 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.5151, allocations: 0 / 0.8754 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.5152, allocations: 0 / 0.8754 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.715e-05/0.5152, allocations: 43.91 kB / 0.8754 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000234/0.5155, allocations: 246.4 kB / 0.8756 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.5156, allocations: 77.25 kB / 0.8757 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.368e-05/0.5157, allocations: 69.73 kB / 0.8758 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.5157, allocations: 0 / 0.8758 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001703/0.5159, allocations: 109.1 kB / 0.8759 GB, free: 10.07 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.5159, allocations: 0 / 0.8759 GB, free: 10.07 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14): time 0.0002959/0.5162, allocations: 159.5 kB / 0.876 GB, free: 9.906 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.5163, allocations: 93.09 kB / 0.8761 GB, free: 9.797 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.5164, allocations: 138.4 kB / 0.8763 GB, free: 9.656 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.341e-05/0.5165, allocations: 33.7 kB / 0.8763 GB, free: 9.617 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.769e-05/0.5165, allocations: 108.5 kB / 0.8764 GB, free: 9.508 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.015e-05/0.5166, allocations: 31.56 kB / 0.8764 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.042e-06/0.5166, allocations: 0 / 0.8764 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.5167, allocations: 330.8 kB / 0.8767 GB, free: 9.145 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.265e-05/0.5168, allocations: 48.16 kB / 0.8768 GB, free: 9.094 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.517, allocations: 211.9 kB / 0.877 GB, free: 8.828 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.5171, allocations: 73.52 kB / 0.8771 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5171, allocations: 0 / 0.8771 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002419/0.5174, allocations: 165.3 kB / 0.8772 GB, free: 8.59 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.5174, allocations: 8 kB / 0.8772 GB, free: 8.582 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/0.5174, allocations: 8 kB / 0.8772 GB, free: 8.574 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.5175, allocations: 0 / 0.8772 GB, free: 8.574 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.546e-05/0.5175, allocations: 15.98 kB / 0.8772 GB, free: 8.559 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.5175, allocations: 0 / 0.8772 GB, free: 8.559 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002774/0.5178, allocations: 87.84 kB / 0.8773 GB, free: 8.473 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.5179, allocations: 7.953 kB / 0.8773 GB, free: 8.465 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 9.298e-05/0.518, allocations: 125 kB / 0.8775 GB, free: 8.336 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.179e-05/0.518, allocations: 15.81 kB / 0.8775 GB, free: 8.32 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.852e-05/0.518, allocations: 8.625 kB / 0.8775 GB, free: 8.312 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.518, allocations: 15.92 kB / 0.8775 GB, free: 8.297 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.518, allocations: 0 / 0.8775 GB, free: 8.297 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.518, allocations: 0 / 0.8775 GB, free: 8.297 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.5182, allocations: 201.6 kB / 0.8777 GB, free: 8.051 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.5182, allocations: 0 / 0.8777 GB, free: 8.051 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.329e-05/0.5182, allocations: 4 kB / 0.8777 GB, free: 8.047 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.5183, allocations: 0 / 0.8777 GB, free: 8.047 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.5183, allocations: 7.984 kB / 0.8777 GB, free: 8.039 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.5183, allocations: 0 / 0.8777 GB, free: 8.039 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.5183, allocations: 0 / 0.8777 GB, free: 8.039 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002761/0.5186, allocations: 218 kB / 0.8779 GB, free: 7.801 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.614e-05/0.5186, allocations: 88.92 kB / 0.878 GB, free: 7.695 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.5187, allocations: 0 / 0.878 GB, free: 7.695 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.542e-05/0.5187, allocations: 4 kB / 0.878 GB, free: 7.691 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.865e-05/0.5188, allocations: 11.98 kB / 0.878 GB, free: 7.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.5188, allocations: 4 kB / 0.878 GB, free: 7.676 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 6.929e-05/0.5188, allocations: 116.4 kB / 0.8781 GB, free: 7.562 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5189, allocations: 0 / 0.8781 GB, free: 7.562 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003006/0.5192, allocations: 87.92 kB / 0.8782 GB, free: 7.477 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.0002334/0.5194, allocations: 175.1 kB / 0.8784 GB, free: 7.297 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002368/0.5196, allocations: 166.6 kB / 0.8785 GB, free: 7.125 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5197, allocations: 0 / 0.8785 GB, free: 7.125 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 6.296e-05/0.5197, allocations: 43.94 kB / 0.8786 GB, free: 7.082 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.977e-05/0.5198, allocations: 5.719 kB / 0.8786 GB, free: 7.078 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002909/0.5201, allocations: 162.7 kB / 0.8787 GB, free: 6.895 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.5204, allocations: 0.7082 MB / 0.8794 GB, free: 6.16 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.716e-05/0.5204, allocations: 8.672 kB / 0.8794 GB, free: 6.148 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.334e-05/0.5205, allocations: 11.44 kB / 0.8794 GB, free: 6.137 MB / 0.5417 GB Notification: Performance of SimCode: time 2.8e-07/0.5205, allocations: 0 / 0.8794 GB, free: 6.137 MB / 0.5417 GB Notification: Performance of Templates: time 0.004577/0.5251, allocations: 2.325 MB / 0.8817 GB, free: 3.852 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)