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.0009318/0.0009321, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.00111/0.00111, allocations: 168.7 kB / 15.95 MB, free: 204 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.433/1.433, allocations: 223.3 MB / 240 MB, free: 5.41 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.611/2.611, allocations: 390.9 MB / 0.666 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003716/0.0003717, allocations: 8 kB / 0.8154 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8784/0.8788, allocations: 142.4 MB / 0.9544 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.00147/0.8803, allocations: 1.12 MB / 0.9555 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007553/0.8811, allocations: 472.7 kB / 0.956 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.287e-05/0.8811, allocations: 1.5 kB / 0.956 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.596e-05/0.8812, allocations: 1.344 kB / 0.956 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.991e-05/0.8813, allocations: 14.22 kB / 0.956 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006122/0.8819, allocations: 190 kB / 0.9562 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002109/0.8821, allocations: 122.6 kB / 0.9563 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.662e-05/0.8822, allocations: 7.328 kB / 0.9563 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.625e-05/0.8822, allocations: 49.97 kB / 0.9563 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.422e-05/0.8823, allocations: 40.92 kB / 0.9564 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.8823, allocations: 5.656 kB / 0.9564 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002183/0.8826, allocations: 148.3 kB / 0.9565 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.721e-05/0.8826, allocations: 42.88 kB / 0.9566 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.825e-05/0.8827, allocations: 47.36 kB / 0.9566 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.8829, allocations: 157 kB / 0.9568 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.8829, allocations: 0 / 0.9568 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.423e-06/0.8829, allocations: 0 / 0.9568 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.8829, allocations: 0 / 0.9568 GB, free: 6.023 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.0004555/0.8834, allocations: 423.3 kB / 0.9572 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.8834, allocations: 9.344 kB / 0.9572 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.979e-05/0.8835, allocations: 23.39 kB / 0.9572 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.8836, allocations: 205.5 kB / 0.9574 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.8837, allocations: 8.031 kB / 0.9574 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.8837, allocations: 8.875 kB / 0.9574 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001474/0.8839, allocations: 87.25 kB / 0.9575 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.8839, allocations: 0 / 0.9575 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.8839, allocations: 3.953 kB / 0.9575 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.8839, allocations: 1.562 kB / 0.9575 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.684e-05/0.884, allocations: 42.48 kB / 0.9575 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.8842, allocations: 229.1 kB / 0.9578 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.997e-05/0.8843, allocations: 74.31 kB / 0.9578 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.673e-05/0.8844, allocations: 57.45 kB / 0.9579 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.375e-05/0.8844, allocations: 9.781 kB / 0.9579 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001774/0.8846, allocations: 110.7 kB / 0.958 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/0.8846, allocations: 0 / 0.958 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003449/0.8849, allocations: 190.8 kB / 0.9582 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.885, allocations: 81.23 kB / 0.9583 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.8851, allocations: 153.6 kB / 0.9584 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.8851, allocations: 33.83 kB / 0.9584 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.183e-05/0.8852, allocations: 111.4 kB / 0.9585 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.807e-05/0.8852, allocations: 37.03 kB / 0.9586 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.8852, allocations: 4 kB / 0.9586 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.775e-05/0.8853, allocations: 323 kB / 0.9589 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.191e-05/0.8854, allocations: 40.92 kB / 0.9589 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.8855, allocations: 203.8 kB / 0.9591 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.367e-05/0.8856, allocations: 75.33 kB / 0.9592 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.8857, allocations: 0 / 0.9592 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002283/0.8859, allocations: 156.7 kB / 0.9594 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.8859, allocations: 5.281 kB / 0.9594 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.8859, allocations: 2.625 kB / 0.9594 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.886, allocations: 6.266 kB / 0.9594 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.8861, allocations: 14.3 kB / 0.9594 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.8861, allocations: 0.9375 kB / 0.9594 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/0.8864, allocations: 86.72 kB / 0.9595 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.8864, allocations: 11.44 kB / 0.9595 GB, free: 3.598 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 9.87e-05/0.8865, allocations: 141.6 kB / 0.9596 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/0.8865, allocations: 8.375 kB / 0.9596 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.89e-05/0.8865, allocations: 12.72 kB / 0.9596 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.8865, allocations: 5.391 kB / 0.9596 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.8865, allocations: 0 / 0.9596 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.8866, allocations: 5.172 kB / 0.9596 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.8867, allocations: 190.7 kB / 0.9598 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.8867, allocations: 4 kB / 0.9598 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.046e-05/0.8867, allocations: 6 kB / 0.9598 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.8867, allocations: 5.016 kB / 0.9598 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.8867, allocations: 6.25 kB / 0.9598 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.8868, allocations: 5.062 kB / 0.9598 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.8868, allocations: 4.984 kB / 0.9598 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.887, allocations: 180.7 kB / 0.96 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.072e-05/0.887, allocations: 88.73 kB / 0.9601 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.8871, allocations: 0.9688 kB / 0.9601 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.062e-05/0.8871, allocations: 7.422 kB / 0.9601 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.8871, allocations: 11.11 kB / 0.9601 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.8872, allocations: 2.625 kB / 0.9601 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.543e-05/0.8872, allocations: 116.5 kB / 0.9602 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8872, allocations: 3.938 kB / 0.9602 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003205/0.8876, allocations: 78.05 kB / 0.9603 GB, free: 2.855 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.0002292/0.8878, allocations: 164.7 kB / 0.9605 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002471/0.8881, allocations: 161.4 kB / 0.9606 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.8881, allocations: 0 / 0.9606 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.027e-05/0.8882, allocations: 51.39 kB / 0.9607 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001633/0.8883, allocations: 6.75 kB / 0.9607 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003843/0.8887, allocations: 240.3 kB / 0.9609 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001353/0.8889, allocations: 0.7016 MB / 0.9616 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.768e-05/0.8889, allocations: 7.578 kB / 0.9616 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.023e-05/0.8889, allocations: 11.62 kB / 0.9616 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.8889, allocations: 4 kB / 0.9616 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of Templates: time 0.005162/0.8941, allocations: 2.323 MB / 0.9639 GB, free: 0.5234 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","/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