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.001035/0.001035, allocations: 89.06 kB / 19.65 MB, free: 276 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.001011/0.001011, allocations: 177.3 kB / 23.02 MB, free: 1.543 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.9618/0.9618, allocations: 177.1 MB / 203.4 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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 2.032/2.032, allocations: 429.5 MB / 0.6732 GB, free: 4.004 MB / 0.6355 GB " [Timeout remaining time 177] 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.815e-06/2.815e-06, allocations: 4 kB / 0.8781 GB, free: 6.324 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.483e-05/2.764e-05, allocations: 2.969 kB / 0.8781 GB, free: 6.32 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002212/0.00224, allocations: 1.472 MB / 0.8796 GB, free: 4.859 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.000626/0.002866, allocations: 487.7 kB / 0.88 GB, free: 4.387 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.83e-05/0.002904, allocations: 0 / 0.88 GB, free: 4.387 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 7.957e-05/0.002984, allocations: 8.359 kB / 0.88 GB, free: 4.379 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.906e-05/0.003043, allocations: 13.86 kB / 0.88 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006651/0.003708, allocations: 239.2 kB / 0.8803 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001852/0.003893, allocations: 151.8 kB / 0.8804 GB, free: 3.984 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.661e-05/0.00393, allocations: 6.531 kB / 0.8804 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 8.134e-05/0.004011, allocations: 79.92 kB / 0.8805 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.835e-05/0.004079, allocations: 35.89 kB / 0.8805 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.759e-05/0.004107, allocations: 12 kB / 0.8805 GB, free: 3.855 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002566/0.004363, allocations: 191.6 kB / 0.8807 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.004417, allocations: 35.91 kB / 0.8808 GB, free: 3.633 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.717e-05/0.004474, allocations: 44.62 kB / 0.8808 GB, free: 3.59 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002927/0.004767, allocations: 243.4 kB / 0.881 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.00477, allocations: 1.656 kB / 0.881 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.212e-06/0.004771, allocations: 0 / 0.881 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.004776, allocations: 0 / 0.881 GB, free: 3.352 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.0004772/0.005253, allocations: 485.1 kB / 0.8815 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.005293, allocations: 12.03 kB / 0.8815 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.646e-05/0.005349, allocations: 16.89 kB / 0.8815 GB, free: 2.812 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.005504, allocations: 144.4 kB / 0.8817 GB, free: 2.645 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.005517, allocations: 16.38 kB / 0.8817 GB, free: 2.629 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.005535, allocations: 8.375 kB / 0.8817 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/0.005646, allocations: 73.55 kB / 0.8818 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.005653, allocations: 192 / 0.8818 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.005663, allocations: 384 / 0.8818 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.00567, allocations: 4.375 kB / 0.8818 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.967e-05/0.00571, allocations: 19.92 kB / 0.8818 GB, free: 2.512 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001684/0.005878, allocations: 176.3 kB / 0.882 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.938e-05/0.005958, allocations: 78.16 kB / 0.882 GB, free: 2.199 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.267e-05/0.006, allocations: 35.41 kB / 0.8821 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 7.414e-06/0.006008, allocations: 8.062 kB / 0.8821 GB, free: 2.148 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001272/0.006135, allocations: 112.3 kB / 0.8822 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 7.41e-07/0.006136, allocations: 0 / 0.8822 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0002321/0.006368, allocations: 125.7 kB / 0.8823 GB, free: 1.887 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.006411, allocations: 81.11 kB / 0.8824 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.006517, allocations: 208.1 kB / 0.8826 GB, free: 1.57 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.006539, allocations: 33.7 kB / 0.8826 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.741e-05/0.006596, allocations: 151.2 kB / 0.8828 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.964e-05/0.006646, allocations: 43.67 kB / 0.8828 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.564e-05/0.006701, allocations: 55.36 kB / 0.8828 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.006818, allocations: 0.5001 MB / 0.8833 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.498e-05/0.006853, allocations: 15.98 kB / 0.8833 GB, free: 0.7422 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002471/0.0071, allocations: 0.5973 MB / 0.8839 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.546e-05/0.007185, allocations: 59.38 kB / 0.884 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.007187, allocations: 0 / 0.884 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001403/0.007327, allocations: 133.4 kB / 0.8841 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.007341, allocations: 4 kB / 0.8841 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.007358, allocations: 4 kB / 0.8841 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.007372, allocations: 3.938 kB / 0.8841 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.494e-05/0.007457, allocations: 19.98 kB / 0.8841 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.007463, allocations: 0 / 0.8841 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.00759, allocations: 55.78 kB / 0.8842 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.0076, allocations: 7.984 kB / 0.8842 GB, free: 15.67 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 8.954e-05/0.007689, allocations: 172.7 kB / 0.8844 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.007705, allocations: 11.95 kB / 0.8844 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.628e-05/0.007731, allocations: 12.78 kB / 0.8844 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.007734, allocations: 7.938 kB / 0.8844 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.007742, allocations: 0 / 0.8844 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.007747, allocations: 11.92 kB / 0.8844 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.368e-05/0.007841, allocations: 140.5 kB / 0.8845 GB, free: 15.28 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.007842, allocations: 0 / 0.8845 GB, free: 15.28 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.571e-05/0.007868, allocations: 11.98 kB / 0.8846 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.007871, allocations: 0 / 0.8846 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.597e-06/0.007879, allocations: 4 kB / 0.8846 GB, free: 15.26 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.007882, allocations: 3.938 kB / 0.8846 GB, free: 15.26 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.007884, allocations: 3.938 kB / 0.8846 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001419/0.008026, allocations: 151.8 kB / 0.8847 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.332e-05/0.008039, allocations: 19.84 kB / 0.8847 GB, free: 15.06 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.008058, allocations: 0 / 0.8847 GB, free: 15.06 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.665e-05/0.008085, allocations: 11.98 kB / 0.8847 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.577e-05/0.00813, allocations: 7.938 kB / 0.8848 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.002e-06/0.008136, allocations: 0 / 0.8848 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.205e-05/0.008198, allocations: 153 kB / 0.8849 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.4e-07/0.008198, allocations: 0 / 0.8849 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000235/0.008433, allocations: 71.86 kB / 0.885 GB, free: 14.82 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.0004562/0.00889, allocations: 171 kB / 0.8851 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001821/0.009072, allocations: 139 kB / 0.8853 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.009074, allocations: 0 / 0.8853 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.8e-05/0.009112, allocations: 35.61 kB / 0.8853 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.00924, allocations: 15.94 kB / 0.8853 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003193/0.00956, allocations: 214.5 kB / 0.8855 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.719e-05/0.009597, allocations: 71.33 kB / 0.8856 GB, free: 14.11 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.16e-05/0.009628, allocations: 4.734 kB / 0.8856 GB, free: 14.1 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.353e-05/0.009652, allocations: 12.5 kB / 0.8856 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of SimCode: time 7.82e-07/0.009653, allocations: 4 kB / 0.8856 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of Templates: time 0.004584/0.01424, allocations: 2.905 MB / 0.8884 GB, free: 11.24 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.23051237501204]