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.001549/0.001549, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.002072/0.002072, allocations: 217.1 kB / 23.01 MB, free: 4.602 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.49/1.49, allocations: 230.6 MB / 256.8 MB, free: 8.027 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.45/3.45, allocations: 0.505 GB / 0.8108 GB, free: 22.09 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.002042/0.002042, allocations: 66.47 kB / 1.178 GB, free: 16.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.431/0.433, allocations: 180.2 MB / 1.354 GB, free: 7.965 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.00283/0.4358, allocations: 1.451 MB / 1.355 GB, free: 6.504 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0009432/0.4368, allocations: 498.2 kB / 1.356 GB, free: 6.016 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.4e-05/0.4368, allocations: 4 kB / 1.356 GB, free: 6.012 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 9.493e-05/0.4369, allocations: 3.938 kB / 1.356 GB, free: 6.008 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.91e-05/0.437, allocations: 11.92 kB / 1.356 GB, free: 5.996 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007853/0.4378, allocations: 242.4 kB / 1.356 GB, free: 5.762 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002288/0.438, allocations: 151.7 kB / 1.356 GB, free: 5.613 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.446e-05/0.438, allocations: 0 / 1.356 GB, free: 5.613 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.258e-05/0.4381, allocations: 55.89 kB / 1.356 GB, free: 5.559 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 9.991e-05/0.4382, allocations: 51.83 kB / 1.356 GB, free: 5.508 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.804e-05/0.4382, allocations: 12 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003281/0.4386, allocations: 195.7 kB / 1.357 GB, free: 5.305 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.985e-05/0.4386, allocations: 35.91 kB / 1.357 GB, free: 5.27 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.383e-05/0.4387, allocations: 55.77 kB / 1.357 GB, free: 5.215 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003442/0.4391, allocations: 243.2 kB / 1.357 GB, free: 4.977 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.4391, allocations: 0 / 1.357 GB, free: 4.977 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4391, allocations: 0 / 1.357 GB, free: 4.977 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.261e-06/0.4391, allocations: 0 / 1.357 GB, free: 4.977 MB / 1.045 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.0006099/0.4397, allocations: 377.6 kB / 1.357 GB, free: 4.574 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.4397, allocations: 12.03 kB / 1.357 GB, free: 4.562 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.627e-05/0.4398, allocations: 8.891 kB / 1.357 GB, free: 4.555 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002192/0.44, allocations: 154.3 kB / 1.357 GB, free: 4.379 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.44, allocations: 8.359 kB / 1.358 GB, free: 4.371 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.827e-05/0.44, allocations: 12.38 kB / 1.358 GB, free: 4.359 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.4402, allocations: 79.95 kB / 1.358 GB, free: 4.27 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.4402, allocations: 192 / 1.358 GB, free: 4.27 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.4402, allocations: 3.938 kB / 1.358 GB, free: 4.266 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.4402, allocations: 8 kB / 1.358 GB, free: 4.258 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.88e-05/0.4403, allocations: 35.92 kB / 1.358 GB, free: 4.223 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002596/0.4406, allocations: 201.6 kB / 1.358 GB, free: 3.98 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.4407, allocations: 73.14 kB / 1.358 GB, free: 3.891 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.719e-05/0.4408, allocations: 53.84 kB / 1.358 GB, free: 3.832 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.4408, allocations: 4 kB / 1.358 GB, free: 3.828 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002474/0.441, allocations: 113 kB / 1.358 GB, free: 3.699 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.002e-06/0.441, allocations: 0 / 1.358 GB, free: 3.699 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0003484/0.4414, allocations: 185.5 kB / 1.358 GB, free: 3.512 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.4415, allocations: 89.11 kB / 1.358 GB, free: 3.406 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.4416, allocations: 155.8 kB / 1.358 GB, free: 3.246 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.4416, allocations: 37.69 kB / 1.359 GB, free: 3.203 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.32e-05/0.4417, allocations: 104.5 kB / 1.359 GB, free: 3.094 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.392e-05/0.4418, allocations: 35.72 kB / 1.359 GB, free: 3.059 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.232e-05/0.4419, allocations: 49.7 kB / 1.359 GB, free: 3.004 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.442, allocations: 326.8 kB / 1.359 GB, free: 2.676 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.9e-05/0.4421, allocations: 43.92 kB / 1.359 GB, free: 2.633 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.4423, allocations: 203.4 kB / 1.359 GB, free: 2.379 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.4425, allocations: 97.58 kB / 1.359 GB, free: 2.277 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4425, allocations: 0 / 1.359 GB, free: 2.277 MB / 1.045 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002335/0.4427, allocations: 165.5 kB / 1.359 GB, free: 2.109 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.4427, allocations: 8 kB / 1.359 GB, free: 2.102 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.4427, allocations: 3.938 kB / 1.359 GB, free: 2.098 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.4428, allocations: 7.984 kB / 1.36 GB, free: 2.09 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.649e-05/0.4428, allocations: 11.92 kB / 1.36 GB, free: 2.078 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.4429, allocations: 8 kB / 1.36 GB, free: 2.07 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002891/0.4431, allocations: 79.73 kB / 1.36 GB, free: 1.992 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.4432, allocations: 4 kB / 1.36 GB, free: 1.988 MB / 1.045 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.0001333/0.4433, allocations: 133.8 kB / 1.36 GB, free: 1.848 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.257e-05/0.4433, allocations: 11.89 kB / 1.36 GB, free: 1.836 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.545e-05/0.4433, allocations: 12.72 kB / 1.36 GB, free: 1.824 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4433, allocations: 4 kB / 1.36 GB, free: 1.82 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4433, allocations: 0 / 1.36 GB, free: 1.82 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.4434, allocations: 0 / 1.36 GB, free: 1.82 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.4435, allocations: 172.6 kB / 1.36 GB, free: 1.609 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4435, allocations: 3.938 kB / 1.36 GB, free: 1.605 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.471e-05/0.4436, allocations: 7.938 kB / 1.36 GB, free: 1.598 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.4436, allocations: 4 kB / 1.36 GB, free: 1.594 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.4436, allocations: 0 / 1.36 GB, free: 1.594 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4436, allocations: 3.984 kB / 1.36 GB, free: 1.59 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4436, allocations: 0 / 1.36 GB, free: 1.59 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.4438, allocations: 177.9 kB / 1.36 GB, free: 1.395 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.258e-05/0.4438, allocations: 15.84 kB / 1.36 GB, free: 1.379 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.4439, allocations: 0 / 1.36 GB, free: 1.379 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.202e-05/0.4439, allocations: 8 kB / 1.36 GB, free: 1.371 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.379e-05/0.444, allocations: 11.92 kB / 1.36 GB, free: 1.359 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.444, allocations: 0 / 1.36 GB, free: 1.359 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.474e-05/0.4441, allocations: 117 kB / 1.36 GB, free: 1.246 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4441, allocations: 4 kB / 1.36 GB, free: 1.242 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003161/0.4444, allocations: 79.8 kB / 1.36 GB, free: 1.164 MB / 1.045 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.0002569/0.4446, allocations: 164.7 kB / 1.36 GB, free: 0.9961 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002833/0.4449, allocations: 157 kB / 1.361 GB, free: 0.832 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4449, allocations: 0 / 1.361 GB, free: 0.832 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 6.801e-05/0.445, allocations: 35.98 kB / 1.361 GB, free: 0.7969 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001677/0.4451, allocations: 15.92 kB / 1.361 GB, free: 0.7812 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004802/0.4456, allocations: 253.1 kB / 1.361 GB, free: 0.5 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.446, allocations: 0.7048 MB / 1.362 GB, free: 15.77 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.752e-05/0.446, allocations: 15.44 kB / 1.362 GB, free: 15.75 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.446, allocations: 0 / 1.362 GB, free: 15.75 MB / 1.061 GB Notification: Performance of Templates: time 0.004813/0.4508, allocations: 2.442 MB / 1.364 GB, free: 13.33 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: 12.583716738008661]