Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 106.3 kB / 16.42 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 192.3 kB / 17.36 MB, free: 5.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.148/1.148, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.195/1.195, allocations: 251.7 MB / 0.51 GB, free: 416 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.398e-05/1.398e-05, allocations: 2.281 kB / 0.7263 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.001801/0.001824, allocations: 1.334 MB / 0.7276 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007151/0.002549, allocations: 360.9 kB / 0.728 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.863e-05/0.002589, allocations: 4 kB / 0.728 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.022e-05/0.002674, allocations: 0 / 0.728 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.488e-05/0.002705, allocations: 7.938 kB / 0.728 GB, free: 3.066 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:127:7-213:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:851:5-931:39:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:499:7-563:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState' contains a call to impure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star'. Notification: Performance of NFTyping.typeClassSections: time 0.0004058/0.00312, allocations: 95.7 kB / 0.7281 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001223/0.003251, allocations: 55.91 kB / 0.7281 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.087e-05/0.003298, allocations: 8 kB / 0.7282 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.362e-05/0.003337, allocations: 23.91 kB / 0.7282 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.8e-05/0.003379, allocations: 19.92 kB / 0.7282 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.003397, allocations: 4 kB / 0.7282 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.003551, allocations: 83.84 kB / 0.7283 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of combineBinaries: time 6.35e-05/0.003622, allocations: 51.56 kB / 0.7283 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 3.154e-05/0.003659, allocations: 27.56 kB / 0.7284 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.563e-05/0.003688, allocations: 12 kB / 0.7284 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of FrontEnd: time 8.405e-06/0.003701, allocations: 0 / 0.7284 GB, free: 2.691 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 (1) * Number of variables: 38 (6) Notification: Performance of Bindings: time 0.0003781/0.004083, allocations: 292.7 kB / 0.7286 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 8.793e-05/0.004176, allocations: 35.89 kB / 0.7287 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.0002625/0.004445, allocations: 228.3 kB / 0.7289 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of simplify1: time 1.145e-05/0.004463, allocations: 7.938 kB / 0.7289 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of Alias: time 6.083e-05/0.004528, allocations: 68.61 kB / 0.729 GB, free: 1.906 MB / 0.5606 GB Notification: Performance of simplify2: time 3.356e-06/0.004536, allocations: 3.984 kB / 0.729 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of Events: time 6.619e-05/0.004607, allocations: 35.81 kB / 0.729 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0001731/0.004786, allocations: 128.1 kB / 0.7291 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of Partitioning: time 9.616e-05/0.004889, allocations: 56.12 kB / 0.7292 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of Causalize: time 0.000948/0.005842, allocations: 1.096 MB / 0.7303 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of After Index Reduction Inline: time 0.0001837/0.006034, allocations: 220.3 kB / 0.7305 GB, free: 320 kB / 0.5606 GB Notification: Performance of Inline: time 0.0003661/0.006407, allocations: 369.3 kB / 0.7308 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of Partitioning: time 1.519e-05/0.006431, allocations: 12.12 kB / 0.7308 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of Cleanup: time 2.726e-05/0.006463, allocations: 27.98 kB / 0.7309 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of Causalize: time 0.001202/0.007669, allocations: 1.583 MB / 0.7324 GB, free: 14.3 MB / 0.5762 GB Error: Internal error NBEquation.Equation.getResidualExp failed for: [ALGO] (38) ($RES_SIM_0) [----] (occ.r, occ.state) := Modelica.Math.Random.Generators.Xorshift1024star.random(Modelica.Math.Random.Utilities.initialStateWithXorshift64star(occ.seed, occ.seed, 33)); [----] occ.occ := false; [----] occ.mu := if occ.occ then occ.one_mu else occ.zero_mu; [----] occ.hold_time := -occ.mu * $FUN_1; [----] occ.tNext := time + occ.hold_time; Error: Internal error NBInitialization.main failed to apply modules!