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.001575/0.001575, allocations: 88.72 kB / 19.44 MB, free: 352 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.002005/0.002005, allocations: 157.7 kB / 22.76 MB, free: 1.676 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.541/1.541, allocations: 177.1 MB / 203.1 MB, free: 5.316 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.222/3.222, allocations: 429.6 MB / 0.673 GB, free: 3.863 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 1.833e-06/1.833e-06, allocations: 0 / 0.8775 GB, free: 6.52 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.571e-05/3.754e-05, allocations: 3.984 kB / 0.8776 GB, free: 6.516 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003951/0.003989, allocations: 1.435 MB / 0.879 GB, free: 5.094 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001336/0.005324, allocations: 462 kB / 0.8794 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.108e-05/0.005395, allocations: 1.062 kB / 0.8794 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.005535, allocations: 15.86 kB / 0.8794 GB, free: 4.629 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.043e-05/0.005625, allocations: 3.938 kB / 0.8794 GB, free: 4.625 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.001266/0.006891, allocations: 237.5 kB / 0.8796 GB, free: 4.395 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003681/0.00726, allocations: 151.7 kB / 0.8798 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 6.666e-05/0.007326, allocations: 7.984 kB / 0.8798 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001803/0.007507, allocations: 80.84 kB / 0.8799 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.007635, allocations: 35.61 kB / 0.8799 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.756e-05/0.007682, allocations: 12 kB / 0.8799 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004972/0.00818, allocations: 183.6 kB / 0.8801 GB, free: 3.938 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.008292, allocations: 43.89 kB / 0.8801 GB, free: 3.895 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 9.941e-05/0.008392, allocations: 35.92 kB / 0.8802 GB, free: 3.859 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0006649/0.009057, allocations: 279.2 kB / 0.8804 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.009063, allocations: 0 / 0.8804 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.402e-06/0.009064, allocations: 0 / 0.8804 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.885e-06/0.009072, allocations: 0 / 0.8804 GB, free: 3.586 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.0009409/0.01001, allocations: 373.6 kB / 0.8808 GB, free: 3.188 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.966e-05/0.01007, allocations: 8.688 kB / 0.8808 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.01019, allocations: 17.44 kB / 0.8808 GB, free: 3.164 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.01053, allocations: 160 kB / 0.881 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.01055, allocations: 4.969 kB / 0.881 GB, free: 2.98 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.807e-05/0.01059, allocations: 13.44 kB / 0.881 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.01082, allocations: 79.89 kB / 0.8811 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.01084, allocations: 192 / 0.8811 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.947e-05/0.01086, allocations: 9.906 kB / 0.8811 GB, free: 2.871 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.01086, allocations: 384 / 0.8811 GB, free: 2.871 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.01098, allocations: 39.91 kB / 0.8811 GB, free: 2.832 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000333/0.01131, allocations: 150.3 kB / 0.8813 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.01149, allocations: 77.95 kB / 0.8813 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.01161, allocations: 61.78 kB / 0.8814 GB, free: 2.492 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.01163, allocations: 4.891 kB / 0.8814 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003687/0.012, allocations: 105 kB / 0.8815 GB, free: 2.367 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 9.42e-07/0.012, allocations: 4 kB / 0.8815 GB, free: 2.363 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0005259/0.01253, allocations: 197.5 kB / 0.8817 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.01263, allocations: 85.09 kB / 0.8818 GB, free: 2.062 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.01285, allocations: 149.8 kB / 0.8819 GB, free: 1.906 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.404e-05/0.0129, allocations: 37.69 kB / 0.8819 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.01302, allocations: 100.5 kB / 0.882 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.845e-05/0.01309, allocations: 35.69 kB / 0.8821 GB, free: 1.723 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.01323, allocations: 57.64 kB / 0.8821 GB, free: 1.66 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002275/0.01346, allocations: 322.8 kB / 0.8824 GB, free: 1.336 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.683e-05/0.01354, allocations: 39.98 kB / 0.8825 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.01454, allocations: 0.6041 MB / 0.8831 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.01476, allocations: 97.58 kB / 0.8832 GB, free: 448 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.01477, allocations: 0 / 0.8832 GB, free: 448 kB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003549/0.01512, allocations: 173.4 kB / 0.8833 GB, free: 268 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.01514, allocations: 4 kB / 0.8833 GB, free: 264 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.663e-05/0.01518, allocations: 8.609 kB / 0.8833 GB, free: 256 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.134e-05/0.01521, allocations: 3.938 kB / 0.8833 GB, free: 252 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.01531, allocations: 8 kB / 0.8833 GB, free: 244 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.01532, allocations: 0 / 0.8833 GB, free: 244 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.01568, allocations: 78.81 kB / 0.8834 GB, free: 168 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.0157, allocations: 4 kB / 0.8834 GB, free: 164 kB / 0.8386 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.000185/0.01588, allocations: 137.7 kB / 0.8836 GB, free: 16 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.838e-05/0.01592, allocations: 11.95 kB / 0.8836 GB, free: 4 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.24e-05/0.016, allocations: 20.77 kB / 0.8836 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.01601, allocations: 3.938 kB / 0.8836 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.01602, allocations: 0 / 0.8836 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.01602, allocations: 0 / 0.8836 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002008/0.01622, allocations: 133.2 kB / 0.8837 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.01622, allocations: 0 / 0.8837 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.483e-05/0.01627, allocations: 8 kB / 0.8837 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.01627, allocations: 0 / 0.8837 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.01629, allocations: 4 kB / 0.8837 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.01629, allocations: 0 / 0.8837 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.0163, allocations: 7.875 kB / 0.8837 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003586/0.01665, allocations: 181.9 kB / 0.8839 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.362e-05/0.01668, allocations: 11.91 kB / 0.8839 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.01671, allocations: 7.984 kB / 0.8839 GB, free: 15.58 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.744e-05/0.01675, allocations: 4 kB / 0.8839 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.728e-05/0.01682, allocations: 11.92 kB / 0.8839 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.01683, allocations: 4 kB / 0.8839 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001134/0.01694, allocations: 116.6 kB / 0.8841 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.01694, allocations: 3.938 kB / 0.8841 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003768/0.01732, allocations: 75.81 kB / 0.8841 GB, free: 15.37 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.0003861/0.01771, allocations: 183.2 kB / 0.8843 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003375/0.01804, allocations: 159.3 kB / 0.8845 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01805, allocations: 0 / 0.8845 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 8.059e-05/0.01813, allocations: 35.98 kB / 0.8845 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001861/0.01831, allocations: 8 kB / 0.8845 GB, free: 14.97 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005917/0.01891, allocations: 226.4 kB / 0.8847 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001314/0.01904, allocations: 100.9 kB / 0.8848 GB, free: 14.6 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.12e-05/0.01909, allocations: 16.7 kB / 0.8848 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.904e-05/0.01913, allocations: 16.5 kB / 0.8848 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of SimCode: time 1.252e-06/0.01913, allocations: 0 / 0.8848 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of Templates: time 0.007397/0.02653, allocations: 2.715 MB / 0.8875 GB, free: 11.91 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=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: 8.430742020951584]