Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.0009478/0.0009479, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001064/0.001064, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5647/0.5647, allocations: 95.58 MB / 366 MB, free: 10.4 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005567/0.0005571, allocations: 16 kB / 446.8 MB, free: 9.414 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3075, allocations: 70.34 MB / 0.505 GB, free: 16.53 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001222/0.3087, allocations: 1.124 MB / 0.5061 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005481/0.3093, allocations: 347.2 kB / 0.5064 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.037e-05/0.3094, allocations: 3.938 kB / 0.5064 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.005e-05/0.3095, allocations: 4 kB / 0.5064 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.3097, allocations: 15.91 kB / 0.5065 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005777/0.3103, allocations: 211 kB / 0.5067 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.3105, allocations: 151.7 kB / 0.5068 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.59e-05/0.3105, allocations: 4.234 kB / 0.5068 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001774/0.3107, allocations: 123.8 kB / 0.5069 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.3108, allocations: 99.73 kB / 0.507 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.5e-05/0.3109, allocations: 12 kB / 0.507 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.311, allocations: 35.98 kB / 0.5071 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.396e-05/0.3111, allocations: 23.86 kB / 0.5071 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.649e-05/0.3111, allocations: 61.64 kB / 0.5071 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.3113, allocations: 177.6 kB / 0.5073 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.3113, allocations: 0 / 0.5073 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3113, allocations: 0 / 0.5073 GB, free: 14.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.3113, allocations: 0 / 0.5073 GB, free: 14.15 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004445/0.3118, allocations: 0.5289 MB / 0.5078 GB, free: 13.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.3118, allocations: 11.98 kB / 0.5078 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.3119, allocations: 31.81 kB / 0.5079 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/0.3122, allocations: 246.7 kB / 0.5081 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.3122, allocations: 19.95 kB / 0.5081 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.3123, allocations: 27.98 kB / 0.5081 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.3125, allocations: 181 kB / 0.5083 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.3125, allocations: 0 / 0.5083 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.3126, allocations: 4 kB / 0.5083 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3126, allocations: 0 / 0.5083 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001244/0.3127, allocations: 95.89 kB / 0.5084 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002815/0.313, allocations: 335.9 kB / 0.5087 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/0.3132, allocations: 242.5 kB / 0.509 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.3132, allocations: 0 / 0.509 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000288/0.3135, allocations: 329.7 kB / 0.5093 GB, free: 11.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.293e-06/0.3135, allocations: 0 / 0.5093 GB, free: 11.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006683/0.3142, allocations: 0.6316 MB / 0.5099 GB, free: 11.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.391e-05/0.3143, allocations: 310.7 kB / 0.5102 GB, free: 10.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.338e-05/0.3144, allocations: 148.9 kB / 0.5103 GB, free: 10.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.3144, allocations: 45.7 kB / 0.5104 GB, free: 10.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.911e-05/0.3145, allocations: 104.6 kB / 0.5105 GB, free: 10.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.064e-05/0.3145, allocations: 63.19 kB / 0.5105 GB, free: 10.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.8e-05/0.3146, allocations: 16 kB / 0.5106 GB, free: 10.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.97e-05/0.3146, allocations: 339.1 kB / 0.5109 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.3149, allocations: 183.9 kB / 0.5111 GB, free: 9.887 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002311/0.3151, allocations: 235 kB / 0.5113 GB, free: 9.645 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002354/0.3153, allocations: 288.6 kB / 0.5116 GB, free: 9.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3153, allocations: 8 kB / 0.5116 GB, free: 9.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008634/0.3162, allocations: 0.8216 MB / 0.5124 GB, free: 8.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.848e-05/0.3163, allocations: 150.8 kB / 0.5125 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3163, allocations: 0 / 0.5125 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.3163, allocations: 4 kB / 0.5125 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.816e-05/0.3164, allocations: 4 kB / 0.5125 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3164, allocations: 0 / 0.5125 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006331/0.3171, allocations: 135.9 kB / 0.5126 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-05/0.3171, allocations: 27.98 kB / 0.5127 GB, free: 8.141 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition3,$whenCondition4,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.nexStaInd,occSchDay.nexStaInd,$PRE.occSchDay.nexStoInd,occSchDay.nexStoInd,$PRE.occSchDay.iPerSta,occSchDay.iPerSta,$PRE.occSchDay.iPerSto,occSchDay.iPerSto,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc,$whenCondition1,$whenCondition2,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.nexStaInd,occSchWee.nexStaInd,$PRE.occSchWee.nexStoInd,occSchWee.nexStoInd,$PRE.occSchWee.iPerSta,occSchWee.iPerSta,$PRE.occSchWee.iPerSto,occSchWee.iPerSto,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * 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 0.0001833/0.3173, allocations: 247.6 kB / 0.5129 GB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.312e-05/0.3174, allocations: 27.8 kB / 0.5129 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.909e-05/0.3174, allocations: 12.72 kB / 0.5129 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3174, allocations: 0 / 0.5129 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3174, allocations: 0 / 0.5129 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.3174, allocations: 7.984 kB / 0.513 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.3176, allocations: 257.3 kB / 0.5132 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3176, allocations: 4 kB / 0.5132 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.154e-05/0.3177, allocations: 7.984 kB / 0.5132 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3177, allocations: 0 / 0.5132 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/0.3177, allocations: 12 kB / 0.5132 GB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.3177, allocations: 4 kB / 0.5132 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3177, allocations: 3.938 kB / 0.5132 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004937/0.3182, allocations: 0.4984 MB / 0.5137 GB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.559e-05/0.3183, allocations: 92.95 kB / 0.5138 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.591e-05/0.3183, allocations: 12 kB / 0.5138 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.3187, allocations: 67.92 kB / 0.5139 GB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.3187, allocations: 19.94 kB / 0.5139 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.3188, allocations: 12 kB / 0.5139 GB, free: 6.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.005e-05/0.3188, allocations: 117.4 kB / 0.514 GB, free: 6.609 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3188, allocations: 4 kB / 0.514 GB, free: 6.605 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.3191, allocations: 84 kB / 0.5141 GB, free: 6.523 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition4,occSchDay.occupied,occSchDay.nexStaInd,occSchDay.nexStoInd,occSchDay.iPerSta,occSchDay.iPerSto,occSchDay.tOcc,occSchDay.tNonOcc,$whenCondition1,$whenCondition2,occSchWee.occupied,occSchWee.nexStaInd,occSchWee.nexStoInd,occSchWee.iPerSta,occSchWee.iPerSto,occSchWee.tOcc,occSchWee.tNonOcc) * Number of discrete states: 18 (occSchWee.tNonOcc,occSchWee.iPerSto,occSchWee.nexStoInd,$whenCondition2,occSchWee.tOcc,occSchWee.iPerSta,occSchWee.occupied,occSchWee.nexStaInd,$whenCondition1,occSchDay.tNonOcc,occSchDay.iPerSto,occSchDay.nexStoInd,$whenCondition4,occSchDay.tOcc,occSchDay.iPerSta,occSchDay.occupied,occSchDay.nexStaInd,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0001398/0.3193, allocations: 140.5 kB / 0.5142 GB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006962/0.32, allocations: 0.8723 MB / 0.5151 GB, free: 5.457 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.32, allocations: 0 / 0.5151 GB, free: 5.457 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003552/0.3203, allocations: 0.5729 MB / 0.5157 GB, free: 4.859 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.3205, allocations: 12.38 kB / 0.5157 GB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005659/0.3211, allocations: 425.1 kB / 0.5161 GB, free: 4.395 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001291/0.3212, allocations: 0.7163 MB / 0.5168 GB, free: 3.652 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.347e-05/0.3212, allocations: 8.656 kB / 0.5168 GB, free: 3.645 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.046e-05/0.3213, allocations: 11.44 kB / 0.5168 GB, free: 3.633 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3213, allocations: 0 / 0.5168 GB, free: 3.633 MB / 382.1 MB Notification: Performance of Templates: time 0.005994/0.3273, allocations: 3.71 MB / 0.5204 GB, free: 15.96 MB / 398.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) Environment - environmentSimulation: