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: 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.007363/0.007363, allocations: 102.7 kB / 15.73 MB, free: 5.957 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.001274/0.001274, allocations: 192.2 kB / 16.67 MB, free: 5.879 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.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.441/2.441, allocations: 390.2 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001514, allocations: 59.91 kB / 0.9508 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.421/1.422, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.0037/1.426, allocations: 1.421 MB / 1.089 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001124/1.427, allocations: 0.4923 MB / 1.09 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.639e-05/1.427, allocations: 0 / 1.09 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/1.427, allocations: 12.47 kB / 1.09 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.065e-05/1.427, allocations: 7.438 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009569/1.428, allocations: 235.7 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003119/1.429, allocations: 145.4 kB / 1.09 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.553e-05/1.429, allocations: 13.44 kB / 1.09 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/1.429, allocations: 52.81 kB / 1.09 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/1.429, allocations: 40.83 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.811e-05/1.429, allocations: 9.312 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003847/1.429, allocations: 172.4 kB / 1.09 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001029/1.43, allocations: 35.33 kB / 1.09 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000103/1.43, allocations: 53.25 kB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000471/1.43, allocations: 235.7 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/1.43, allocations: 0 / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.044e-06/1.43, allocations: 0.7812 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.546e-06/1.43, allocations: 0 / 1.091 GB, free: 3.797 MB / 0.8575 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.000675/1.431, allocations: 444.9 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/1.431, allocations: 9.281 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.81e-05/1.431, allocations: 13.14 kB / 1.091 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/1.431, allocations: 214.7 kB / 1.091 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/1.431, allocations: 5.219 kB / 1.091 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.953e-05/1.431, allocations: 18.28 kB / 1.091 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000209/1.431, allocations: 84.66 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/1.431, allocations: 192 / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/1.432, allocations: 4.562 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/1.432, allocations: 0.9375 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/1.432, allocations: 40.98 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003119/1.432, allocations: 224 kB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/1.432, allocations: 87.78 kB / 1.092 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/1.432, allocations: 54.48 kB / 1.092 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/1.432, allocations: 0.8125 kB / 1.092 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000268/1.433, allocations: 106.6 kB / 1.092 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.032e-06/1.433, allocations: 0.6875 kB / 1.092 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0004224/1.433, allocations: 193.1 kB / 1.092 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/1.433, allocations: 87.64 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/1.433, allocations: 145.1 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/1.433, allocations: 39.09 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.168e-05/1.433, allocations: 100.2 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.639e-05/1.433, allocations: 36.53 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.565e-05/1.433, allocations: 53.56 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.36e-05/1.434, allocations: 327.4 kB / 1.093 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.961e-05/1.434, allocations: 45.7 kB / 1.093 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002959/1.434, allocations: 196.2 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/1.434, allocations: 105.1 kB / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/1.434, allocations: 1.688 kB / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002952/1.434, allocations: 158.9 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/1.435, allocations: 6.141 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.028e-05/1.435, allocations: 7.141 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/1.435, allocations: 1.594 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/1.435, allocations: 16.02 kB / 1.093 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/1.435, allocations: 1.125 kB / 1.093 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/1.435, allocations: 79.14 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/1.435, allocations: 8.156 kB / 1.094 GB, free: 1.523 MB / 0.8575 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.0001261/1.435, allocations: 133.9 kB / 1.094 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.546e-05/1.435, allocations: 13.8 kB / 1.094 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.808e-05/1.435, allocations: 13.22 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/1.435, allocations: 1.406 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/1.435, allocations: 1.469 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.83e-06/1.435, allocations: 1.266 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/1.435, allocations: 193.8 kB / 1.094 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/1.435, allocations: 7.938 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-05/1.436, allocations: 10.8 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/1.436, allocations: 0.9375 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/1.436, allocations: 2.375 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/1.436, allocations: 0.9688 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/1.436, allocations: 1.484 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002899/1.436, allocations: 189.2 kB / 1.094 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/1.436, allocations: 92.33 kB / 1.094 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/1.436, allocations: 2.766 kB / 1.094 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.16e-05/1.436, allocations: 6.859 kB / 1.094 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.215e-05/1.436, allocations: 10.08 kB / 1.094 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/1.436, allocations: 2.594 kB / 1.094 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.425e-05/1.436, allocations: 113.3 kB / 1.094 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/1.436, allocations: 0.8438 kB / 1.094 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004134/1.437, allocations: 74.59 kB / 1.094 GB, free: 0.832 MB / 0.8575 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.000318/1.437, allocations: 167.8 kB / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003206/1.437, allocations: 162.7 kB / 1.095 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.437, allocations: 0.6562 kB / 1.095 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.745e-05/1.437, allocations: 39.7 kB / 1.095 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/1.438, allocations: 15.33 kB / 1.095 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000498/1.438, allocations: 228.2 kB / 1.095 GB, free: 456 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/1.438, allocations: 0.7135 MB / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.873e-05/1.438, allocations: 7.781 kB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.941e-05/1.438, allocations: 14.16 kB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/1.438, allocations: 0 / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of Templates: time 0.007686/1.446, allocations: 2.527 MB / 1.098 GB, free: 15.48 MB / 0.8731 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches