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.002123/0.002123, allocations: 106.2 kB / 16.45 MB, free: 6.453 MB / 14.72 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.002119/0.002119, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 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.51/1.51, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.359/3.359, allocations: 0.4899 GB / 0.7915 GB, free: 33.19 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 72.53 kB / 1.149 GB, free: 26.01 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5696/0.5718, allocations: 176.1 MB / 1.321 GB, free: 2.855 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003344/0.5752, allocations: 1.438 MB / 1.323 GB, free: 1.406 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001057/0.5762, allocations: 494.7 kB / 1.323 GB, free: 0.9219 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.962e-05/0.5763, allocations: 0 / 1.323 GB, free: 0.9219 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001024/0.5764, allocations: 7.922 kB / 1.323 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.125e-05/0.5765, allocations: 11.92 kB / 1.323 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008418/0.5773, allocations: 232 kB / 1.323 GB, free: 0.6758 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002684/0.5776, allocations: 147.7 kB / 1.323 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.773e-05/0.5776, allocations: 4 kB / 1.323 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.93e-05/0.5777, allocations: 59.89 kB / 1.324 GB, free: 480 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.5778, allocations: 43.83 kB / 1.324 GB, free: 436 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.5778, allocations: 8 kB / 1.324 GB, free: 428 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003121/0.5782, allocations: 167.8 kB / 1.324 GB, free: 260 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.201e-05/0.5782, allocations: 39.89 kB / 1.324 GB, free: 220 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 8.288e-05/0.5783, allocations: 51.73 kB / 1.324 GB, free: 168 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000426/0.5787, allocations: 235.2 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.5788, allocations: 8 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.212e-06/0.5788, allocations: 0 / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.733e-06/0.5788, allocations: 0 / 1.324 GB, free: 15.93 MB / 1.029 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.0008569/0.5796, allocations: 446.7 kB / 1.324 GB, free: 15.44 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.5797, allocations: 11.98 kB / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.839e-05/0.5797, allocations: 16.84 kB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.5801, allocations: 217.7 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.5801, allocations: 4.375 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.3e-05/0.5801, allocations: 16.38 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.5803, allocations: 91.83 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.5803, allocations: 192 / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.5803, allocations: 3.938 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.5803, allocations: 3.984 kB / 1.325 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.535e-05/0.5804, allocations: 43.91 kB / 1.325 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003209/0.5807, allocations: 226.5 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.5809, allocations: 81.19 kB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.82e-05/0.581, allocations: 45.81 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.581, allocations: 4 kB / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002791/0.5813, allocations: 106.8 kB / 1.325 GB, free: 14.44 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.5813, allocations: 4 kB / 1.325 GB, free: 14.44 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0004256/0.5817, allocations: 193.4 kB / 1.326 GB, free: 14.24 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.371e-05/0.5818, allocations: 85.09 kB / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001746/0.5819, allocations: 151.5 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.582, allocations: 33.7 kB / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.46e-05/0.5821, allocations: 96.52 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.293e-05/0.5821, allocations: 47.62 kB / 1.326 GB, free: 13.8 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.81e-05/0.5822, allocations: 53.62 kB / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001856/0.5824, allocations: 326.8 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.815e-05/0.5825, allocations: 39.98 kB / 1.326 GB, free: 13.37 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002578/0.5827, allocations: 200.1 kB / 1.326 GB, free: 13.12 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.5829, allocations: 97.58 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.5829, allocations: 4 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002759/0.5832, allocations: 165.4 kB / 1.327 GB, free: 12.85 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.5832, allocations: 6.344 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-05/0.5833, allocations: 7.984 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.5833, allocations: 0 / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.441e-05/0.5834, allocations: 11.94 kB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.5834, allocations: 0 / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002899/0.5837, allocations: 71.86 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.5837, allocations: 8 kB / 1.327 GB, free: 12.75 MB / 1.029 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.0001559/0.5838, allocations: 141.8 kB / 1.327 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.5838, allocations: 11.89 kB / 1.327 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.997e-05/0.5839, allocations: 16.7 kB / 1.327 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.5839, allocations: 0 / 1.327 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.5839, allocations: 4 kB / 1.327 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.5839, allocations: 0 / 1.327 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.5841, allocations: 189.5 kB / 1.327 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5841, allocations: 3.938 kB / 1.327 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.714e-05/0.5841, allocations: 11.98 kB / 1.327 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.5841, allocations: 4 kB / 1.327 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.5841, allocations: 4 kB / 1.327 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.5842, allocations: 7.938 kB / 1.327 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.5842, allocations: 0 / 1.327 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.5845, allocations: 177.9 kB / 1.327 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.135e-05/0.5845, allocations: 96.94 kB / 1.327 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.408e-05/0.5846, allocations: 4 kB / 1.327 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.149e-05/0.5846, allocations: 7.984 kB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.5847, allocations: 15.94 kB / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.5847, allocations: 4 kB / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001037/0.5848, allocations: 113.1 kB / 1.328 GB, free: 11.85 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5848, allocations: 0 / 1.328 GB, free: 11.85 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000337/0.5851, allocations: 75.8 kB / 1.328 GB, free: 11.77 MB / 1.029 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.0003249/0.5854, allocations: 169.1 kB / 1.328 GB, free: 11.6 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003159/0.5858, allocations: 164.2 kB / 1.328 GB, free: 11.43 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.5858, allocations: 0 / 1.328 GB, free: 11.43 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.605e-05/0.5858, allocations: 43.92 kB / 1.328 GB, free: 11.39 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001738/0.586, allocations: 3.938 kB / 1.328 GB, free: 11.38 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004978/0.5865, allocations: 223.3 kB / 1.328 GB, free: 11.13 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.5869, allocations: 0.708 MB / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.015e-05/0.587, allocations: 8.672 kB / 1.329 GB, free: 10.39 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.152e-05/0.587, allocations: 19.42 kB / 1.329 GB, free: 10.37 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.587, allocations: 0 / 1.329 GB, free: 10.37 MB / 1.029 GB Notification: Performance of Templates: time 0.007072/0.5941, allocations: 2.529 MB / 1.331 GB, free: 7.871 MB / 1.029 GB " [Timeout remaining time 299] 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] Reference file matches [Calling sys.exit(0), Time elapsed: 10.0981172202155]