Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001636/0.001636, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 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.00175/0.00175, allocations: 213.8 kB / 22.99 MB, free: 4.945 MB / 14.72 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.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.272/3.272, allocations: 0.5107 GB / 0.8166 GB, free: 17.79 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002092, allocations: 74.83 kB / 1.187 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3356, allocations: 181.9 MB / 1.365 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.00296/0.3385, allocations: 1.435 MB / 1.366 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009758/0.3395, allocations: 446.5 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.978e-05/0.3396, allocations: 0 / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 7.496e-05/0.3396, allocations: 11.92 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.721e-05/0.3397, allocations: 11.88 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008781/0.3406, allocations: 245.7 kB / 1.367 GB, free: 11.44 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002438/0.3408, allocations: 143.8 kB / 1.367 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.532e-05/0.3409, allocations: 4 kB / 1.367 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.433e-05/0.341, allocations: 59.83 kB / 1.367 GB, free: 11.24 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.3411, allocations: 35.91 kB / 1.367 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.435e-05/0.3411, allocations: 8 kB / 1.367 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003536/0.3415, allocations: 191.7 kB / 1.367 GB, free: 11.01 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.375e-05/0.3415, allocations: 39.91 kB / 1.367 GB, free: 10.97 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.549e-05/0.3416, allocations: 43.78 kB / 1.367 GB, free: 10.93 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003876/0.342, allocations: 251.2 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.342, allocations: 0 / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.352e-06/0.342, allocations: 0 / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.342, allocations: 0 / 1.367 GB, free: 10.68 MB / 1.061 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.0006238/0.3426, allocations: 377.5 kB / 1.368 GB, free: 10.28 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3427, allocations: 12.03 kB / 1.368 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.16e-05/0.3427, allocations: 12.89 kB / 1.368 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.343, allocations: 142.4 kB / 1.368 GB, free: 10.09 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.343, allocations: 8.375 kB / 1.368 GB, free: 10.08 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.912e-05/0.343, allocations: 12.38 kB / 1.368 GB, free: 10.07 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.3432, allocations: 91.88 kB / 1.368 GB, free: 9.969 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.3432, allocations: 192 / 1.368 GB, free: 9.969 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.3432, allocations: 11.94 kB / 1.368 GB, free: 9.957 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3432, allocations: 0 / 1.368 GB, free: 9.957 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.634e-05/0.3433, allocations: 35.98 kB / 1.368 GB, free: 9.922 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002379/0.3436, allocations: 158.2 kB / 1.368 GB, free: 9.734 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.3437, allocations: 73.19 kB / 1.368 GB, free: 9.645 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.104e-05/0.3438, allocations: 53.8 kB / 1.368 GB, free: 9.586 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.3438, allocations: 0 / 1.368 GB, free: 9.586 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002357/0.344, allocations: 109 kB / 1.368 GB, free: 9.461 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.344, allocations: 4 kB / 1.368 GB, free: 9.457 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0003852/0.3444, allocations: 193.4 kB / 1.369 GB, free: 9.262 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.67e-05/0.3445, allocations: 89.11 kB / 1.369 GB, free: 9.156 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.3447, allocations: 151.5 kB / 1.369 GB, free: 9 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.3447, allocations: 33.7 kB / 1.369 GB, free: 8.961 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.934e-05/0.3448, allocations: 108.4 kB / 1.369 GB, free: 8.848 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.185e-05/0.3448, allocations: 31.73 kB / 1.369 GB, free: 8.816 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.454e-05/0.3449, allocations: 53.69 kB / 1.369 GB, free: 8.758 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.3451, allocations: 326.8 kB / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.613e-05/0.3452, allocations: 39.98 kB / 1.369 GB, free: 8.391 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005019/0.3457, allocations: 0.608 MB / 1.37 GB, free: 7.629 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.3458, allocations: 89.7 kB / 1.37 GB, free: 7.535 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3458, allocations: 0 / 1.37 GB, free: 7.535 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002859/0.3461, allocations: 169.4 kB / 1.37 GB, free: 7.363 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.3461, allocations: 9.656 kB / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.266e-05/0.3462, allocations: 4 kB / 1.37 GB, free: 7.352 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.3462, allocations: 0 / 1.37 GB, free: 7.352 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.297e-05/0.3463, allocations: 11.98 kB / 1.37 GB, free: 7.34 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.3463, allocations: 0 / 1.37 GB, free: 7.34 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.3466, allocations: 75.8 kB / 1.37 GB, free: 7.266 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.3466, allocations: 4 kB / 1.37 GB, free: 7.262 MB / 1.061 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.0001349/0.3467, allocations: 137.8 kB / 1.371 GB, free: 7.117 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.622e-05/0.3467, allocations: 23.78 kB / 1.371 GB, free: 7.094 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.984e-05/0.3468, allocations: 16.72 kB / 1.371 GB, free: 7.07 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3468, allocations: 0 / 1.371 GB, free: 7.07 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3468, allocations: 0 / 1.371 GB, free: 7.07 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3468, allocations: 4 kB / 1.371 GB, free: 7.066 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001476/0.3469, allocations: 129.2 kB / 1.371 GB, free: 6.91 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3469, allocations: 4 kB / 1.371 GB, free: 6.906 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.482e-05/0.347, allocations: 4 kB / 1.371 GB, free: 6.902 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.347, allocations: 3.984 kB / 1.371 GB, free: 6.898 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.347, allocations: 11.94 kB / 1.371 GB, free: 6.887 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.347, allocations: 0 / 1.371 GB, free: 6.887 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.347, allocations: 4 kB / 1.371 GB, free: 6.883 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002809/0.3473, allocations: 185.8 kB / 1.371 GB, free: 6.68 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.792e-05/0.3473, allocations: 7.953 kB / 1.371 GB, free: 6.672 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.3473, allocations: 3.938 kB / 1.371 GB, free: 6.668 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.271e-05/0.3474, allocations: 4 kB / 1.371 GB, free: 6.664 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/0.3474, allocations: 7.984 kB / 1.371 GB, free: 6.656 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.3474, allocations: 4 kB / 1.371 GB, free: 6.652 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001024/0.3475, allocations: 113.7 kB / 1.371 GB, free: 6.543 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3475, allocations: 0 / 1.371 GB, free: 6.543 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003232/0.3478, allocations: 83.8 kB / 1.371 GB, free: 6.461 MB / 1.061 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.0002862/0.3481, allocations: 165.5 kB / 1.371 GB, free: 6.293 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002871/0.3484, allocations: 151.3 kB / 1.371 GB, free: 6.133 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.3484, allocations: 4 kB / 1.371 GB, free: 6.129 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.467e-05/0.3485, allocations: 44.09 kB / 1.371 GB, free: 6.086 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001695/0.3487, allocations: 7.938 kB / 1.371 GB, free: 6.078 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005147/0.3492, allocations: 259.2 kB / 1.372 GB, free: 5.793 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001025/0.3493, allocations: 93.7 kB / 1.372 GB, free: 5.676 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.052e-05/0.3493, allocations: 11.44 kB / 1.372 GB, free: 5.664 MB / 1.061 GB Notification: Performance of SimCode: time 4.91e-07/0.3493, allocations: 0 / 1.372 GB, free: 5.664 MB / 1.061 GB Notification: Performance of Templates: time 0.005158/0.3545, allocations: 2.478 MB / 1.374 GB, free: 3.203 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.511373471003026]