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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_9_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.001019/0.001019, allocations: 99.31 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.001183/0.001182, 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 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.557/2.557, allocations: 390.2 MB / 0.6653 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003655, allocations: 8 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9222/0.9226, allocations: 142.3 MB / 0.9535 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001851/0.9245, allocations: 1.113 MB / 0.9546 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007619/0.9253, allocations: 455.5 kB / 0.955 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.937e-05/0.9254, allocations: 1.062 kB / 0.955 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.158e-05/0.9254, allocations: 5.391 kB / 0.955 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.809e-05/0.9255, allocations: 14.45 kB / 0.955 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006658/0.9262, allocations: 192 kB / 0.9552 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001869/0.9264, allocations: 92.02 kB / 0.9553 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.282e-05/0.9264, allocations: 2.375 kB / 0.9553 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.233e-05/0.9265, allocations: 49.19 kB / 0.9554 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.406e-05/0.9266, allocations: 45.44 kB / 0.9554 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.9267, allocations: 5.031 kB / 0.9554 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.9269, allocations: 129.2 kB / 0.9555 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.132e-05/0.927, allocations: 35.14 kB / 0.9556 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.04e-05/0.927, allocations: 51.56 kB / 0.9556 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.9273, allocations: 155.4 kB / 0.9558 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.9273, allocations: 0 / 0.9558 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.964e-06/0.9273, allocations: 1.188 kB / 0.9558 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.336e-06/0.9273, allocations: 0 / 0.9558 GB, free: 6.305 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.0004973/0.9278, allocations: 433.2 kB / 0.9562 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.9279, allocations: 9 kB / 0.9562 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.313e-05/0.9279, allocations: 18.89 kB / 0.9562 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.9281, allocations: 200.2 kB / 0.9564 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.9281, allocations: 8.75 kB / 0.9564 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.9282, allocations: 9.812 kB / 0.9564 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.9283, allocations: 78.27 kB / 0.9565 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.9283, allocations: 3.984 kB / 0.9565 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.9284, allocations: 3.953 kB / 0.9565 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.9284, allocations: 1.469 kB / 0.9565 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.313e-05/0.9284, allocations: 38.02 kB / 0.9565 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002078/0.9287, allocations: 237.4 kB / 0.9568 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.9288, allocations: 75.34 kB / 0.9568 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.278e-06/0.9288, allocations: 0 / 0.9568 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001992/0.929, allocations: 123.7 kB / 0.9569 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.929, allocations: 0 / 0.9569 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003813/0.9294, allocations: 341.6 kB / 0.9573 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.9294, allocations: 85.94 kB / 0.9574 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.9296, allocations: 156.2 kB / 0.9575 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.9296, allocations: 34.33 kB / 0.9575 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.762e-05/0.9297, allocations: 107.3 kB / 0.9576 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.457e-05/0.9297, allocations: 36.77 kB / 0.9577 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.803e-06/0.9297, allocations: 5 kB / 0.9577 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.693e-05/0.9298, allocations: 326 kB / 0.958 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.78e-05/0.9299, allocations: 36.67 kB / 0.958 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.9301, allocations: 207.4 kB / 0.9582 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.823e-05/0.9302, allocations: 60.42 kB / 0.9583 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.9302, allocations: 0 / 0.9583 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001985/0.9304, allocations: 152.5 kB / 0.9584 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.9305, allocations: 10.19 kB / 0.9584 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/0.9305, allocations: 14.33 kB / 0.9584 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.9305, allocations: 5.141 kB / 0.9585 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.198e-05/0.9306, allocations: 11.06 kB / 0.9585 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.9306, allocations: 1.375 kB / 0.9585 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002992/0.9309, allocations: 89.72 kB / 0.9585 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.9309, allocations: 3.906 kB / 0.9586 GB, free: 3.73 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 0.0001015/0.931, allocations: 139.6 kB / 0.9587 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.782e-05/0.9311, allocations: 8.25 kB / 0.9587 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.036e-05/0.9311, allocations: 13.06 kB / 0.9587 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.9311, allocations: 4.984 kB / 0.9587 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.9311, allocations: 5.141 kB / 0.9587 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.9311, allocations: 0 / 0.9587 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.9313, allocations: 195.1 kB / 0.9589 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.9313, allocations: 1.188 kB / 0.9589 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.44e-05/0.9313, allocations: 13.48 kB / 0.9589 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.9313, allocations: 1.438 kB / 0.9589 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.9313, allocations: 5.375 kB / 0.9589 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.9313, allocations: 1.469 kB / 0.9589 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.9313, allocations: 0 / 0.9589 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002293/0.9316, allocations: 192.7 kB / 0.9591 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.27e-05/0.9316, allocations: 85.11 kB / 0.9592 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.9316, allocations: 5.375 kB / 0.9592 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.383e-05/0.9317, allocations: 11.2 kB / 0.9592 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.186e-05/0.9318, allocations: 7.422 kB / 0.9592 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.9318, allocations: 3.656 kB / 0.9592 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.89e-05/0.9318, allocations: 115.2 kB / 0.9593 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9318, allocations: 0 / 0.9593 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003219/0.9322, allocations: 77.7 kB / 0.9594 GB, free: 2.973 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.0002391/0.9324, allocations: 161.8 kB / 0.9596 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002377/0.9327, allocations: 165.3 kB / 0.9597 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.9327, allocations: 1.375 kB / 0.9597 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.466e-05/0.9327, allocations: 50.03 kB / 0.9598 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.9329, allocations: 2.75 kB / 0.9598 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004062/0.9333, allocations: 244.5 kB / 0.96 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.9334, allocations: 0.7024 MB / 0.9607 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.744e-05/0.9335, allocations: 14.42 kB / 0.9607 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.039e-05/0.9335, allocations: 20.88 kB / 0.9607 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.9335, allocations: 0 / 0.9607 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of Templates: time 0.00539/0.9389, allocations: 2.323 MB / 0.963 GB, free: 0.6289 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (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 & ./Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches