Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0007992/0.0007992, allocations: 76.55 kB / 19.93 MB, free: 4.617 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.0008141/0.0008141, allocations: 177.9 kB / 23.22 MB, free: 1.332 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 0.9394/0.9394, allocations: 177.2 MB / 203.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.713/1.713, allocations: 359 MB / 0.6044 GB, free: 11.08 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 0.9517 GB, free: 3.035 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.001e-05/3.162e-05, allocations: 9.094 kB / 0.9517 GB, free: 3.027 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001921/0.001953, allocations: 1.416 MB / 0.9531 GB, free: 1.594 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.000663/0.002616, allocations: 470.8 kB / 0.9535 GB, free: 1.133 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.681e-05/0.002652, allocations: 4 kB / 0.9535 GB, free: 1.129 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 7.864e-05/0.002731, allocations: 11.92 kB / 0.9535 GB, free: 1.117 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 5.636e-05/0.002787, allocations: 3.938 kB / 0.9536 GB, free: 1.113 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006441/0.003432, allocations: 254.2 kB / 0.9538 GB, free: 0.8672 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.000185/0.003617, allocations: 151.7 kB / 0.9539 GB, free: 0.7188 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 4.876e-05/0.003665, allocations: 3.984 kB / 0.9539 GB, free: 0.7148 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 8.512e-05/0.00375, allocations: 75.89 kB / 0.954 GB, free: 0.6406 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 7.583e-05/0.003826, allocations: 43.88 kB / 0.9541 GB, free: 0.5977 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.448e-05/0.003851, allocations: 12 kB / 0.9541 GB, free: 0.5859 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005276/0.004378, allocations: 183.7 kB / 0.9542 GB, free: 416 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 5.727e-05/0.004436, allocations: 31.91 kB / 0.9543 GB, free: 384 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 5.582e-05/0.004491, allocations: 39.91 kB / 0.9543 GB, free: 344 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0003071/0.004799, allocations: 279.3 kB / 0.9546 GB, free: 64 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.004803, allocations: 0 / 0.9546 GB, free: 64 kB / 0.9011 GB Notification: Performance of FrontEnd: time 1.503e-06/0.004804, allocations: 0 / 0.9546 GB, free: 64 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.004811, allocations: 0 / 0.9546 GB, free: 64 kB / 0.9011 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.0005045/0.005315, allocations: 377.5 kB / 0.9549 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.005355, allocations: 12.03 kB / 0.9549 GB, free: 15.65 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.961e-05/0.005405, allocations: 16.89 kB / 0.955 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.005575, allocations: 153.6 kB / 0.9551 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.005588, allocations: 8.375 kB / 0.9551 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.911e-05/0.005607, allocations: 8.375 kB / 0.9551 GB, free: 15.44 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001507/0.005758, allocations: 83.89 kB / 0.9552 GB, free: 15.35 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.005768, allocations: 192 / 0.9552 GB, free: 15.35 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.00578, allocations: 384 / 0.9552 GB, free: 15.35 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.005788, allocations: 4.375 kB / 0.9552 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.49e-05/0.005853, allocations: 39.91 kB / 0.9553 GB, free: 15.3 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001622/0.006015, allocations: 158.3 kB / 0.9554 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 8.693e-05/0.006102, allocations: 81.22 kB / 0.9555 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.137e-05/0.006153, allocations: 45.77 kB / 0.9555 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 9.788e-06/0.006163, allocations: 0 / 0.9555 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.006354, allocations: 117 kB / 0.9556 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.006355, allocations: 0 / 0.9556 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14): time 0.0002738/0.006629, allocations: 189.5 kB / 0.9558 GB, free: 14.64 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.00668, allocations: 85.09 kB / 0.9559 GB, free: 14.54 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.923e-05/0.006779, allocations: 156 kB / 0.956 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.006802, allocations: 37.69 kB / 0.9561 GB, free: 14.34 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.834e-05/0.00685, allocations: 104.5 kB / 0.9562 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.833e-05/0.006888, allocations: 35.73 kB / 0.9562 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.377e-05/0.006942, allocations: 53.64 kB / 0.9563 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.64e-05/0.007029, allocations: 326.8 kB / 0.9566 GB, free: 13.81 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.942e-05/0.007078, allocations: 35.98 kB / 0.9566 GB, free: 13.77 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002677/0.007346, allocations: 0.604 MB / 0.9572 GB, free: 13.02 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.007448, allocations: 101.6 kB / 0.9573 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.00745, allocations: 0 / 0.9573 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001592/0.007609, allocations: 161.5 kB / 0.9575 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.007624, allocations: 8 kB / 0.9575 GB, free: 12.74 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.167e-05/0.007646, allocations: 11.98 kB / 0.9575 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.007661, allocations: 11.88 kB / 0.9575 GB, free: 12.71 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-05/0.007729, allocations: 4 kB / 0.9575 GB, free: 12.71 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.007735, allocations: 4 kB / 0.9575 GB, free: 12.71 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.00789, allocations: 71.86 kB / 0.9576 GB, free: 12.64 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.007898, allocations: 8.031 kB / 0.9576 GB, free: 12.63 MB / 0.9167 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 9.48e-05/0.007992, allocations: 147.4 kB / 0.9577 GB, free: 12.48 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.125e-05/0.008004, allocations: 7.953 kB / 0.9577 GB, free: 12.47 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.594e-05/0.00803, allocations: 12.78 kB / 0.9577 GB, free: 12.45 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.008034, allocations: 7.922 kB / 0.9577 GB, free: 12.45 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.008039, allocations: 0 / 0.9577 GB, free: 12.45 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.008042, allocations: 0 / 0.9577 GB, free: 12.45 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.519e-05/0.008128, allocations: 133.2 kB / 0.9579 GB, free: 12.29 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.008129, allocations: 4 kB / 0.9579 GB, free: 12.28 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.341e-05/0.008153, allocations: 8 kB / 0.9579 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-06/0.008155, allocations: 0 / 0.9579 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.008165, allocations: 4 kB / 0.9579 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.008167, allocations: 0 / 0.9579 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.008169, allocations: 3.938 kB / 0.9579 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001608/0.00833, allocations: 181.8 kB / 0.9581 GB, free: 12.07 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.073e-05/0.008341, allocations: 11.91 kB / 0.9581 GB, free: 12.05 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.008356, allocations: 7.984 kB / 0.9581 GB, free: 12.05 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.441e-05/0.00838, allocations: 4 kB / 0.9581 GB, free: 12.04 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.008423, allocations: 15.92 kB / 0.9581 GB, free: 12.03 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.008429, allocations: 4 kB / 0.9581 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 5.693e-05/0.008486, allocations: 113.1 kB / 0.9582 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.008486, allocations: 0 / 0.9582 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002297/0.008716, allocations: 75.81 kB / 0.9583 GB, free: 11.84 MB / 0.9167 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.0002164/0.008932, allocations: 181.6 kB / 0.9584 GB, free: 11.66 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0002003/0.009132, allocations: 155.3 kB / 0.9586 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.009134, allocations: 0 / 0.9586 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 4.267e-05/0.009176, allocations: 39.92 kB / 0.9586 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.009312, allocations: 12 kB / 0.9586 GB, free: 11.44 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003671/0.009679, allocations: 256.3 kB / 0.9589 GB, free: 11.16 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.37e-05/0.009742, allocations: 93.11 kB / 0.959 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.349e-05/0.009766, allocations: 16.48 kB / 0.959 GB, free: 11.02 MB / 0.9167 GB Notification: Performance of SimCode: time 5.62e-07/0.009766, allocations: 0 / 0.959 GB, free: 11.02 MB / 0.9167 GB Notification: Performance of Templates: time 0.003536/0.0133, allocations: 2.497 MB / 0.9614 GB, free: 8.547 MB / 0.9167 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,occSchDay.tNexNonOcc,occSchWee.tNexNonOcc,occSchDay.occupied,occSchWee.occupied Variables in the result:occSchDay.occupied,occSchDay.tNexNonOcc,occSchWee.occupied,occSchWee.tNexNonOcc,time [Calling sys.exit(0), Time elapsed: 6.60949644446373]