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.001782/0.001782, allocations: 85.11 kB / 19.18 MB, free: 2.527 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.002373/0.002373, allocations: 165.3 kB / 22.46 MB, free: 5.359 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.564/1.564, allocations: 177.1 MB / 202.8 MB, free: 9.188 MB / 190.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.341/3.341, allocations: 389 MB / 0.633 GB, free: 1.055 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 2.615e-06/2.615e-06, allocations: 0 / 1 GB, free: 7.387 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.794e-05/5.056e-05, allocations: 5.797 kB / 1 GB, free: 7.383 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003532/0.003582, allocations: 1.438 MB / 1.001 GB, free: 5.938 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.004744, allocations: 454.2 kB / 1.002 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.896e-05/0.004793, allocations: 0 / 1.002 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.004912, allocations: 11.92 kB / 1.002 GB, free: 5.48 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.561e-05/0.004998, allocations: 7.875 kB / 1.002 GB, free: 5.473 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.006011, allocations: 247 kB / 1.002 GB, free: 5.234 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.00032/0.006331, allocations: 155.7 kB / 1.002 GB, free: 5.082 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 6.789e-05/0.006399, allocations: 0 / 1.002 GB, free: 5.082 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.006555, allocations: 79.88 kB / 1.002 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.006658, allocations: 31.95 kB / 1.002 GB, free: 4.973 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.821e-05/0.006696, allocations: 12 kB / 1.002 GB, free: 4.961 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003499/0.007046, allocations: 191.7 kB / 1.003 GB, free: 4.773 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.012e-05/0.007126, allocations: 27.92 kB / 1.003 GB, free: 4.746 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.202e-05/0.007218, allocations: 43.89 kB / 1.003 GB, free: 4.703 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004595/0.007678, allocations: 279.2 kB / 1.003 GB, free: 4.43 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.007684, allocations: 4 kB / 1.003 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.713e-06/0.007686, allocations: 0 / 1.003 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.309e-05/0.007699, allocations: 0 / 1.003 GB, free: 4.426 MB / 0.9512 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.0007073/0.008407, allocations: 377.5 kB / 1.003 GB, free: 4.023 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.008456, allocations: 8.031 kB / 1.003 GB, free: 4.016 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.263e-05/0.008518, allocations: 16.84 kB / 1.003 GB, free: 4 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002733/0.008792, allocations: 149.6 kB / 1.003 GB, free: 3.828 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.008814, allocations: 8.375 kB / 1.003 GB, free: 3.82 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.008848, allocations: 8.375 kB / 1.004 GB, free: 3.812 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.009044, allocations: 79.95 kB / 1.004 GB, free: 3.723 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.009055, allocations: 4.188 kB / 1.004 GB, free: 3.719 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.009067, allocations: 384 / 1.004 GB, free: 3.719 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.009075, allocations: 12.25 kB / 1.004 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.685e-05/0.009162, allocations: 39.91 kB / 1.004 GB, free: 3.668 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002584/0.00942, allocations: 162.2 kB / 1.004 GB, free: 3.477 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001427/0.009563, allocations: 81.17 kB / 1.004 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.935e-05/0.009652, allocations: 45.81 kB / 1.004 GB, free: 3.328 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.009667, allocations: 0 / 1.004 GB, free: 3.328 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002697/0.009936, allocations: 109.1 kB / 1.004 GB, free: 3.203 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=14): time 1.163e-06/0.009938, allocations: 0 / 1.004 GB, free: 3.203 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14): time 0.0003935/0.01033, allocations: 190 kB / 1.004 GB, free: 3.012 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.648e-05/0.01041, allocations: 85.09 kB / 1.004 GB, free: 2.91 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.01056, allocations: 159.4 kB / 1.004 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.0106, allocations: 33.7 kB / 1.004 GB, free: 2.707 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.636e-05/0.01069, allocations: 100.5 kB / 1.005 GB, free: 2.602 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.86e-05/0.01075, allocations: 39.69 kB / 1.005 GB, free: 2.562 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.766e-05/0.01083, allocations: 49.7 kB / 1.005 GB, free: 2.508 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.01099, allocations: 322.8 kB / 1.005 GB, free: 2.184 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.448e-05/0.01108, allocations: 43.97 kB / 1.005 GB, free: 2.141 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005202/0.0116, allocations: 0.6002 MB / 1.006 GB, free: 1.387 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001572/0.01176, allocations: 105.5 kB / 1.006 GB, free: 1.277 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.01176, allocations: 0 / 1.006 GB, free: 1.277 MB / 0.9512 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002375/0.012, allocations: 153.5 kB / 1.006 GB, free: 1.121 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.01202, allocations: 11.98 kB / 1.006 GB, free: 1.109 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.01204, allocations: 0 / 1.006 GB, free: 1.109 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.01206, allocations: 7.938 kB / 1.006 GB, free: 1.102 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.093e-05/0.01214, allocations: 11.94 kB / 1.006 GB, free: 1.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.01216, allocations: 4.156 kB / 1.006 GB, free: 1.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.01244, allocations: 75.8 kB / 1.006 GB, free: 1.012 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.01246, allocations: 7.984 kB / 1.006 GB, free: 1.004 MB / 0.9512 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.0001375/0.01259, allocations: 138.3 kB / 1.006 GB, free: 0.8594 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.33e-05/0.01262, allocations: 15.94 kB / 1.006 GB, free: 0.8438 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.158e-05/0.01266, allocations: 24.69 kB / 1.006 GB, free: 0.8203 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.01266, allocations: 7.938 kB / 1.006 GB, free: 0.8125 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.01267, allocations: 0 / 1.006 GB, free: 0.8125 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.01267, allocations: 0 / 1.006 GB, free: 0.8125 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/0.01282, allocations: 129.3 kB / 1.006 GB, free: 0.6562 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.01282, allocations: 0 / 1.006 GB, free: 0.6562 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.555e-05/0.01285, allocations: 8 kB / 1.006 GB, free: 0.6484 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.01285, allocations: 0 / 1.006 GB, free: 0.6484 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.417e-05/0.01288, allocations: 4 kB / 1.006 GB, free: 0.6445 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.01288, allocations: 0 / 1.006 GB, free: 0.6445 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.01288, allocations: 3.938 kB / 1.006 GB, free: 0.6406 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.01314, allocations: 181.8 kB / 1.006 GB, free: 452 kB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 2.084e-05/0.01316, allocations: 19.88 kB / 1.006 GB, free: 432 kB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.01318, allocations: 0 / 1.006 GB, free: 432 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.13e-05/0.01322, allocations: 7.938 kB / 1.006 GB, free: 424 kB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.345e-05/0.01328, allocations: 11.92 kB / 1.006 GB, free: 412 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.01328, allocations: 4 kB / 1.006 GB, free: 408 kB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.254e-05/0.01338, allocations: 113.7 kB / 1.007 GB, free: 296 kB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.01338, allocations: 0 / 1.007 GB, free: 296 kB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003288/0.01371, allocations: 71.88 kB / 1.007 GB, free: 224 kB / 0.9512 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.0003129/0.01402, allocations: 177.1 kB / 1.007 GB, free: 36 kB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002669/0.01429, allocations: 159.3 kB / 1.007 GB, free: 15.87 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01429, allocations: 0 / 1.007 GB, free: 15.87 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.662e-05/0.01436, allocations: 39.92 kB / 1.007 GB, free: 15.83 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001753/0.01454, allocations: 8 kB / 1.007 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004793/0.01502, allocations: 226.6 kB / 1.007 GB, free: 15.57 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.01512, allocations: 89.11 kB / 1.007 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.692e-05/0.01517, allocations: 12.72 kB / 1.007 GB, free: 15.44 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.0152, allocations: 20.5 kB / 1.007 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of SimCode: time 6.11e-07/0.0152, allocations: 0 / 1.007 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of Templates: time 0.006606/0.02181, allocations: 2.691 MB / 1.01 GB, free: 12.78 MB / 0.9669 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/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 9.293937388807535]