Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 80.41 kB / 20.23 MB, free: 4.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 161.7 kB / 23.54 MB, free: 0.8906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.518/1.518, allocations: 177.1 MB / 203.9 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.915/2.915, allocations: 377.8 MB / 0.6232 GB, free: 8.527 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.294e-06/2.294e-06, allocations: 0 / 0.8108 GB, free: 2.125 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.022e-05/4.251e-05, allocations: 8.641 kB / 0.8108 GB, free: 2.117 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003385/0.003427, allocations: 1.431 MB / 0.8122 GB, free: 0.6992 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001077/0.004504, allocations: 459.8 kB / 0.8126 GB, free: 256 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.748e-05/0.004552, allocations: 0 / 0.8126 GB, free: 256 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.004662, allocations: 11.92 kB / 0.8126 GB, free: 244 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 7.322e-05/0.004735, allocations: 3.938 kB / 0.8126 GB, free: 240 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.00576, allocations: 240.5 kB / 0.8128 GB, free: 0 / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0003178/0.006077, allocations: 155.7 kB / 0.813 GB, free: 15.85 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 4.533e-05/0.006123, allocations: 4.688 kB / 0.813 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.006273, allocations: 79.88 kB / 0.8131 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.006373, allocations: 33.67 kB / 0.8131 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.167e-05/0.006415, allocations: 12 kB / 0.8131 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004174/0.006832, allocations: 187.6 kB / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 9.234e-05/0.006925, allocations: 40.77 kB / 0.8133 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 8.374e-05/0.007008, allocations: 35.92 kB / 0.8134 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0005318/0.00754, allocations: 284.4 kB / 0.8136 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.007545, allocations: 0 / 0.8136 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.503e-06/0.007546, allocations: 0 / 0.8136 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.007552, allocations: 0 / 0.8136 GB, free: 15.19 MB / 0.7761 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.0007946/0.008346, allocations: 375.2 kB / 0.814 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.008389, allocations: 8.031 kB / 0.814 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.008492, allocations: 16.89 kB / 0.814 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.008755, allocations: 147 kB / 0.8142 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.008778, allocations: 8.359 kB / 0.8142 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.008816, allocations: 16.38 kB / 0.8142 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002009/0.009017, allocations: 83.89 kB / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.009026, allocations: 1.406 kB / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.009039, allocations: 384 / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.009045, allocations: 384 / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.009148, allocations: 41.73 kB / 0.8143 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002924/0.009441, allocations: 158.1 kB / 0.8145 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001514/0.009592, allocations: 77.14 kB / 0.8145 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.881e-05/0.009691, allocations: 53.84 kB / 0.8146 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.009709, allocations: 9.469 kB / 0.8146 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.009995, allocations: 105 kB / 0.8147 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.009996, allocations: 0 / 0.8147 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14): time 0.0004444/0.01044, allocations: 189.5 kB / 0.8149 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.01052, allocations: 82.52 kB / 0.815 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.01069, allocations: 164.1 kB / 0.8151 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.195e-05/0.01073, allocations: 33.7 kB / 0.8151 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.463e-05/0.01083, allocations: 105 kB / 0.8152 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.119e-05/0.01089, allocations: 35.73 kB / 0.8153 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.933e-05/0.01098, allocations: 50.33 kB / 0.8153 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001849/0.01116, allocations: 324.8 kB / 0.8156 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.673e-05/0.01124, allocations: 39.98 kB / 0.8157 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005471/0.01179, allocations: 0.6057 MB / 0.8163 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00017/0.01196, allocations: 97.62 kB / 0.8164 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.01196, allocations: 0 / 0.8164 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002707/0.01223, allocations: 165.5 kB / 0.8165 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.01225, allocations: 8.469 kB / 0.8165 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.314e-05/0.01228, allocations: 4.719 kB / 0.8165 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.01231, allocations: 3.938 kB / 0.8165 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.883e-05/0.01239, allocations: 17.23 kB / 0.8165 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.0124, allocations: 3.938 kB / 0.8166 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003032/0.0127, allocations: 78.36 kB / 0.8166 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.01272, allocations: 4.656 kB / 0.8166 GB, free: 11.77 MB / 0.7761 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.0001401/0.01286, allocations: 135.4 kB / 0.8168 GB, free: 11.63 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.128e-05/0.01289, allocations: 16.84 kB / 0.8168 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.459e-05/0.01292, allocations: 16.78 kB / 0.8168 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.01293, allocations: 3.938 kB / 0.8168 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.01294, allocations: 1.344 kB / 0.8168 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.01294, allocations: 7.984 kB / 0.8168 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.01309, allocations: 117.3 kB / 0.8169 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.01309, allocations: 4.875 kB / 0.8169 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.779e-05/0.01313, allocations: 7.984 kB / 0.8169 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.01313, allocations: 6.219 kB / 0.8169 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.01314, allocations: 4 kB / 0.8169 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.01314, allocations: 0 / 0.8169 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.01315, allocations: 3.938 kB / 0.8169 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.01344, allocations: 185.8 kB / 0.8171 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.056e-05/0.01346, allocations: 15.89 kB / 0.8171 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.01348, allocations: 4 kB / 0.8171 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.556e-05/0.01353, allocations: 7.422 kB / 0.8171 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.01358, allocations: 11.92 kB / 0.8172 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.01359, allocations: 8 kB / 0.8172 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.895e-05/0.01369, allocations: 111.2 kB / 0.8173 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.01369, allocations: 0 / 0.8173 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003429/0.01404, allocations: 71.81 kB / 0.8173 GB, free: 11 MB / 0.7761 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.0003308/0.01437, allocations: 179 kB / 0.8175 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003026/0.01467, allocations: 155.9 kB / 0.8177 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.01467, allocations: 0.5 kB / 0.8177 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 7.523e-05/0.01475, allocations: 35.98 kB / 0.8177 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001784/0.01493, allocations: 10.81 kB / 0.8177 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005235/0.01545, allocations: 234.4 kB / 0.8179 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001179/0.01557, allocations: 97.61 kB / 0.818 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.323e-05/0.01561, allocations: 13.81 kB / 0.818 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.232e-05/0.01564, allocations: 12.5 kB / 0.818 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of SimCode: time 7.91e-07/0.01564, allocations: 0.6562 kB / 0.818 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of Templates: time 0.006886/0.02253, allocations: 2.727 MB / 0.8207 GB, free: 7.555 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.20782174996566]