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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 104.2 kB / 15.98 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 196.5 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.655/2.655, allocations: 469.8 MB / 0.7427 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 72.75 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.3923, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003191/0.3955, allocations: 1.466 MB / 1.066 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001033/0.3966, allocations: 0.4983 MB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.087e-05/0.3967, allocations: 0 / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.3968, allocations: 7.922 kB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.117e-05/0.3969, allocations: 4 kB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008047/0.3977, allocations: 214.5 kB / 1.066 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002565/0.3979, allocations: 147.7 kB / 1.066 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.419e-05/0.398, allocations: 7.984 kB / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.654e-05/0.3981, allocations: 59.84 kB / 1.066 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.992e-05/0.3982, allocations: 43.83 kB / 1.067 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.3982, allocations: 8 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002596/0.3985, allocations: 167.8 kB / 1.067 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.905e-05/0.3986, allocations: 43.89 kB / 1.067 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.181e-05/0.3987, allocations: 55.73 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.3989, allocations: 164 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.3989, allocations: 0 / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.804e-06/0.3989, allocations: 0 / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.3989, allocations: 0 / 1.067 GB, free: 12.22 MB / 0.8419 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.0006976/0.3996, allocations: 451 kB / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3997, allocations: 8.031 kB / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.937e-05/0.3998, allocations: 12.84 kB / 1.067 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.4, allocations: 204.1 kB / 1.068 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.4001, allocations: 12.38 kB / 1.068 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.766e-05/0.4001, allocations: 16.31 kB / 1.068 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000174/0.4003, allocations: 83.83 kB / 1.068 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.4003, allocations: 192 / 1.068 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.4003, allocations: 11.92 kB / 1.068 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.4003, allocations: 0 / 1.068 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.014e-05/0.4004, allocations: 35.98 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002963/0.4007, allocations: 238.4 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.4008, allocations: 73.25 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.31e-05/0.4009, allocations: 57.8 kB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 9.067e-06/0.401, allocations: 0 / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002302/0.4012, allocations: 126.7 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 9.72e-07/0.4012, allocations: 0 / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.0003881/0.4016, allocations: 193.3 kB / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.4017, allocations: 85.11 kB / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.4018, allocations: 147.7 kB / 1.069 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/0.4019, allocations: 33.7 kB / 1.069 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.143e-05/0.402, allocations: 104.5 kB / 1.069 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.715e-05/0.402, allocations: 39.55 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.22e-05/0.4021, allocations: 53.69 kB / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.4023, allocations: 326.8 kB / 1.069 GB, free: 9.703 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.493e-05/0.4023, allocations: 39.92 kB / 1.069 GB, free: 9.664 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002405/0.4026, allocations: 206.6 kB / 1.069 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.4027, allocations: 89.7 kB / 1.069 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4027, allocations: 0 / 1.069 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002471/0.403, allocations: 165.3 kB / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.403, allocations: 8 kB / 1.07 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/0.403, allocations: 0 / 1.07 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.4031, allocations: 8 kB / 1.07 GB, free: 9.133 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.772e-05/0.4032, allocations: 8 kB / 1.07 GB, free: 9.125 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.4032, allocations: 4 kB / 1.07 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002727/0.4034, allocations: 75.69 kB / 1.07 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.4035, allocations: 11.98 kB / 1.07 GB, free: 9.035 MB / 0.8419 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.0001305/0.4036, allocations: 132 kB / 1.07 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.4036, allocations: 15.84 kB / 1.07 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.532e-05/0.4037, allocations: 16.7 kB / 1.07 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.4037, allocations: 0 / 1.07 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4037, allocations: 0 / 1.07 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4037, allocations: 4 kB / 1.07 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.4039, allocations: 193.6 kB / 1.07 GB, free: 8.625 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.4039, allocations: 7.938 kB / 1.07 GB, free: 8.617 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.071e-05/0.4039, allocations: 4 kB / 1.07 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.4039, allocations: 0 / 1.07 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.404, allocations: 8 kB / 1.07 GB, free: 8.605 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.404, allocations: 0 / 1.07 GB, free: 8.605 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.404, allocations: 3.938 kB / 1.07 GB, free: 8.602 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002509/0.4042, allocations: 185.7 kB / 1.07 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.978e-05/0.4043, allocations: 100.9 kB / 1.07 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.4043, allocations: 0 / 1.07 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.169e-05/0.4044, allocations: 4 kB / 1.07 GB, free: 8.277 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.4044, allocations: 11.98 kB / 1.07 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.4044, allocations: 0 / 1.07 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.692e-05/0.4045, allocations: 112.8 kB / 1.07 GB, free: 8.156 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4045, allocations: 3.938 kB / 1.07 GB, free: 8.152 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003169/0.4049, allocations: 72 kB / 1.071 GB, free: 8.082 MB / 0.8419 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.0002701/0.4051, allocations: 170.5 kB / 1.071 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002761/0.4054, allocations: 167.3 kB / 1.071 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4054, allocations: 0 / 1.071 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 7.237e-05/0.4055, allocations: 44.16 kB / 1.071 GB, free: 7.691 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001706/0.4057, allocations: 15.88 kB / 1.071 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005042/0.4062, allocations: 285.1 kB / 1.071 GB, free: 7.363 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.4065, allocations: 0.7041 MB / 1.072 GB, free: 6.633 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.775e-05/0.4066, allocations: 15.42 kB / 1.072 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.4066, allocations: 4 kB / 1.072 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of Templates: time 0.00471/0.4113, allocations: 2.433 MB / 1.074 GB, free: 4.199 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (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) 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) "" 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