Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002265/0.002265, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.529/1.529, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.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.62/1.62, allocations: 251.7 MB / 0.5092 GB, free: 3.238 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 63.91 kB / 0.6223 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4533/0.455, allocations: 104.7 MB / 0.7245 GB, free: 12.96 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002582/0.4576, allocations: 1.536 MB / 0.726 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.459, allocations: 0.8339 MB / 0.7268 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.142e-05/0.459, allocations: 0 / 0.7268 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.015e-05/0.4591, allocations: 3.938 kB / 0.7268 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.137e-05/0.4592, allocations: 15.81 kB / 0.7268 GB, free: 10.55 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:2:1-32:29:writable] Warning: Pure function 'Buildings.Occupants.BaseClasses.binaryVariableGeneration' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0005249/0.4597, allocations: 139.5 kB / 0.727 GB, free: 10.41 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.4598, allocations: 99.69 kB / 0.7271 GB, free: 10.32 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.004e-05/0.4599, allocations: 12 kB / 0.7271 GB, free: 10.3 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.46, allocations: 43.84 kB / 0.7271 GB, free: 10.26 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.834e-05/0.4601, allocations: 47.75 kB / 0.7272 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.039e-05/0.4602, allocations: 8 kB / 0.7272 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.4603, allocations: 99.84 kB / 0.7273 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.866e-05/0.4604, allocations: 19.92 kB / 0.7273 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.418e-05/0.4604, allocations: 43.78 kB / 0.7273 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002318/0.4607, allocations: 161.5 kB / 0.7275 GB, free: 9.891 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.4607, allocations: 4 kB / 0.7275 GB, free: 9.887 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.342e-06/0.4607, allocations: 0 / 0.7275 GB, free: 9.887 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.4607, allocations: 0 / 0.7275 GB, free: 9.887 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007426/0.4614, allocations: 0.5001 MB / 0.728 GB, free: 9.32 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.4615, allocations: 12.03 kB / 0.728 GB, free: 9.309 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/0.4615, allocations: 8.844 kB / 0.728 GB, free: 9.301 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.4617, allocations: 184.1 kB / 0.7282 GB, free: 9.082 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.4617, allocations: 4.375 kB / 0.7282 GB, free: 9.078 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.4617, allocations: 16.36 kB / 0.7282 GB, free: 9.062 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.4619, allocations: 81.95 kB / 0.7283 GB, free: 8.977 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.462, allocations: 0 / 0.7283 GB, free: 8.977 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.462, allocations: 3.938 kB / 0.7283 GB, free: 8.973 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.462, allocations: 0 / 0.7283 GB, free: 8.973 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.4621, allocations: 51.97 kB / 0.7283 GB, free: 8.922 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005267/0.4627, allocations: 332.7 kB / 0.7286 GB, free: 8.547 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.4629, allocations: 78.67 kB / 0.7287 GB, free: 8.461 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9e-05/0.463, allocations: 40.83 kB / 0.7288 GB, free: 8.418 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.463, allocations: 0 / 0.7288 GB, free: 8.418 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002445/0.4633, allocations: 107.3 kB / 0.7289 GB, free: 8.301 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.453e-06/0.4633, allocations: 0 / 0.7289 GB, free: 8.301 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0004271/0.4637, allocations: 177.7 kB / 0.729 GB, free: 8.121 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.4638, allocations: 55.39 kB / 0.7291 GB, free: 8.055 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.4639, allocations: 149 kB / 0.7292 GB, free: 7.902 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.4639, allocations: 25.7 kB / 0.7293 GB, free: 7.871 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.825e-05/0.464, allocations: 104 kB / 0.7294 GB, free: 7.766 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.464, allocations: 31.64 kB / 0.7294 GB, free: 7.734 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.909e-05/0.4641, allocations: 37.58 kB / 0.7294 GB, free: 7.691 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.4642, allocations: 326.8 kB / 0.7297 GB, free: 7.363 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.037e-05/0.4643, allocations: 27.98 kB / 0.7298 GB, free: 7.336 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.927e-05/0.4644, allocations: 69.12 kB / 0.7298 GB, free: 7.25 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.4646, allocations: 109 kB / 0.7299 GB, free: 7.125 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.4646, allocations: 0 / 0.7299 GB, free: 7.125 MB / 0.545 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002516/0.4649, allocations: 133.4 kB / 0.7301 GB, free: 6.988 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.4649, allocations: 12.09 kB / 0.7301 GB, free: 6.977 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.4649, allocations: 0 / 0.7301 GB, free: 6.977 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.4649, allocations: 4 kB / 0.7301 GB, free: 6.973 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.465, allocations: 19.92 kB / 0.7301 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.4651, allocations: 7.984 kB / 0.7301 GB, free: 6.945 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.4652, allocations: 19.84 kB / 0.7301 GB, free: 6.926 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.4652, allocations: 7.984 kB / 0.7301 GB, free: 6.918 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001049/0.4653, allocations: 129.7 kB / 0.7302 GB, free: 6.781 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.258e-05/0.4653, allocations: 11.91 kB / 0.7303 GB, free: 6.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003607/0.4657, allocations: 170.3 kB / 0.7304 GB, free: 6.598 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.4657, allocations: 0 / 0.7304 GB, free: 6.598 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.4657, allocations: 0 / 0.7304 GB, free: 6.598 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.4657, allocations: 0 / 0.7304 GB, free: 6.598 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006293/0.4664, allocations: 464.8 kB / 0.7309 GB, free: 6.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.4664, allocations: 4 kB / 0.7309 GB, free: 6.086 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.332e-05/0.4665, allocations: 15.98 kB / 0.7309 GB, free: 6.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.4665, allocations: 0 / 0.7309 GB, free: 6.07 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.4665, allocations: 7.938 kB / 0.7309 GB, free: 6.062 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.4665, allocations: 4 kB / 0.7309 GB, free: 6.059 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4665, allocations: 3.938 kB / 0.7309 GB, free: 6.055 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003176/0.4668, allocations: 243.3 kB / 0.7311 GB, free: 5.801 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.362e-05/0.4669, allocations: 96.86 kB / 0.7312 GB, free: 5.688 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.4669, allocations: 4 kB / 0.7312 GB, free: 5.684 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.4671, allocations: 11.98 kB / 0.7312 GB, free: 5.672 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.4671, allocations: 11.92 kB / 0.7312 GB, free: 5.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.4671, allocations: 8 kB / 0.7313 GB, free: 5.652 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.351e-05/0.4672, allocations: 107.2 kB / 0.7314 GB, free: 5.547 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4672, allocations: 0 / 0.7314 GB, free: 5.547 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003076/0.4675, allocations: 44 kB / 0.7314 GB, free: 5.504 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003032/0.4679, allocations: 165.4 kB / 0.7316 GB, free: 5.352 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002577/0.4681, allocations: 103.8 kB / 0.7317 GB, free: 5.25 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.614e-06/0.4681, allocations: 0 / 0.7317 GB, free: 5.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.4683, allocations: 55.92 kB / 0.7317 GB, free: 5.195 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.4686, allocations: 22.67 kB / 0.7317 GB, free: 5.176 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005369/0.4691, allocations: 242 kB / 0.732 GB, free: 4.918 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.4694, allocations: 0.7041 MB / 0.7327 GB, free: 4.188 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.846e-05/0.4695, allocations: 4.562 kB / 0.7327 GB, free: 4.18 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.985e-05/0.4695, allocations: 19.42 kB / 0.7327 GB, free: 4.16 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4695, allocations: 0 / 0.7327 GB, free: 4.16 MB / 0.545 GB Notification: Performance of Templates: time 0.004989/0.4745, allocations: 2.005 MB / 0.7346 GB, free: 2.16 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)