Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.001181, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001614/0.001614, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 223.2 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.517/2.517, allocations: 390.4 MB / 0.6655 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003583/0.0003584, allocations: 8.219 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6768/0.6772, allocations: 142.3 MB / 0.9538 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.00135/0.6786, allocations: 1.117 MB / 0.9549 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001029/0.6796, allocations: 473 kB / 0.9554 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.692e-05/0.6798, allocations: 0 / 0.9554 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.77e-05/0.6799, allocations: 5.344 kB / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.124e-05/0.68, allocations: 15.38 kB / 0.9554 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000982/0.681, allocations: 177.8 kB / 0.9556 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002798/0.6812, allocations: 129.2 kB / 0.9557 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.328e-05/0.6813, allocations: 8.344 kB / 0.9557 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.6814, allocations: 49.44 kB / 0.9558 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.6816, allocations: 45.98 kB / 0.9558 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.6816, allocations: 5.688 kB / 0.9558 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004087/0.682, allocations: 146.9 kB / 0.9559 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.199e-05/0.6821, allocations: 34.83 kB / 0.956 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.214e-05/0.6822, allocations: 40.02 kB / 0.956 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003008/0.6825, allocations: 164.2 kB / 0.9562 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.6825, allocations: 4 kB / 0.9562 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.084e-06/0.6825, allocations: 4.719 kB / 0.9562 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.6826, allocations: 0 / 0.9562 GB, free: 6.348 MB / 0.7169 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.0006258/0.6832, allocations: 428.5 kB / 0.9566 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.6832, allocations: 9.812 kB / 0.9566 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.488e-05/0.6833, allocations: 31.84 kB / 0.9566 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.6834, allocations: 19.7 kB / 0.9567 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001917/0.6836, allocations: 202.9 kB / 0.9568 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.6836, allocations: 13.22 kB / 0.9569 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.893e-05/0.6836, allocations: 12.97 kB / 0.9569 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001566/0.6838, allocations: 82.77 kB / 0.9569 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.6838, allocations: 0 / 0.9569 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.6838, allocations: 5.172 kB / 0.957 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.6838, allocations: 1.031 kB / 0.957 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.373e-05/0.6839, allocations: 37.84 kB / 0.957 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002296/0.6842, allocations: 230 kB / 0.9572 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/0.6843, allocations: 90.44 kB / 0.9573 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.364e-05/0.6844, allocations: 56.56 kB / 0.9573 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.6844, allocations: 1.219 kB / 0.9574 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000189/0.6846, allocations: 112.4 kB / 0.9575 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.6846, allocations: 0 / 0.9575 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.000338/0.6849, allocations: 180.2 kB / 0.9576 GB, free: 5 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.685, allocations: 94.84 kB / 0.9577 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.956e-05/0.6851, allocations: 157.3 kB / 0.9579 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.6851, allocations: 34.11 kB / 0.9579 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.6852, allocations: 98.11 kB / 0.958 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.216e-05/0.6852, allocations: 41.53 kB / 0.958 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-06/0.6853, allocations: 7.938 kB / 0.958 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.146e-05/0.6853, allocations: 324.1 kB / 0.9584 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.432e-05/0.6854, allocations: 40.23 kB / 0.9584 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.6856, allocations: 195.2 kB / 0.9586 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.31e-05/0.6857, allocations: 63.36 kB / 0.9586 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.6857, allocations: 0 / 0.9586 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002144/0.6859, allocations: 168.7 kB / 0.9588 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.6859, allocations: 10.77 kB / 0.9588 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/0.6859, allocations: 7.578 kB / 0.9588 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.686, allocations: 1.781 kB / 0.9588 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.665e-05/0.686, allocations: 9.312 kB / 0.9588 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.6861, allocations: 1.781 kB / 0.9588 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.6863, allocations: 92.56 kB / 0.9589 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.6864, allocations: 4.125 kB / 0.9589 GB, free: 3.883 MB / 0.7169 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.639e-05/0.6865, allocations: 139.6 kB / 0.9591 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.6865, allocations: 8.031 kB / 0.9591 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.023e-05/0.6865, allocations: 16.83 kB / 0.9591 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.6865, allocations: 5.328 kB / 0.9591 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.6865, allocations: 1.375 kB / 0.9591 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.6865, allocations: 0 / 0.9591 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.6867, allocations: 190.1 kB / 0.9593 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.6867, allocations: 1.375 kB / 0.9593 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.452e-05/0.6867, allocations: 5.5 kB / 0.9593 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.6867, allocations: 13.25 kB / 0.9593 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.6867, allocations: 1.375 kB / 0.9593 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.6867, allocations: 1.375 kB / 0.9593 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6867, allocations: 3.953 kB / 0.9593 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.6869, allocations: 184.1 kB / 0.9595 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.616e-05/0.687, allocations: 83.77 kB / 0.9595 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.687, allocations: 6.734 kB / 0.9596 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.305e-05/0.6871, allocations: 10.69 kB / 0.9596 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.6871, allocations: 6.703 kB / 0.9596 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/0.6871, allocations: 10.73 kB / 0.9596 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.308e-05/0.6872, allocations: 112.7 kB / 0.9597 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6872, allocations: 0 / 0.9597 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003532/0.6875, allocations: 73.69 kB / 0.9598 GB, free: 3.141 MB / 0.7169 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 (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.0005254/0.6881, allocations: 0.7709 MB / 0.9605 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002357/0.6883, allocations: 170.3 kB / 0.9607 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.6883, allocations: 0 / 0.9607 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.881e-05/0.6884, allocations: 43.17 kB / 0.9607 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001724/0.6886, allocations: 10.95 kB / 0.9607 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.6897, allocations: 0.8056 MB / 0.9615 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.6898, allocations: 0.7097 MB / 0.9622 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.165e-05/0.6899, allocations: 10.66 kB / 0.9622 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.151e-05/0.6899, allocations: 28.39 kB / 0.9622 GB, free: 1 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.6899, allocations: 0 / 0.9622 GB, free: 1 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0152/0.7051, allocations: 3.633 MB / 0.9658 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/0.7054, allocations: 189.8 kB / 0.966 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/2.514, allocations: 0 / 0.966 GB, free: 15.02 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat does not exist to compare? outputFormat=mat