Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001496/0.001496, allocations: 106.3 kB / 16.27 MB, free: 5.969 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.001515/0.001515, allocations: 192.7 kB / 17.2 MB, free: 5.594 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.371/1.371, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.746/2.746, allocations: 482.4 MB / 0.7553 GB, free: 6.977 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 72.81 kB / 0.9245 GB, free: 4 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.971/0.9729, allocations: 162.2 MB / 1.083 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002644/0.9756, allocations: 1.414 MB / 1.084 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008603/0.9765, allocations: 0.4939 MB / 1.085 GB, free: 336 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.499e-05/0.9765, allocations: 1.375 kB / 1.085 GB, free: 336 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 7.831e-05/0.9766, allocations: 7.797 kB / 1.085 GB, free: 332 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.405e-05/0.9767, allocations: 11.11 kB / 1.085 GB, free: 324 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007291/0.9774, allocations: 233.1 kB / 1.085 GB, free: 220 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002126/0.9777, allocations: 145.2 kB / 1.085 GB, free: 164 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.737e-05/0.9777, allocations: 8.547 kB / 1.085 GB, free: 160 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.209e-05/0.9778, allocations: 55.91 kB / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.825e-05/0.9779, allocations: 44.97 kB / 1.085 GB, free: 120 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.359e-05/0.9779, allocations: 9.812 kB / 1.085 GB, free: 120 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002878/0.9782, allocations: 168.6 kB / 1.085 GB, free: 68 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.034e-05/0.9783, allocations: 39.14 kB / 1.085 GB, free: 48 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.406e-05/0.9784, allocations: 49.67 kB / 1.086 GB, free: 20 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004383/0.9788, allocations: 232.8 kB / 1.086 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.9789, allocations: 0 / 1.086 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.683e-06/0.9789, allocations: 4.594 kB / 1.086 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.809e-06/0.9789, allocations: 4 kB / 1.086 GB, free: 15.93 MB / 0.8419 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.0006862/0.9796, allocations: 456.1 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.9796, allocations: 8.719 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.764e-05/0.9797, allocations: 12.44 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002393/0.9799, allocations: 210.3 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.98, allocations: 6.25 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.98, allocations: 10.06 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.9802, allocations: 87.42 kB / 1.086 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.9802, allocations: 1.312 kB / 1.086 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.9802, allocations: 7.938 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.9802, allocations: 1.219 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.152e-05/0.9803, allocations: 38.45 kB / 1.087 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003008/0.9806, allocations: 222.8 kB / 1.087 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.9808, allocations: 83.73 kB / 1.087 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.673e-05/0.9809, allocations: 54.78 kB / 1.087 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.9809, allocations: 0.75 kB / 1.087 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002254/0.9811, allocations: 114.8 kB / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 1.273e-06/0.9811, allocations: 0 / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.000396/0.9815, allocations: 200.9 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.082e-05/0.9816, allocations: 83.42 kB / 1.087 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.9818, allocations: 150.4 kB / 1.087 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.686e-05/0.9818, allocations: 35.06 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.795e-05/0.9819, allocations: 101.1 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.455e-05/0.9819, allocations: 35.44 kB / 1.088 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.463e-05/0.982, allocations: 50.17 kB / 1.088 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.9822, allocations: 322.2 kB / 1.088 GB, free: 14 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.529e-05/0.9823, allocations: 46.52 kB / 1.088 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002438/0.9825, allocations: 200.7 kB / 1.088 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.9827, allocations: 109.1 kB / 1.088 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.9827, allocations: 0 / 1.088 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002558/0.983, allocations: 165.3 kB / 1.088 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.983, allocations: 5.094 kB / 1.088 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/0.983, allocations: 3.312 kB / 1.088 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.983, allocations: 1.094 kB / 1.088 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.952e-05/0.9831, allocations: 12.03 kB / 1.088 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.9831, allocations: 1.281 kB / 1.088 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.9834, allocations: 74.34 kB / 1.089 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.9835, allocations: 7.844 kB / 1.089 GB, free: 13.66 MB / 0.8419 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.0001393/0.9836, allocations: 142.3 kB / 1.089 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.471e-05/0.9836, allocations: 13.19 kB / 1.089 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.727e-05/0.9837, allocations: 14.59 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.9837, allocations: 5.219 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.9837, allocations: 0.5156 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.9837, allocations: 1.75 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000185/0.9839, allocations: 192.6 kB / 1.089 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.9839, allocations: 5.438 kB / 1.089 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.27e-05/0.9839, allocations: 6.547 kB / 1.089 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.9839, allocations: 1.188 kB / 1.089 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.984, allocations: 9.766 kB / 1.089 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.984, allocations: 1.625 kB / 1.089 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.984, allocations: 1.125 kB / 1.089 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002487/0.9842, allocations: 175.8 kB / 1.089 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.004e-05/0.9843, allocations: 90.27 kB / 1.089 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.9843, allocations: 2.609 kB / 1.089 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.905e-05/0.9844, allocations: 3.188 kB / 1.089 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.327e-05/0.9844, allocations: 13.09 kB / 1.089 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.9845, allocations: 4.031 kB / 1.089 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.161e-05/0.9846, allocations: 112.6 kB / 1.089 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9846, allocations: 0 / 1.089 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003713/0.9849, allocations: 79.34 kB / 1.089 GB, free: 12.96 MB / 0.8419 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.0002823/0.9852, allocations: 174.6 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002913/0.9855, allocations: 167.6 kB / 1.09 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.9855, allocations: 4 kB / 1.09 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 7.717e-05/0.9856, allocations: 40.27 kB / 1.09 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001741/0.9858, allocations: 11.59 kB / 1.09 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004797/0.9863, allocations: 261.5 kB / 1.09 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.9866, allocations: 0.703 MB / 1.091 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.893e-05/0.9867, allocations: 13.19 kB / 1.091 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of SimCode: time 2e-07/0.9867, allocations: 0 / 1.091 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of Templates: time 0.005428/0.9921, allocations: 2.447 MB / 1.093 GB, free: 11.55 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,occSchDay.tNexNonOcc,occSchWee.tNexNonOcc,occSchDay.occupied,occSchWee.occupied Variables in the result:occSchDay.occupied,occSchDay.tNexNonOcc,occSchWee.occupied,occSchWee.tNexNonOcc,time