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.001304/0.001304, allocations: 104.2 kB / 19.74 MB, free: 2.066 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.001464/0.001464, allocations: 216.1 kB / 23.04 MB, free: 4.844 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.773 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.342/3.342, allocations: 0.49 GB / 0.7959 GB, free: 35.44 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.003016/0.003016, allocations: 64.97 kB / 1.155 GB, free: 25.21 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4778/0.4808, allocations: 176.1 MB / 1.327 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002945/0.4837, allocations: 1.427 MB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0009554/0.4847, allocations: 458.4 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.757e-05/0.4847, allocations: 0 / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 8.068e-05/0.4848, allocations: 11.92 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.085e-05/0.4849, allocations: 7.875 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008505/0.4857, allocations: 235.4 kB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002581/0.486, allocations: 151.8 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 3.976e-05/0.486, allocations: 4 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.27e-05/0.4861, allocations: 63.84 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.421e-05/0.4862, allocations: 35.89 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.047e-05/0.4862, allocations: 12 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003441/0.4866, allocations: 187.8 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.984e-05/0.4867, allocations: 31.91 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.844e-05/0.4867, allocations: 43.8 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004168/0.4872, allocations: 247.2 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.4872, allocations: 0 / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.323e-06/0.4872, allocations: 0 / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.4872, allocations: 4 kB / 1.33 GB, free: 14.1 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.0006446/0.4878, allocations: 373.5 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.4879, allocations: 8.031 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.552e-05/0.4879, allocations: 20.84 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/0.4882, allocations: 156.1 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.4882, allocations: 4.375 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.4882, allocations: 12.38 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.4884, allocations: 83.89 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.4884, allocations: 192 / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.4884, allocations: 3.938 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.4884, allocations: 15.92 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001042/0.4885, allocations: 31.98 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002506/0.4888, allocations: 158.2 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.4889, allocations: 73.19 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.015e-05/0.489, allocations: 49.81 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.489, allocations: 0 / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.4893, allocations: 117 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.4893, allocations: 0 / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003797/0.4896, allocations: 193.9 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/0.4897, allocations: 93.03 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.4899, allocations: 151.5 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.4899, allocations: 33.7 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.137e-05/0.49, allocations: 104.5 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.4901, allocations: 39.69 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.34e-05/0.4901, allocations: 53.69 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4903, allocations: 322.8 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.217e-05/0.4904, allocations: 39.98 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005009/0.4909, allocations: 0.6021 MB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.4911, allocations: 101.6 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4911, allocations: 4 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002745/0.4913, allocations: 161.4 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.4914, allocations: 11.94 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.4914, allocations: 0 / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.4914, allocations: 4 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.993e-05/0.4915, allocations: 8 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.4915, allocations: 4 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.4918, allocations: 75.78 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.4918, allocations: 8 kB / 1.333 GB, free: 10.67 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.0001484/0.4919, allocations: 139.1 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.492, allocations: 15.88 kB / 1.333 GB, free: 10.51 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.12e-05/0.492, allocations: 12.72 kB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.492, allocations: 0 / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.492, allocations: 4 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.492, allocations: 0 / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000152/0.4922, allocations: 133.2 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4922, allocations: 0 / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.555e-05/0.4922, allocations: 8 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4922, allocations: 3.938 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.4922, allocations: 7.938 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4922, allocations: 4 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.4922, allocations: 3.984 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002701/0.4925, allocations: 177.2 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.53e-05/0.4925, allocations: 11.89 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.4926, allocations: 11.94 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.27e-05/0.4926, allocations: 4 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.325e-05/0.4926, allocations: 7.984 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.4927, allocations: 4 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.119e-05/0.4927, allocations: 119.2 kB / 1.334 GB, free: 9.949 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4927, allocations: 0 / 1.334 GB, free: 9.949 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003381/0.4931, allocations: 75.8 kB / 1.334 GB, free: 9.875 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.0002731/0.4934, allocations: 160.2 kB / 1.334 GB, free: 9.711 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003064/0.4937, allocations: 159.3 kB / 1.334 GB, free: 9.543 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4937, allocations: 0 / 1.334 GB, free: 9.543 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.859e-05/0.4937, allocations: 43.92 kB / 1.334 GB, free: 9.5 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001757/0.4939, allocations: 9.703 kB / 1.334 GB, free: 9.492 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005142/0.4944, allocations: 257.1 kB / 1.334 GB, free: 9.207 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.4945, allocations: 96.88 kB / 1.334 GB, free: 9.082 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.743e-05/0.4946, allocations: 15.44 kB / 1.334 GB, free: 9.07 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.4946, allocations: 0 / 1.334 GB, free: 9.07 MB / 1.029 GB Notification: Performance of Templates: time 0.005386/0.5, allocations: 2.482 MB / 1.337 GB, free: 6.605 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/jenkins1/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: 11.838289213832468]