Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001944/0.001944, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.002446/0.002446, allocations: 161.6 kB / 23.55 MB, free: 0.8906 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.503/1.503, allocations: 177.1 MB / 203.9 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.705/2.705, allocations: 359 MB / 0.6048 GB, free: 10.93 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 0.7863 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.018e-05/3.238e-05, allocations: 11.03 kB / 0.7863 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002937/0.002969, allocations: 1.422 MB / 0.7877 GB, free: 11.41 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.004265, allocations: 485.3 kB / 0.7882 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.355e-05/0.004309, allocations: 0 / 0.7882 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 8.37e-05/0.004393, allocations: 7.938 kB / 0.7882 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.223e-05/0.004455, allocations: 7.922 kB / 0.7882 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.00089/0.005345, allocations: 240.2 kB / 0.7884 GB, free: 10.69 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.005624, allocations: 156.4 kB / 0.7886 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.987e-05/0.005664, allocations: 2.312 kB / 0.7886 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.00584, allocations: 83.81 kB / 0.7887 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 9.945e-05/0.00594, allocations: 31.95 kB / 0.7887 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.57e-05/0.005975, allocations: 12 kB / 0.7887 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003681/0.006344, allocations: 183.7 kB / 0.7889 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 7.663e-05/0.00642, allocations: 40.42 kB / 0.7889 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 7.866e-05/0.006499, allocations: 35.92 kB / 0.789 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000505/0.007004, allocations: 284.4 kB / 0.7892 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.007007, allocations: 0 / 0.7892 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.142e-06/0.007008, allocations: 0 / 0.7892 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.007014, allocations: 2.156 kB / 0.7892 GB, free: 9.879 MB / 0.7448 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.0006823/0.007696, allocations: 373.6 kB / 0.7896 GB, free: 9.48 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.007747, allocations: 8.031 kB / 0.7896 GB, free: 9.473 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.152e-05/0.007828, allocations: 12.89 kB / 0.7896 GB, free: 9.461 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.008074, allocations: 149.6 kB / 0.7897 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.008091, allocations: 6.438 kB / 0.7898 GB, free: 9.285 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.008122, allocations: 12.38 kB / 0.7898 GB, free: 9.273 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.008308, allocations: 87.88 kB / 0.7899 GB, free: 9.176 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.008315, allocations: 192 / 0.7899 GB, free: 9.176 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.008326, allocations: 4.375 kB / 0.7899 GB, free: 9.172 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.008331, allocations: 1.938 kB / 0.7899 GB, free: 9.172 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.436e-05/0.008425, allocations: 35.92 kB / 0.7899 GB, free: 9.137 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002647/0.00869, allocations: 162.2 kB / 0.79 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.008824, allocations: 73.19 kB / 0.7901 GB, free: 8.855 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.778e-05/0.008912, allocations: 51.19 kB / 0.7902 GB, free: 8.801 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.008925, allocations: 3.938 kB / 0.7902 GB, free: 8.797 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002643/0.009189, allocations: 113 kB / 0.7903 GB, free: 8.668 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=14): time 9.92e-07/0.00919, allocations: 1.75 kB / 0.7903 GB, free: 8.668 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14): time 0.0004138/0.009604, allocations: 193.5 kB / 0.7905 GB, free: 8.473 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.364e-05/0.009687, allocations: 81.11 kB / 0.7905 GB, free: 8.375 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.009857, allocations: 159.4 kB / 0.7907 GB, free: 8.211 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.009903, allocations: 34.73 kB / 0.7907 GB, free: 8.172 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.316e-05/0.009996, allocations: 104.5 kB / 0.7908 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 6.259e-05/0.01006, allocations: 31.75 kB / 0.7909 GB, free: 8.031 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.01017, allocations: 58.12 kB / 0.7909 GB, free: 7.969 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002118/0.01038, allocations: 324.8 kB / 0.7912 GB, free: 7.645 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.807e-05/0.01047, allocations: 39.98 kB / 0.7913 GB, free: 7.605 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006373/0.0111, allocations: 0.6002 MB / 0.7918 GB, free: 6.852 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001872/0.01129, allocations: 97.62 kB / 0.7919 GB, free: 6.75 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.01129, allocations: 0 / 0.7919 GB, free: 6.75 MB / 0.7448 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003192/0.01161, allocations: 169.4 kB / 0.7921 GB, free: 6.578 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.01163, allocations: 10.5 kB / 0.7921 GB, free: 6.57 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/0.01166, allocations: 8 kB / 0.7921 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.816e-05/0.01168, allocations: 3.938 kB / 0.7921 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.982e-05/0.01178, allocations: 15.92 kB / 0.7921 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.01179, allocations: 0 / 0.7921 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.01211, allocations: 74.77 kB / 0.7922 GB, free: 6.473 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.01213, allocations: 4 kB / 0.7922 GB, free: 6.469 MB / 0.7448 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.000171/0.0123, allocations: 135.5 kB / 0.7923 GB, free: 6.328 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.165e-05/0.01234, allocations: 19.91 kB / 0.7924 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.741e-05/0.01238, allocations: 12.78 kB / 0.7924 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.01239, allocations: 5.094 kB / 0.7924 GB, free: 6.297 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.01239, allocations: 0 / 0.7924 GB, free: 6.297 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.0124, allocations: 0 / 0.7924 GB, free: 6.297 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.0126, allocations: 126.1 kB / 0.7925 GB, free: 6.145 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.0126, allocations: 0 / 0.7925 GB, free: 6.145 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.267e-05/0.01264, allocations: 12.78 kB / 0.7925 GB, free: 6.133 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.01265, allocations: 3.984 kB / 0.7925 GB, free: 6.129 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.01266, allocations: 8 kB / 0.7925 GB, free: 6.121 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.01267, allocations: 1.281 kB / 0.7925 GB, free: 6.121 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.01267, allocations: 3.938 kB / 0.7925 GB, free: 6.117 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003305/0.013, allocations: 185.8 kB / 0.7927 GB, free: 5.914 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.166e-05/0.01302, allocations: 8.797 kB / 0.7927 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.01304, allocations: 0 / 0.7927 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.233e-05/0.0131, allocations: 8.953 kB / 0.7927 GB, free: 5.898 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.01316, allocations: 11.94 kB / 0.7927 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-06/0.01317, allocations: 0 / 0.7927 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001218/0.01329, allocations: 118.4 kB / 0.7928 GB, free: 5.773 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01329, allocations: 0 / 0.7928 GB, free: 5.773 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004102/0.0137, allocations: 87.73 kB / 0.7929 GB, free: 5.688 MB / 0.7448 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.0004065/0.01411, allocations: 170.2 kB / 0.7931 GB, free: 5.512 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000369/0.01447, allocations: 155.3 kB / 0.7932 GB, free: 5.348 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.01448, allocations: 7.062 kB / 0.7932 GB, free: 5.344 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.918e-05/0.01457, allocations: 35.98 kB / 0.7933 GB, free: 5.309 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.01478, allocations: 9.562 kB / 0.7933 GB, free: 5.301 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006797/0.01546, allocations: 233.9 kB / 0.7935 GB, free: 5.043 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.01561, allocations: 89.11 kB / 0.7936 GB, free: 4.926 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 6.464e-05/0.01567, allocations: 17.48 kB / 0.7936 GB, free: 4.91 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.115e-05/0.01571, allocations: 14.19 kB / 0.7936 GB, free: 4.898 MB / 0.7448 GB Notification: Performance of SimCode: time 6.92e-07/0.01571, allocations: 0 / 0.7936 GB, free: 4.898 MB / 0.7448 GB Notification: Performance of Templates: time 0.007819/0.02353, allocations: 2.712 MB / 0.7963 GB, free: 2.258 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 7.839559503947385]