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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001192/0.001192, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.001221/0.001221, allocations: 187 kB / 17.34 MB, free: 5.762 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.402/1.402, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.828/2.828, allocations: 461.9 MB / 0.7355 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 55.91 kB / 1.055 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.24/1.241, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003189/1.245, allocations: 1.417 MB / 1.21 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001099/1.246, allocations: 0.4905 MB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.42e-05/1.246, allocations: 4 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.662e-05/1.246, allocations: 7.922 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.747e-05/1.246, allocations: 11.88 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001013/1.247, allocations: 230.5 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002642/1.247, allocations: 147.7 kB / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.034e-05/1.247, allocations: 11.94 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/1.248, allocations: 59.89 kB / 1.211 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/1.248, allocations: 39.84 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/1.248, allocations: 12 kB / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003352/1.248, allocations: 171.8 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.296e-05/1.248, allocations: 31.91 kB / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.282e-05/1.248, allocations: 51.73 kB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004269/1.249, allocations: 239.3 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/1.249, allocations: 4 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.003e-06/1.249, allocations: 3.938 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.097e-06/1.249, allocations: 0 / 1.211 GB, free: 10.77 MB / 0.9356 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.0007189/1.249, allocations: 456.8 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/1.249, allocations: 8.031 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.411e-05/1.25, allocations: 12.84 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002428/1.25, allocations: 208.1 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/1.25, allocations: 8.375 kB / 1.212 GB, free: 10 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/1.25, allocations: 12.38 kB / 1.212 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/1.25, allocations: 75.95 kB / 1.212 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/1.25, allocations: 12.12 kB / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/1.25, allocations: 3.938 kB / 1.212 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/1.25, allocations: 0 / 1.212 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.765e-05/1.25, allocations: 43.95 kB / 1.212 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000314/1.251, allocations: 222.6 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/1.251, allocations: 85.17 kB / 1.212 GB, free: 9.477 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.451e-05/1.251, allocations: 57.81 kB / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.238e-06/1.251, allocations: 0 / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/1.251, allocations: 109.1 kB / 1.212 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/1.251, allocations: 7.938 kB / 1.212 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0003977/1.251, allocations: 189.3 kB / 1.213 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/1.252, allocations: 93.03 kB / 1.213 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/1.252, allocations: 153.1 kB / 1.213 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/1.252, allocations: 33.7 kB / 1.213 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.773e-05/1.252, allocations: 96.52 kB / 1.213 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.969e-05/1.252, allocations: 39.55 kB / 1.213 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.156e-05/1.252, allocations: 45.7 kB / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001388/1.252, allocations: 322.8 kB / 1.213 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.216e-05/1.252, allocations: 47.97 kB / 1.213 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/1.252, allocations: 197.3 kB / 1.214 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001495/1.253, allocations: 101.6 kB / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.253, allocations: 0 / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002429/1.253, allocations: 165.3 kB / 1.214 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/1.253, allocations: 7.938 kB / 1.214 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/1.253, allocations: 4 kB / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/1.253, allocations: 0 / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.419e-05/1.253, allocations: 11.98 kB / 1.214 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/1.253, allocations: 0 / 1.214 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000311/1.253, allocations: 79.75 kB / 1.214 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/1.253, allocations: 4 kB / 1.214 GB, free: 7.598 MB / 0.9356 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.0001389/1.254, allocations: 141.7 kB / 1.214 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/1.254, allocations: 15.84 kB / 1.214 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.921e-05/1.254, allocations: 12.72 kB / 1.214 GB, free: 7.414 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/1.254, allocations: 4 kB / 1.214 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.254, allocations: 0 / 1.214 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/1.254, allocations: 3.984 kB / 1.214 GB, free: 7.406 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/1.254, allocations: 193.4 kB / 1.214 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/1.254, allocations: 3.938 kB / 1.214 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.821e-05/1.254, allocations: 8 kB / 1.214 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/1.254, allocations: 0 / 1.214 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/1.254, allocations: 3.984 kB / 1.214 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/1.254, allocations: 4 kB / 1.214 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/1.254, allocations: 4 kB / 1.214 GB, free: 7.145 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/1.254, allocations: 185.8 kB / 1.215 GB, free: 6.941 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.543e-05/1.254, allocations: 85.05 kB / 1.215 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/1.254, allocations: 7.984 kB / 1.215 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.029e-05/1.254, allocations: 0 / 1.215 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/1.254, allocations: 7.984 kB / 1.215 GB, free: 6.824 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/1.254, allocations: 12 kB / 1.215 GB, free: 6.812 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001035/1.254, allocations: 111.2 kB / 1.215 GB, free: 6.703 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/1.254, allocations: 0 / 1.215 GB, free: 6.703 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003458/1.255, allocations: 75.92 kB / 1.215 GB, free: 6.629 MB / 0.9356 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.0002808/1.255, allocations: 169.8 kB / 1.215 GB, free: 6.457 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002792/1.255, allocations: 155.3 kB / 1.215 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/1.255, allocations: 0 / 1.215 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 7.482e-05/1.256, allocations: 51.91 kB / 1.215 GB, free: 6.242 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001816/1.256, allocations: 22.45 kB / 1.215 GB, free: 6.223 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004842/1.256, allocations: 253 kB / 1.215 GB, free: 5.941 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/1.257, allocations: 0.7041 MB / 1.216 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.205e-05/1.257, allocations: 15.44 kB / 1.216 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of SimCode: time 3.81e-07/1.257, allocations: 0 / 1.216 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of Templates: time 0.005162/1.262, allocations: 2.445 MB / 1.219 GB, free: 2.77 MB / 0.9356 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=480 -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