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.001707/0.001707, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.002115/0.002115, allocations: 215.2 kB / 23.01 MB, free: 4.609 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.482/1.482, allocations: 230.6 MB / 256.8 MB, free: 8.055 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.321/3.321, allocations: 0.49 GB / 0.7958 GB, free: 33.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.002045/0.002045, allocations: 72.17 kB / 1.155 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3452, allocations: 176.1 MB / 1.327 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002853/0.348, allocations: 1.45 MB / 1.329 GB, free: 32 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009536/0.349, allocations: 494.3 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.385e-05/0.349, allocations: 0 / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 7.621e-05/0.3491, allocations: 7.875 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.993e-05/0.3492, allocations: 15.92 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007472/0.3499, allocations: 237.4 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.3501, allocations: 147.7 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.655e-05/0.3502, allocations: 0 / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.065e-05/0.3503, allocations: 63.89 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.507e-05/0.3504, allocations: 39.83 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/0.3504, allocations: 12 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003198/0.3507, allocations: 199.7 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.657e-05/0.3508, allocations: 39.91 kB / 1.33 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.044e-05/0.3509, allocations: 59.7 kB / 1.33 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000329/0.3512, allocations: 231.3 kB / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3512, allocations: 0 / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3512, allocations: 0 / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.3512, allocations: 0 / 1.33 GB, free: 14.52 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.0005568/0.3518, allocations: 375.3 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.3518, allocations: 12.03 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.276e-05/0.3519, allocations: 20.84 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.3521, allocations: 150.3 kB / 1.331 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.3521, allocations: 4.375 kB / 1.331 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.3521, allocations: 16.36 kB / 1.331 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.3523, allocations: 83.89 kB / 1.331 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3523, allocations: 192 / 1.331 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.3523, allocations: 7.875 kB / 1.331 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.3523, allocations: 4 kB / 1.331 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.95e-05/0.3524, allocations: 35.98 kB / 1.331 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002548/0.3526, allocations: 197.6 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001238/0.3528, allocations: 77.14 kB / 1.331 GB, free: 13.42 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.602e-05/0.3528, allocations: 49.84 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.3529, allocations: 3.984 kB / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.3531, allocations: 113 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.012e-06/0.3531, allocations: 0 / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003649/0.3535, allocations: 197.4 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.3535, allocations: 85.11 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.3537, allocations: 147.2 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.3537, allocations: 33.7 kB / 1.332 GB, free: 12.74 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.782e-05/0.3538, allocations: 112.4 kB / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.816e-05/0.3538, allocations: 43.67 kB / 1.332 GB, free: 12.58 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.819e-05/0.3539, allocations: 49.7 kB / 1.332 GB, free: 12.53 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3541, allocations: 326.8 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.763e-05/0.3541, allocations: 35.98 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.3544, allocations: 211.8 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.3545, allocations: 97.58 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3545, allocations: 0 / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002458/0.3548, allocations: 165.4 kB / 1.333 GB, free: 11.64 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.3548, allocations: 12 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.3548, allocations: 0 / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.3548, allocations: 4 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.646e-05/0.3549, allocations: 15.98 kB / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.421e-06/0.3549, allocations: 0 / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.3552, allocations: 75.8 kB / 1.333 GB, free: 11.53 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.3552, allocations: 8 kB / 1.333 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.0001297/0.3553, allocations: 139 kB / 1.333 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.3553, allocations: 11.89 kB / 1.333 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.359e-05/0.3554, allocations: 12.72 kB / 1.333 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3554, allocations: 0 / 1.333 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3554, allocations: 4 kB / 1.333 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3554, allocations: 0 / 1.333 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.3556, allocations: 168.6 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3556, allocations: 3.938 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.468e-05/0.3556, allocations: 11.94 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.3556, allocations: 4 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.3556, allocations: 0 / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.3556, allocations: 0 / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3556, allocations: 7.984 kB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.3559, allocations: 183.3 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.94e-05/0.3559, allocations: 11.89 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.3559, allocations: 7.938 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.885e-05/0.3559, allocations: 0 / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.356, allocations: 11.98 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.356, allocations: 4 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.585e-05/0.3561, allocations: 112.8 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3561, allocations: 0 / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003093/0.3564, allocations: 87.8 kB / 1.333 GB, free: 10.68 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.000251/0.3566, allocations: 159 kB / 1.334 GB, free: 10.52 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002656/0.3569, allocations: 151.4 kB / 1.334 GB, free: 10.36 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3569, allocations: 0 / 1.334 GB, free: 10.36 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.076e-05/0.357, allocations: 39.92 kB / 1.334 GB, free: 10.32 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001726/0.3571, allocations: 15.92 kB / 1.334 GB, free: 10.3 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005165/0.3577, allocations: 257.1 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.358, allocations: 0.7082 MB / 1.335 GB, free: 9.281 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.96e-05/0.358, allocations: 15.44 kB / 1.335 GB, free: 9.266 MB / 1.029 GB Notification: Performance of SimCode: time 3.51e-07/0.358, allocations: 0 / 1.335 GB, free: 9.266 MB / 1.029 GB Notification: Performance of Templates: time 0.004747/0.3628, allocations: 2.459 MB / 1.337 GB, free: 6.82 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.628976977983257]