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.001142/0.001142, allocations: 80.45 kB / 19.93 MB, free: 4.484 MB / 18.57 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.00129/0.00129, allocations: 173.9 kB / 23.21 MB, free: 1.203 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 0.9176/0.9176, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.718/1.718, allocations: 377.9 MB / 0.6228 GB, free: 8.633 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 0.9821 GB, free: 2.121 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.813e-05/3.01e-05, allocations: 6.219 kB / 0.9822 GB, free: 2.113 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001763/0.001794, allocations: 1.42 MB / 0.9835 GB, free: 0.6836 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.000641/0.002435, allocations: 458.2 kB / 0.984 GB, free: 240 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.617e-05/0.002471, allocations: 4 kB / 0.984 GB, free: 236 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 8.149e-05/0.002552, allocations: 7.875 kB / 0.984 GB, free: 228 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.584e-05/0.002618, allocations: 15.91 kB / 0.984 GB, free: 212 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006181/0.003236, allocations: 234 kB / 0.9842 GB, free: 15.98 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.003418, allocations: 151.7 kB / 0.9844 GB, free: 15.83 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 4.942e-05/0.003467, allocations: 15.98 kB / 0.9844 GB, free: 15.81 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 8.373e-05/0.003551, allocations: 75.94 kB / 0.9845 GB, free: 15.74 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.826e-05/0.003629, allocations: 39.89 kB / 0.9845 GB, free: 15.7 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.003654, allocations: 12 kB / 0.9845 GB, free: 15.69 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000216/0.00387, allocations: 179.7 kB / 0.9847 GB, free: 15.51 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 6.147e-05/0.003932, allocations: 39.89 kB / 0.9847 GB, free: 15.47 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.253e-05/0.003984, allocations: 35.92 kB / 0.9848 GB, free: 15.44 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.004269, allocations: 275.3 kB / 0.985 GB, free: 15.17 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.004272, allocations: 4 kB / 0.985 GB, free: 15.16 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.212e-06/0.004273, allocations: 0 / 0.985 GB, free: 15.16 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.004277, allocations: 3.938 kB / 0.985 GB, free: 15.16 MB / 0.948 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.0004588/0.004736, allocations: 377.5 kB / 0.9854 GB, free: 14.76 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.004776, allocations: 12.03 kB / 0.9854 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.682e-05/0.004823, allocations: 12.89 kB / 0.9854 GB, free: 14.73 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.005114, allocations: 159.7 kB / 0.9856 GB, free: 14.56 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.005128, allocations: 8.375 kB / 0.9856 GB, free: 14.55 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.005147, allocations: 12.38 kB / 0.9856 GB, free: 14.54 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.005277, allocations: 79.95 kB / 0.9857 GB, free: 14.45 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.005285, allocations: 192 / 0.9857 GB, free: 14.45 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.005294, allocations: 384 / 0.9857 GB, free: 14.45 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.005299, allocations: 384 / 0.9857 GB, free: 14.45 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.372e-05/0.005363, allocations: 47.84 kB / 0.9857 GB, free: 14.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001594/0.005522, allocations: 154.2 kB / 0.9858 GB, free: 14.22 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 8.451e-05/0.005607, allocations: 77.14 kB / 0.9859 GB, free: 14.12 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.316e-05/0.00566, allocations: 53.84 kB / 0.986 GB, free: 14.07 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 9.649e-06/0.00567, allocations: 4 kB / 0.986 GB, free: 14.06 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001463/0.005816, allocations: 109.1 kB / 0.9861 GB, free: 13.94 MB / 0.948 GB Notification: Performance of pre-optimization done (n=14): time 7.31e-07/0.005817, allocations: 0 / 0.9861 GB, free: 13.94 MB / 0.948 GB Notification: Performance of matching and sorting (n=14): time 0.0002588/0.006075, allocations: 189.5 kB / 0.9863 GB, free: 13.75 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.006121, allocations: 81.11 kB / 0.9863 GB, free: 13.65 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.878e-05/0.00621, allocations: 157.7 kB / 0.9865 GB, free: 13.48 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.00623, allocations: 33.7 kB / 0.9865 GB, free: 13.45 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.979e-05/0.006279, allocations: 104.5 kB / 0.9866 GB, free: 13.34 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 4.126e-05/0.006321, allocations: 47.66 kB / 0.9867 GB, free: 13.29 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.992e-05/0.006371, allocations: 49.64 kB / 0.9867 GB, free: 13.23 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.205e-05/0.006453, allocations: 322.8 kB / 0.987 GB, free: 12.91 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.555e-05/0.006498, allocations: 43.98 kB / 0.9871 GB, free: 12.87 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/0.006754, allocations: 0.6002 MB / 0.9876 GB, free: 12.11 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.884e-05/0.006853, allocations: 97.58 kB / 0.9877 GB, free: 12.01 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.006855, allocations: 0 / 0.9877 GB, free: 12.01 MB / 0.948 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001448/0.007, allocations: 153.5 kB / 0.9879 GB, free: 11.86 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.007014, allocations: 4 kB / 0.9879 GB, free: 11.85 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.007032, allocations: 4 kB / 0.9879 GB, free: 11.85 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.007047, allocations: 11.92 kB / 0.9879 GB, free: 11.84 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.148e-05/0.007109, allocations: 11.94 kB / 0.9879 GB, free: 11.82 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.007114, allocations: 0 / 0.9879 GB, free: 11.82 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.00726, allocations: 75.86 kB / 0.988 GB, free: 11.75 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.007268, allocations: 4 kB / 0.988 GB, free: 11.75 MB / 0.948 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 8.688e-05/0.007355, allocations: 138.5 kB / 0.9881 GB, free: 11.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.075e-05/0.007366, allocations: 7.953 kB / 0.9881 GB, free: 11.59 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.293e-05/0.007389, allocations: 16.72 kB / 0.9882 GB, free: 11.58 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.007394, allocations: 12.02 kB / 0.9882 GB, free: 11.57 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.0074, allocations: 7.922 kB / 0.9882 GB, free: 11.56 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.007403, allocations: 0 / 0.9882 GB, free: 11.56 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.855e-05/0.007482, allocations: 137.2 kB / 0.9883 GB, free: 11.39 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-07/0.007482, allocations: 4 kB / 0.9883 GB, free: 11.39 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.625e-05/0.007499, allocations: 15.98 kB / 0.9883 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.0075, allocations: 0 / 0.9883 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.44e-06/0.007505, allocations: 0 / 0.9883 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.007506, allocations: 0 / 0.9883 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.007508, allocations: 7.938 kB / 0.9883 GB, free: 11.37 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001425/0.00765, allocations: 169.9 kB / 0.9885 GB, free: 11.18 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.029e-05/0.007661, allocations: 11.91 kB / 0.9885 GB, free: 11.17 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.007675, allocations: 4 kB / 0.9885 GB, free: 11.16 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.925e-05/0.007695, allocations: 3.984 kB / 0.9885 GB, free: 11.16 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.007734, allocations: 15.88 kB / 0.9885 GB, free: 11.14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.00774, allocations: 11.98 kB / 0.9885 GB, free: 11.13 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.226e-05/0.007793, allocations: 113.8 kB / 0.9886 GB, free: 11.02 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007793, allocations: 0 / 0.9886 GB, free: 11.02 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001898/0.007982, allocations: 71.81 kB / 0.9887 GB, free: 10.95 MB / 0.948 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.0001886/0.008171, allocations: 180.2 kB / 0.9889 GB, free: 10.77 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001938/0.008365, allocations: 163.2 kB / 0.989 GB, free: 10.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.008367, allocations: 0 / 0.989 GB, free: 10.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.318e-05/0.00841, allocations: 39.92 kB / 0.9891 GB, free: 10.56 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.008533, allocations: 12 kB / 0.9891 GB, free: 10.55 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003353/0.008868, allocations: 252.3 kB / 0.9893 GB, free: 10.27 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.525e-05/0.008944, allocations: 89.06 kB / 0.9894 GB, free: 10.15 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.362e-05/0.008967, allocations: 20.5 kB / 0.9894 GB, free: 10.13 MB / 0.948 GB Notification: Performance of SimCode: time 4.21e-07/0.008968, allocations: 0 / 0.9894 GB, free: 10.13 MB / 0.948 GB Notification: Performance of Templates: time 0.003013/0.01198, allocations: 2.501 MB / 0.9919 GB, free: 7.652 MB / 0.948 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/jenkins/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: 7.063803971745074]