Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.0009503/0.0009505, allocations: 107.5 kB / 16.38 MB, free: 6.484 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.00111/0.00111, allocations: 190.5 kB / 17.31 MB, free: 5.797 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.152/1.152, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.567/1.567, allocations: 292.3 MB / 0.5496 GB, free: 17.62 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.903e-05/1.904e-05, allocations: 6.219 kB / 0.6729 GB, free: 5.934 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002021/0.002052, allocations: 1.335 MB / 0.6742 GB, free: 4.582 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006077/0.002671, allocations: 363.7 kB / 0.6745 GB, free: 4.223 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.229e-05/0.002703, allocations: 0 / 0.6745 GB, free: 4.223 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 6.742e-05/0.002779, allocations: 7.938 kB / 0.6745 GB, free: 4.215 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.035e-05/0.002804, allocations: 3.938 kB / 0.6745 GB, free: 4.211 MB / 0.545 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.0003595/0.003173, allocations: 83.77 kB / 0.6746 GB, free: 4.129 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.791e-05/0.00328, allocations: 59.91 kB / 0.6747 GB, free: 4.07 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.206e-05/0.003319, allocations: 7.984 kB / 0.6747 GB, free: 4.062 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.84e-05/0.003352, allocations: 19.92 kB / 0.6747 GB, free: 4.043 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 3.461e-05/0.003391, allocations: 15.98 kB / 0.6747 GB, free: 4.027 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.003407, allocations: 4 kB / 0.6747 GB, free: 4.023 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.00354, allocations: 83.84 kB / 0.6748 GB, free: 3.941 MB / 0.545 GB Notification: Performance of combineBinaries: time 6.259e-05/0.003611, allocations: 55.5 kB / 0.6748 GB, free: 3.887 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 1.637e-05/0.003633, allocations: 31.56 kB / 0.6749 GB, free: 3.855 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.134e-05/0.003659, allocations: 8 kB / 0.6749 GB, free: 3.848 MB / 0.545 GB Notification: Performance of FrontEnd: time 7.815e-06/0.003673, allocations: 4 kB / 0.6749 GB, free: 3.844 MB / 0.545 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.0003151/0.003992, allocations: 288.6 kB / 0.6752 GB, free: 3.461 MB / 0.545 GB Notification: Performance of FunctionAlias: time 7.425e-05/0.004072, allocations: 39.92 kB / 0.6752 GB, free: 3.422 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0002182/0.004297, allocations: 236.3 kB / 0.6754 GB, free: 3.164 MB / 0.545 GB Notification: Performance of simplify1: time 8.616e-06/0.004313, allocations: 0 / 0.6754 GB, free: 3.164 MB / 0.545 GB Notification: Performance of Alias: time 5.753e-05/0.004374, allocations: 64.62 kB / 0.6755 GB, free: 3.062 MB / 0.545 GB Notification: Performance of simplify2: time 2.094e-06/0.004381, allocations: 0 / 0.6755 GB, free: 3.062 MB / 0.545 GB Notification: Performance of Events: time 5.295e-05/0.004438, allocations: 31.86 kB / 0.6755 GB, free: 3.031 MB / 0.545 GB Notification: Performance of Detect States: time 0.0002417/0.004685, allocations: 138 kB / 0.6756 GB, free: 2.887 MB / 0.545 GB Notification: Performance of Partitioning: time 7.802e-05/0.004772, allocations: 64.11 kB / 0.6757 GB, free: 2.816 MB / 0.545 GB Notification: Performance of Causalize: time 0.0008433/0.005621, allocations: 1.09 MB / 0.6768 GB, free: 1.715 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.000175/0.005805, allocations: 216.3 kB / 0.677 GB, free: 1.477 MB / 0.545 GB Notification: Performance of Inline: time 0.0003305/0.006142, allocations: 364.3 kB / 0.6773 GB, free: 1.086 MB / 0.545 GB Notification: Performance of Partitioning: time 2.149e-05/0.006171, allocations: 28.06 kB / 0.6773 GB, free: 1.051 MB / 0.545 GB Notification: Performance of Cleanup: time 2.376e-05/0.006199, allocations: 20.14 kB / 0.6774 GB, free: 1.031 MB / 0.545 GB Notification: Performance of Causalize: time 0.001153/0.007357, allocations: 1.597 MB / 0.6789 GB, free: 15.44 MB / 0.5606 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!