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.001604/0.001604, allocations: 105.8 kB / 19.69 MB, free: 2.258 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.001989/0.001989, allocations: 214.6 kB / 23.01 MB, free: 5.109 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.515/1.515, allocations: 230.6 MB / 256.8 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.989/2.989, allocations: 476.7 MB / 0.7714 GB, free: 4.27 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: 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.002089/0.002089, allocations: 66.67 kB / 1.119 GB, free: 40.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3916, allocations: 170 MB / 1.285 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003115/0.3947, allocations: 1.453 MB / 1.286 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.3957, allocations: 0.5023 MB / 1.286 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.202e-05/0.3958, allocations: 0 / 1.286 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 8.919e-05/0.3959, allocations: 3.938 kB / 1.286 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.81e-05/0.3959, allocations: 15.86 kB / 1.286 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008366/0.3968, allocations: 242.9 kB / 1.287 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002623/0.397, allocations: 151.8 kB / 1.287 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.353e-05/0.3971, allocations: 7.922 kB / 1.287 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.383e-05/0.3972, allocations: 55.91 kB / 1.287 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.3973, allocations: 43.83 kB / 1.287 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.26e-05/0.3973, allocations: 12 kB / 1.287 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003398/0.3977, allocations: 191.8 kB / 1.287 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.989e-05/0.3977, allocations: 45.69 kB / 1.287 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.402e-05/0.3978, allocations: 55.72 kB / 1.287 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003727/0.3982, allocations: 235.3 kB / 1.287 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.3982, allocations: 0 / 1.287 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3982, allocations: 0 / 1.287 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.653e-06/0.3982, allocations: 0 / 1.287 GB, free: 8.227 MB / 0.9825 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.0006528/0.3989, allocations: 373.5 kB / 1.288 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3989, allocations: 12.03 kB / 1.288 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.583e-05/0.399, allocations: 12.84 kB / 1.288 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002461/0.3992, allocations: 156.1 kB / 1.288 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.3992, allocations: 12.36 kB / 1.288 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.3993, allocations: 8.375 kB / 1.288 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.3995, allocations: 83.89 kB / 1.288 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3995, allocations: 192 / 1.288 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.3995, allocations: 3.938 kB / 1.288 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3995, allocations: 7.938 kB / 1.288 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.033e-05/0.3996, allocations: 31.98 kB / 1.288 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003185/0.3999, allocations: 213.5 kB / 1.288 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001419/0.4, allocations: 73.14 kB / 1.288 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.265e-05/0.4001, allocations: 57.83 kB / 1.288 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.4001, allocations: 0 / 1.288 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002733/0.4004, allocations: 113.1 kB / 1.289 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 9.12e-07/0.4004, allocations: 0 / 1.289 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0003935/0.4008, allocations: 185.4 kB / 1.289 GB, free: 6.75 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/0.4009, allocations: 85.11 kB / 1.289 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.401, allocations: 152.2 kB / 1.289 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.4011, allocations: 37.69 kB / 1.289 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.367e-05/0.4011, allocations: 108.5 kB / 1.289 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.406e-05/0.4012, allocations: 35.69 kB / 1.289 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.477e-05/0.4013, allocations: 53.7 kB / 1.289 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4015, allocations: 322.8 kB / 1.29 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.182e-05/0.4015, allocations: 43.97 kB / 1.29 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/0.4018, allocations: 199.7 kB / 1.29 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.4019, allocations: 97.58 kB / 1.29 GB, free: 5.527 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4019, allocations: 0 / 1.29 GB, free: 5.527 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002555/0.4022, allocations: 165.4 kB / 1.29 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.4022, allocations: 8 kB / 1.29 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.593e-05/0.4022, allocations: 4 kB / 1.29 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.4023, allocations: 4 kB / 1.29 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.676e-05/0.4023, allocations: 11.92 kB / 1.29 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.4024, allocations: 4 kB / 1.29 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.4026, allocations: 75.8 kB / 1.29 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.4026, allocations: 4 kB / 1.29 GB, free: 5.25 MB / 0.9825 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.0001454/0.4028, allocations: 133.8 kB / 1.29 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.105e-05/0.4028, allocations: 15.83 kB / 1.29 GB, free: 5.094 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.786e-05/0.4029, allocations: 20.66 kB / 1.29 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.4029, allocations: 0 / 1.29 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.4029, allocations: 4 kB / 1.29 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4029, allocations: 4 kB / 1.29 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.403, allocations: 168.6 kB / 1.29 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4031, allocations: 3.938 kB / 1.29 GB, free: 4.852 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.286e-05/0.4031, allocations: 4 kB / 1.29 GB, free: 4.848 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.4031, allocations: 4 kB / 1.29 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.4031, allocations: 0 / 1.29 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.4031, allocations: 3.984 kB / 1.29 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4031, allocations: 0 / 1.29 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000269/0.4034, allocations: 193 kB / 1.291 GB, free: 4.633 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.023e-05/0.4034, allocations: 15.83 kB / 1.291 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.4034, allocations: 4 kB / 1.291 GB, free: 4.613 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.716e-05/0.4035, allocations: 4 kB / 1.291 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.407e-05/0.4035, allocations: 7.984 kB / 1.291 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/0.4035, allocations: 0 / 1.291 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.958e-05/0.4036, allocations: 119.2 kB / 1.291 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.4036, allocations: 0 / 1.291 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003446/0.4039, allocations: 75.86 kB / 1.291 GB, free: 4.41 MB / 0.9825 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.0002735/0.4042, allocations: 163.1 kB / 1.291 GB, free: 4.242 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003001/0.4045, allocations: 159.3 kB / 1.291 GB, free: 4.074 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.4045, allocations: 4 kB / 1.291 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.218e-05/0.4046, allocations: 40.09 kB / 1.291 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001775/0.4048, allocations: 16.52 kB / 1.291 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005217/0.4053, allocations: 249.2 kB / 1.291 GB, free: 3.742 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004102/0.4057, allocations: 0.7041 MB / 1.292 GB, free: 3.012 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.222e-05/0.4057, allocations: 19.42 kB / 1.292 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.4057, allocations: 0 / 1.292 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of Templates: time 0.005232/0.411, allocations: 2.447 MB / 1.295 GB, free: 0.5625 MB / 0.9825 GB " [Timeout remaining time 299] 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/jenkins1/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: 11.781963578017894]