Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00135/0.00135, 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.001424/0.001424, allocations: 213.9 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.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.264/3.264, allocations: 0.4892 GB / 0.7951 GB, free: 35.46 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002081/0.002081, allocations: 66.91 kB / 1.154 GB, free: 25.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3743, allocations: 176.1 MB / 1.326 GB, free: 1.84 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002801/0.3771, allocations: 1.429 MB / 1.328 GB, free: 416 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009089/0.378, allocations: 450.5 kB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.667e-05/0.378, allocations: 4 kB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 7.191e-05/0.3781, allocations: 3.938 kB / 1.328 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.127e-05/0.3782, allocations: 15.91 kB / 1.328 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007656/0.3789, allocations: 246.4 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002285/0.3792, allocations: 151.6 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.612e-05/0.3792, allocations: 4 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.712e-05/0.3793, allocations: 55.84 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.456e-05/0.3794, allocations: 43.83 kB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.3794, allocations: 8 kB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003512/0.3798, allocations: 187.8 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.323e-05/0.3798, allocations: 39.91 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.607e-05/0.3799, allocations: 43.84 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.3803, allocations: 235.3 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3803, allocations: 0 / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3803, allocations: 0 / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.3803, allocations: 0 / 1.329 GB, free: 14.95 MB / 1.029 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.0005962/0.3809, allocations: 377.5 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.3809, allocations: 12.03 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.916e-05/0.381, allocations: 20.83 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.3812, allocations: 146.3 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.3812, allocations: 8.375 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.3813, allocations: 16.38 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.3814, allocations: 79.95 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3814, allocations: 4.172 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.3815, allocations: 7.938 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3815, allocations: 0 / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.273e-05/0.3816, allocations: 43.91 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002603/0.3818, allocations: 150.2 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.3819, allocations: 77.23 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.1e-05/0.382, allocations: 49.81 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/0.382, allocations: 3.938 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.3823, allocations: 109.1 kB / 1.33 GB, free: 13.72 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.3823, allocations: 0 / 1.33 GB, free: 13.72 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003723/0.3827, allocations: 189.4 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.3827, allocations: 97.08 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.3829, allocations: 143.7 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.3829, allocations: 41.69 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.771e-05/0.383, allocations: 100.5 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.3831, allocations: 39.69 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-05/0.3831, allocations: 45.7 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3833, allocations: 326.8 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.995e-05/0.3834, allocations: 51.97 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005015/0.3839, allocations: 0.5993 MB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.384, allocations: 93.64 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.384, allocations: 4 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002566/0.3843, allocations: 165.5 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.3843, allocations: 11.88 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.3843, allocations: 7.984 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.3843, allocations: 0 / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.001e-05/0.3844, allocations: 11.94 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.718e-06/0.3844, allocations: 0 / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.3847, allocations: 79.8 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.3847, allocations: 0 / 1.332 GB, free: 11.52 MB / 1.029 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.0001363/0.3849, allocations: 139 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.3849, allocations: 15.89 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.17e-05/0.3849, allocations: 20.7 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3849, allocations: 0 / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.3849, allocations: 4 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3849, allocations: 0 / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001771/0.3851, allocations: 133.2 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3851, allocations: 0 / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.646e-05/0.3852, allocations: 7.938 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.3852, allocations: 4.094 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.3852, allocations: 3.938 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3852, allocations: 0 / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3852, allocations: 7.984 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.3855, allocations: 181.9 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.899e-05/0.3855, allocations: 11.91 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.3855, allocations: 7.922 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.122e-05/0.3856, allocations: 4 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.3856, allocations: 11.98 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.3856, allocations: 0 / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.082e-05/0.3857, allocations: 113.1 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3857, allocations: 0 / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003134/0.386, allocations: 83.75 kB / 1.333 GB, free: 10.72 MB / 1.029 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.0002481/0.3863, allocations: 164.5 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002801/0.3866, allocations: 163.3 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3866, allocations: 0 / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.707e-05/0.3866, allocations: 35.98 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001616/0.3868, allocations: 8 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004916/0.3873, allocations: 257 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000101/0.3874, allocations: 100.9 kB / 1.333 GB, free: 9.922 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.563e-05/0.3874, allocations: 11.44 kB / 1.333 GB, free: 9.914 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3874, allocations: 0 / 1.333 GB, free: 9.914 MB / 1.029 GB Notification: Performance of Templates: time 0.004794/0.3922, allocations: 2.48 MB / 1.336 GB, free: 7.453 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.633693432901055]