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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.000934/0.0009341, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001153/0.001153, allocations: 172.7 kB / 15.95 MB, free: 208 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.571/1.571, allocations: 223.3 MB / 240 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.149/3.149, allocations: 462.6 MB / 0.736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.0003678, allocations: 11.72 kB / 0.9021 GB, free: 36.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3675, allocations: 159.6 MB / 1.058 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001676/0.3692, allocations: 1.116 MB / 1.059 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008811/0.3701, allocations: 466.8 kB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.02e-05/0.3702, allocations: 0 / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.969e-05/0.3703, allocations: 11.92 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.317e-05/0.3703, allocations: 0 / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007435/0.3711, allocations: 198.8 kB / 1.06 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.3713, allocations: 123.7 kB / 1.06 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.169e-05/0.3714, allocations: 7.969 kB / 1.06 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.991e-05/0.3715, allocations: 59.83 kB / 1.06 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.714e-05/0.3715, allocations: 39.84 kB / 1.06 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.3716, allocations: 8 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003421/0.3719, allocations: 151.8 kB / 1.06 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.22e-05/0.372, allocations: 35.89 kB / 1.06 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.072e-05/0.3721, allocations: 45.69 kB / 1.06 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002283/0.3723, allocations: 156 kB / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3723, allocations: 0 / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3723, allocations: 0 / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.3723, allocations: 0 / 1.06 GB, free: 2.91 MB / 0.8106 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.0005847/0.3729, allocations: 430.8 kB / 1.061 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.373, allocations: 8.031 kB / 1.061 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.311e-05/0.373, allocations: 19.84 kB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/0.3732, allocations: 208.7 kB / 1.061 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.3733, allocations: 8 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.3733, allocations: 12 kB / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/0.3735, allocations: 83.33 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3735, allocations: 0 / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.3735, allocations: 3.984 kB / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3735, allocations: 0 / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.294e-05/0.3736, allocations: 39.92 kB / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002595/0.3739, allocations: 234.4 kB / 1.061 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.374, allocations: 85.19 kB / 1.061 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.265e-05/0.3741, allocations: 49.81 kB / 1.061 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.3741, allocations: 4 kB / 1.061 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002193/0.3744, allocations: 109.1 kB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.3744, allocations: 0 / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003435/0.3747, allocations: 185.4 kB / 1.062 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.3748, allocations: 97.03 kB / 1.062 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.3749, allocations: 146.9 kB / 1.062 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.375, allocations: 41.64 kB / 1.062 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002043/0.3752, allocations: 108.5 kB / 1.062 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.143e-05/0.3753, allocations: 31.56 kB / 1.062 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.604e-06/0.3753, allocations: 4 kB / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.3754, allocations: 330.8 kB / 1.062 GB, free: 480 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.943e-05/0.3755, allocations: 40.17 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.3758, allocations: 199.4 kB / 1.063 GB, free: 184 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.554e-05/0.3759, allocations: 55.92 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3759, allocations: 4 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002651/0.3762, allocations: 161.4 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3762, allocations: 4 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.459e-05/0.3762, allocations: 4 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.3762, allocations: 3.938 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.312e-05/0.3763, allocations: 11.98 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.3763, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000291/0.3766, allocations: 93.12 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.3767, allocations: 4 kB / 1.063 GB, free: 15.84 MB / 0.8262 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.0001439/0.3768, allocations: 149.8 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.007e-05/0.3768, allocations: 11.91 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.35e-05/0.3769, allocations: 12.72 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3769, allocations: 0 / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3769, allocations: 0 / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3769, allocations: 0 / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001768/0.3771, allocations: 201.4 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3771, allocations: 0 / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.246e-05/0.3771, allocations: 8 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.3772, allocations: 0 / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.3772, allocations: 4 kB / 1.063 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.3772, allocations: 3.984 kB / 1.063 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3772, allocations: 4 kB / 1.063 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.3774, allocations: 181.7 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.84e-05/0.3775, allocations: 92.91 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.3775, allocations: 8 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.3e-05/0.3776, allocations: 4 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.507e-05/0.3776, allocations: 7.984 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.3776, allocations: 0 / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.348e-05/0.3777, allocations: 116.3 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3777, allocations: 0 / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003266/0.3781, allocations: 71.98 kB / 1.064 GB, free: 14.88 MB / 0.8262 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.0002625/0.3783, allocations: 167.7 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002626/0.3786, allocations: 159.3 kB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3786, allocations: 0 / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.085e-05/0.3787, allocations: 47.92 kB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001735/0.3789, allocations: 15.94 kB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004832/0.3794, allocations: 238.5 kB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.3798, allocations: 0.7121 MB / 1.065 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.179e-05/0.3798, allocations: 8.656 kB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.311e-05/0.3799, allocations: 15.44 kB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of SimCode: time 4.01e-07/0.3799, allocations: 0 / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of Templates: time 0.005877/0.3858, allocations: 2.331 MB / 1.067 GB, free: 11.15 MB / 0.8262 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches