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.002496/0.002496, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 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.002813/0.002813, allocations: 173.2 kB / 22.76 MB, free: 1.664 MB / 18.57 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.627/1.627, allocations: 177.1 MB / 203.1 MB, free: 5.625 MB / 186.7 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.454/3.454, allocations: 429.5 MB / 0.6729 GB, free: 4.035 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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.314e-06/2.314e-06, allocations: 0 / 0.8774 GB, free: 6.727 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 5.143e-05/5.374e-05, allocations: 2.312 kB / 0.8774 GB, free: 6.723 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003026/0.00308, allocations: 1.451 MB / 0.8788 GB, free: 5.289 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.004147, allocations: 483.4 kB / 0.8793 GB, free: 4.82 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.6e-05/0.004183, allocations: 0 / 0.8793 GB, free: 4.82 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 9.49e-05/0.004278, allocations: 7.922 kB / 0.8793 GB, free: 4.812 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.043e-05/0.004349, allocations: 9.125 kB / 0.8793 GB, free: 4.805 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008354/0.005184, allocations: 248.3 kB / 0.8795 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002589/0.005443, allocations: 147.7 kB / 0.8797 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.174e-05/0.005485, allocations: 4 kB / 0.8797 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.005614, allocations: 76.59 kB / 0.8797 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.644e-05/0.00571, allocations: 41.47 kB / 0.8798 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.673e-05/0.005747, allocations: 8 kB / 0.8798 GB, free: 4.293 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003569/0.006104, allocations: 183.7 kB / 0.88 GB, free: 4.113 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 8.531e-05/0.006189, allocations: 39.89 kB / 0.88 GB, free: 4.074 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.607e-05/0.006265, allocations: 34.7 kB / 0.88 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0004705/0.006736, allocations: 279.3 kB / 0.8803 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.00674, allocations: 0 / 0.8803 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.482e-06/0.006741, allocations: 0 / 0.8803 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.006747, allocations: 3.938 kB / 0.8803 GB, free: 3.766 MB / 0.8386 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.0008539/0.007601, allocations: 487.5 kB / 0.8808 GB, free: 3.25 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.007643, allocations: 9.781 kB / 0.8808 GB, free: 3.242 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.98e-05/0.007723, allocations: 20.84 kB / 0.8808 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.007995, allocations: 156.9 kB / 0.881 GB, free: 3.043 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.008013, allocations: 4.375 kB / 0.881 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.213e-05/0.008045, allocations: 12.38 kB / 0.881 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000162/0.008207, allocations: 74.23 kB / 0.881 GB, free: 2.941 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.00822, allocations: 8.125 kB / 0.8811 GB, free: 2.934 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.008232, allocations: 1.094 kB / 0.8811 GB, free: 2.934 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.008238, allocations: 1.188 kB / 0.8811 GB, free: 2.934 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.606e-05/0.008324, allocations: 35.91 kB / 0.8811 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002851/0.008609, allocations: 176.3 kB / 0.8813 GB, free: 2.688 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.008752, allocations: 86.11 kB / 0.8813 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.563e-05/0.008838, allocations: 47.52 kB / 0.8814 GB, free: 2.523 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.008851, allocations: 0 / 0.8814 GB, free: 2.523 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002104/0.009061, allocations: 115.6 kB / 0.8815 GB, free: 2.391 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 9.12e-07/0.009062, allocations: 3.938 kB / 0.8815 GB, free: 2.387 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003626/0.009425, allocations: 141.5 kB / 0.8816 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.958e-05/0.009504, allocations: 89.05 kB / 0.8817 GB, free: 2.137 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.009711, allocations: 220.1 kB / 0.8819 GB, free: 1.906 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.009751, allocations: 33.7 kB / 0.882 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.00987, allocations: 151.2 kB / 0.8821 GB, free: 1.711 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.433e-05/0.009934, allocations: 43.69 kB / 0.8821 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.01004, allocations: 59.36 kB / 0.8822 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002777/0.01032, allocations: 0.5079 MB / 0.8827 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.379e-05/0.01038, allocations: 24 kB / 0.8827 GB, free: 1.059 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005267/0.01091, allocations: 0.6069 MB / 0.8833 GB, free: 284 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.01107, allocations: 95.22 kB / 0.8834 GB, free: 180 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.01107, allocations: 0 / 0.8834 GB, free: 180 kB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002547/0.01132, allocations: 145.5 kB / 0.8835 GB, free: 28 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.01134, allocations: 4 kB / 0.8835 GB, free: 24 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.52e-05/0.01137, allocations: 4 kB / 0.8836 GB, free: 20 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.01139, allocations: 7.938 kB / 0.8836 GB, free: 12 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.01153, allocations: 19.98 kB / 0.8836 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.01153, allocations: 0.625 kB / 0.8836 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.01177, allocations: 47.84 kB / 0.8836 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.01178, allocations: 7.938 kB / 0.8836 GB, free: 15.94 MB / 0.8542 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.0001709/0.01195, allocations: 180.5 kB / 0.8838 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.122e-05/0.01198, allocations: 15.94 kB / 0.8838 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.919e-05/0.01202, allocations: 8.781 kB / 0.8838 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.01203, allocations: 7.938 kB / 0.8838 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.01203, allocations: 0 / 0.8838 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.01204, allocations: 0 / 0.8838 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.01222, allocations: 152.6 kB / 0.884 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.01222, allocations: 0 / 0.884 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.667e-05/0.01226, allocations: 8 kB / 0.884 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.01226, allocations: 0 / 0.884 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.01227, allocations: 4 kB / 0.884 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.01227, allocations: 4 kB / 0.884 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.01228, allocations: 7.922 kB / 0.884 GB, free: 15.51 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000263/0.01254, allocations: 168 kB / 0.8842 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.801e-05/0.01257, allocations: 19.84 kB / 0.8842 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.01259, allocations: 0 / 0.8842 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.165e-05/0.01264, allocations: 4 kB / 0.8842 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.764e-05/0.0127, allocations: 16 kB / 0.8842 GB, free: 15.28 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.01271, allocations: 4 kB / 0.8842 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001196/0.01283, allocations: 152.9 kB / 0.8843 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.1e-08/0.01283, allocations: 0 / 0.8843 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003339/0.01316, allocations: 75.88 kB / 0.8844 GB, free: 15.05 MB / 0.8542 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.0003106/0.01347, allocations: 181.2 kB / 0.8846 GB, free: 14.87 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002981/0.01377, allocations: 147 kB / 0.8847 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01377, allocations: 0 / 0.8847 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 7.38e-05/0.01385, allocations: 39.61 kB / 0.8848 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001653/0.01401, allocations: 8 kB / 0.8848 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004751/0.01449, allocations: 218.6 kB / 0.885 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.01461, allocations: 96.97 kB / 0.8851 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.429e-05/0.01465, allocations: 12.72 kB / 0.8851 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.97e-05/0.01468, allocations: 12.5 kB / 0.8851 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of SimCode: time 4.11e-07/0.01468, allocations: 0 / 0.8851 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of Templates: time 0.00716/0.02184, allocations: 2.706 MB / 0.8877 GB, free: 11.62 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 240] 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: 8.831641397904605]