Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001475/0.001475, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001703/0.001704, allocations: 196.9 kB / 16.14 MB, free: 6.719 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.444/1.444, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.744/2.744, allocations: 437 MB / 0.7099 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.89 kB / 0.8685 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9222/0.9235, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002919/0.9264, allocations: 1.48 MB / 1.018 GB, free: 1.328 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009958/0.9274, allocations: 0.514 MB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.212e-05/0.9275, allocations: 0 / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.585e-05/0.9276, allocations: 4 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.862e-05/0.9277, allocations: 11.91 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006519/0.9283, allocations: 199.1 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001937/0.9285, allocations: 135.7 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.708e-05/0.9286, allocations: 7.984 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.387e-05/0.9286, allocations: 51.91 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.15e-05/0.9287, allocations: 39.83 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.316e-05/0.9288, allocations: 8 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002485/0.929, allocations: 159.8 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 7.258e-05/0.9291, allocations: 35.84 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 8.453e-05/0.9292, allocations: 55.72 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0003408/0.9296, allocations: 225.6 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.9296, allocations: 0 / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.192e-06/0.9296, allocations: 0 / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.9296, allocations: 0 / 1.019 GB, free: 15.9 MB / 0.7794 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.0006832/0.9303, allocations: 447 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.9303, allocations: 12.03 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.501e-05/0.9304, allocations: 16.75 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002465/0.9307, allocations: 208.2 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.9307, allocations: 8.375 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.9307, allocations: 12.36 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000177/0.9309, allocations: 91.67 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.9309, allocations: 192 / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.9309, allocations: 3.938 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.896e-06/0.931, allocations: 4 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.091e-05/0.931, allocations: 35.97 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002832/0.9313, allocations: 238.5 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.9315, allocations: 81.12 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.74e-05/0.9316, allocations: 53.81 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.9316, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.9318, allocations: 117 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.9319, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003977/0.9323, allocations: 197.4 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.9323, allocations: 81.11 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.9325, allocations: 151.6 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.9325, allocations: 37.7 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.829e-05/0.9326, allocations: 100.5 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.678e-05/0.9327, allocations: 35.53 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.53e-05/0.9328, allocations: 57.69 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.933, allocations: 322.8 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.82e-05/0.933, allocations: 39.98 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.9333, allocations: 199.3 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.9334, allocations: 101.6 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.9334, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002424/0.9337, allocations: 169.3 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.9337, allocations: 6.188 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.502e-05/0.9338, allocations: 11.98 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.9338, allocations: 0 / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.714e-05/0.9339, allocations: 8 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.9339, allocations: 0 / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002595/0.9341, allocations: 73.73 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.9342, allocations: 4 kB / 1.022 GB, free: 12.72 MB / 0.7794 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.0001362/0.9343, allocations: 142.2 kB / 1.022 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.9343, allocations: 15.75 kB / 1.022 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.032e-05/0.9344, allocations: 20.7 kB / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.9344, allocations: 0 / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.9344, allocations: 0 / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.9344, allocations: 4.094 kB / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001737/0.9346, allocations: 197.5 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.9346, allocations: 7.922 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.07e-05/0.9346, allocations: 4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.9346, allocations: 4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.9347, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.9347, allocations: 3.938 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.9347, allocations: 4 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002457/0.9349, allocations: 185.3 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.143e-05/0.935, allocations: 88.95 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.935, allocations: 7.984 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.961e-05/0.9351, allocations: 4 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.067e-05/0.9351, allocations: 7.938 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.9352, allocations: 7.984 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.077e-05/0.9353, allocations: 108.8 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9353, allocations: 4 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003063/0.9356, allocations: 75.92 kB / 1.023 GB, free: 11.75 MB / 0.7794 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.0002698/0.9359, allocations: 159.2 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002687/0.9361, allocations: 167.3 kB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.9361, allocations: 0 / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.457e-05/0.9362, allocations: 47.92 kB / 1.023 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001731/0.9364, allocations: 7.938 kB / 1.023 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005098/0.9369, allocations: 245.2 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.9373, allocations: 0.7082 MB / 1.024 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.276e-05/0.9373, allocations: 12.59 kB / 1.024 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.368e-05/0.9373, allocations: 19.44 kB / 1.024 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.9373, allocations: 0 / 1.024 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of Templates: time 0.005336/0.9427, allocations: 2.401 MB / 1.027 GB, free: 7.938 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches