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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001433/0.001433, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001536/0.001536, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.462/1.462, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.348/2.348, allocations: 390.2 MB / 0.6644 GB, free: 0.4922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.91 kB / 0.8122 GB, free: 14.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6761/0.6774, allocations: 140.4 MB / 0.9492 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002343/0.6798, allocations: 1.482 MB / 0.9507 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007194/0.6805, allocations: 497.8 kB / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.75e-05/0.6805, allocations: 0 / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.256e-05/0.6806, allocations: 2.75 kB / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.865e-05/0.6807, allocations: 18.66 kB / 0.9512 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005488/0.6812, allocations: 212.3 kB / 0.9514 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001731/0.6814, allocations: 146.2 kB / 0.9515 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.051e-05/0.6814, allocations: 3.844 kB / 0.9515 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.894e-05/0.6815, allocations: 56.36 kB / 0.9516 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.981e-05/0.6816, allocations: 42.45 kB / 0.9516 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.6816, allocations: 14.88 kB / 0.9516 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.6818, allocations: 166 kB / 0.9518 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.409e-05/0.6819, allocations: 38.67 kB / 0.9518 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.992e-05/0.682, allocations: 53.31 kB / 0.9519 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.6823, allocations: 232.2 kB / 0.9521 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.6823, allocations: 9.016 kB / 0.9521 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.403e-06/0.6823, allocations: 0 / 0.9521 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.014e-06/0.6823, allocations: 0 / 0.9521 GB, free: 6.988 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.0005536/0.6829, allocations: 454.7 kB / 0.9525 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.6829, allocations: 9.656 kB / 0.9525 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.67e-05/0.683, allocations: 36.22 kB / 0.9526 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.223e-05/0.683, allocations: 16.47 kB / 0.9526 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.6832, allocations: 209.1 kB / 0.9528 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.6832, allocations: 9.5 kB / 0.9528 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/0.6833, allocations: 13.64 kB / 0.9528 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/0.6834, allocations: 83.95 kB / 0.9529 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.6834, allocations: 3.938 kB / 0.9529 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.6835, allocations: 4 kB / 0.9529 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.6835, allocations: 1.531 kB / 0.9529 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.101e-05/0.6836, allocations: 38.88 kB / 0.9529 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002078/0.6838, allocations: 229.1 kB / 0.9531 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.6839, allocations: 82.3 kB / 0.9532 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.647e-05/0.684, allocations: 57.88 kB / 0.9533 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.684, allocations: 1.312 kB / 0.9533 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/0.6842, allocations: 118.5 kB / 0.9534 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.6842, allocations: 1.5 kB / 0.9534 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003422/0.6846, allocations: 190.6 kB / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.6846, allocations: 90.88 kB / 0.9537 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.6848, allocations: 148.7 kB / 0.9538 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.6848, allocations: 39.19 kB / 0.9538 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.391e-05/0.6848, allocations: 97.45 kB / 0.9539 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.672e-05/0.6849, allocations: 41.52 kB / 0.954 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.91e-05/0.685, allocations: 47.77 kB / 0.954 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.109e-05/0.6851, allocations: 323.8 kB / 0.9543 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.706e-05/0.6851, allocations: 44.16 kB / 0.9544 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.6853, allocations: 195 kB / 0.9546 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.6855, allocations: 105.5 kB / 0.9547 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.6855, allocations: 1.125 kB / 0.9547 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002345/0.6857, allocations: 166.2 kB / 0.9548 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.6858, allocations: 7.094 kB / 0.9548 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/0.6858, allocations: 2.781 kB / 0.9548 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.6858, allocations: 1.219 kB / 0.9548 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.881e-05/0.6859, allocations: 11.02 kB / 0.9548 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/0.6859, allocations: 1.406 kB / 0.9548 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000271/0.6862, allocations: 72.72 kB / 0.9549 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.6862, allocations: 4.844 kB / 0.9549 GB, free: 4.461 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 (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.0001044/0.6863, allocations: 143 kB / 0.9551 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.131e-05/0.6863, allocations: 15.88 kB / 0.9551 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.6864, allocations: 16.19 kB / 0.9551 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.6864, allocations: 2.625 kB / 0.9551 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.6864, allocations: 0 / 0.9551 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.6864, allocations: 13.28 kB / 0.9551 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.6865, allocations: 190.4 kB / 0.9553 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.6865, allocations: 0 / 0.9553 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.239e-05/0.6866, allocations: 6.219 kB / 0.9553 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.6866, allocations: 1.312 kB / 0.9553 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.6866, allocations: 5.391 kB / 0.9553 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.6866, allocations: 0.8125 kB / 0.9553 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6866, allocations: 5.469 kB / 0.9553 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002402/0.6869, allocations: 184.9 kB / 0.9555 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.319e-05/0.6869, allocations: 88.83 kB / 0.9556 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.6869, allocations: 1.094 kB / 0.9556 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.036e-05/0.687, allocations: 2.438 kB / 0.9556 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.381e-05/0.687, allocations: 7.547 kB / 0.9556 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.687, allocations: 10.75 kB / 0.9556 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.751e-05/0.6871, allocations: 112.6 kB / 0.9557 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6871, allocations: 0 / 0.9557 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003371/0.6875, allocations: 78.45 kB / 0.9558 GB, free: 3.715 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 (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.0005949/0.6881, allocations: 0.7907 MB / 0.9565 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002793/0.6884, allocations: 167.2 kB / 0.9567 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.6884, allocations: 0 / 0.9567 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.428e-05/0.6885, allocations: 38.7 kB / 0.9567 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001823/0.6886, allocations: 6.656 kB / 0.9567 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.6901, allocations: 1.733 MB / 0.9584 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.6902, allocations: 0.705 MB / 0.9591 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.663e-05/0.6903, allocations: 10.84 kB / 0.9591 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.114e-05/0.6903, allocations: 24.88 kB / 0.9592 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.6903, allocations: 4 kB / 0.9592 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02769/0.718, allocations: 3.81 MB / 0.9629 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.7183, allocations: 213.2 kB / 0.9631 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.588, allocations: 1.438 kB / 0.9631 GB, free: 14.55 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/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)