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.007072/0.007072, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001348/0.001349, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.57/1.57, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.645/1.645, allocations: 251.7 MB / 0.5094 GB, free: 3.016 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.001739/0.001739, allocations: 71.89 kB / 0.7258 GB, free: 9.008 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2327, allocations: 104.7 MB / 0.828 GB, free: 204 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003028/0.2358, allocations: 1.548 MB / 0.8295 GB, free: 14.64 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001568/0.2374, allocations: 0.807 MB / 0.8303 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.304e-05/0.2375, allocations: 0 / 0.8303 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.502e-05/0.2375, allocations: 11.86 kB / 0.8303 GB, free: 13.81 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.2377, allocations: 23.8 kB / 0.8303 GB, free: 13.79 MB / 0.6544 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.0006217/0.2383, allocations: 127.6 kB / 0.8305 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001501/0.2385, allocations: 103.6 kB / 0.8306 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.2386, allocations: 12 kB / 0.8306 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.2387, allocations: 51.83 kB / 0.8306 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.247e-05/0.2388, allocations: 51.75 kB / 0.8307 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.2388, allocations: 8 kB / 0.8307 GB, free: 13.44 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.239, allocations: 95.91 kB / 0.8308 GB, free: 13.34 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.011e-05/0.2391, allocations: 19.92 kB / 0.8308 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.607e-05/0.2391, allocations: 39.8 kB / 0.8308 GB, free: 13.29 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002538/0.2394, allocations: 175.4 kB / 0.831 GB, free: 13.11 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2394, allocations: 0 / 0.831 GB, free: 13.11 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2394, allocations: 0 / 0.831 GB, free: 13.11 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.2394, allocations: 0 / 0.831 GB, free: 13.11 MB / 0.6544 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.0008307/0.2402, allocations: 0.5079 MB / 0.8315 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.2403, allocations: 8.031 kB / 0.8315 GB, free: 12.53 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.691e-05/0.2404, allocations: 16.83 kB / 0.8315 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.2405, allocations: 176.1 kB / 0.8317 GB, free: 12.3 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.2405, allocations: 8.359 kB / 0.8317 GB, free: 12.3 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.2406, allocations: 8.375 kB / 0.8317 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/0.2408, allocations: 85.89 kB / 0.8318 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.2408, allocations: 0 / 0.8318 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.2408, allocations: 4 kB / 0.8318 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.2408, allocations: 0 / 0.8318 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.241, allocations: 43.97 kB / 0.8318 GB, free: 12.15 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006377/0.2416, allocations: 340.6 kB / 0.8322 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.2419, allocations: 82.66 kB / 0.8322 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.893e-05/0.242, allocations: 44.83 kB / 0.8323 GB, free: 11.63 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.242, allocations: 0 / 0.8323 GB, free: 11.63 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002531/0.2423, allocations: 107.2 kB / 0.8324 GB, free: 11.52 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.703e-06/0.2423, allocations: 0 / 0.8324 GB, free: 11.52 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0004854/0.2428, allocations: 173.5 kB / 0.8325 GB, free: 11.34 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.2429, allocations: 59.41 kB / 0.8326 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.243, allocations: 140.8 kB / 0.8327 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.243, allocations: 29.7 kB / 0.8328 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.72e-05/0.2431, allocations: 100.1 kB / 0.8329 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.2431, allocations: 27.56 kB / 0.8329 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.028e-05/0.2432, allocations: 29.7 kB / 0.8329 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.2433, allocations: 326.8 kB / 0.8332 GB, free: 10.6 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.854e-05/0.2434, allocations: 35.97 kB / 0.8333 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.2436, allocations: 69.08 kB / 0.8333 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.2437, allocations: 105.1 kB / 0.8334 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2438, allocations: 0 / 0.8334 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002842/0.244, allocations: 137.5 kB / 0.8336 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.2441, allocations: 8 kB / 0.8336 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.2441, allocations: 3.938 kB / 0.8336 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.2441, allocations: 0 / 0.8336 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.2442, allocations: 23.92 kB / 0.8336 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.2443, allocations: 3.984 kB / 0.8336 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.2444, allocations: 20 kB / 0.8336 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.2444, allocations: 7.984 kB / 0.8336 GB, free: 10.15 MB / 0.6544 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.0001116/0.2445, allocations: 129 kB / 0.8337 GB, free: 10.02 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.2445, allocations: 7.906 kB / 0.8338 GB, free: 10.01 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003909/0.2449, allocations: 174.2 kB / 0.8339 GB, free: 9.832 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.245, allocations: 4 kB / 0.8339 GB, free: 9.828 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.245, allocations: 3.938 kB / 0.8339 GB, free: 9.824 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.245, allocations: 4 kB / 0.8339 GB, free: 9.82 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006572/0.2456, allocations: 462.2 kB / 0.8344 GB, free: 9.312 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2456, allocations: 0 / 0.8344 GB, free: 9.312 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.588e-05/0.2457, allocations: 15.98 kB / 0.8344 GB, free: 9.297 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.2458, allocations: 0 / 0.8344 GB, free: 9.297 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.2458, allocations: 4 kB / 0.8344 GB, free: 9.293 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2458, allocations: 0 / 0.8344 GB, free: 9.293 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.2458, allocations: 7.922 kB / 0.8344 GB, free: 9.285 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003236/0.2461, allocations: 253.7 kB / 0.8346 GB, free: 9.023 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.226e-05/0.2462, allocations: 85.02 kB / 0.8347 GB, free: 8.922 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.2462, allocations: 0 / 0.8347 GB, free: 8.922 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.2463, allocations: 15.98 kB / 0.8347 GB, free: 8.906 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.056e-05/0.2464, allocations: 11.92 kB / 0.8347 GB, free: 8.895 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.2464, allocations: 8 kB / 0.8348 GB, free: 8.887 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 8.651e-05/0.2465, allocations: 111.2 kB / 0.8349 GB, free: 8.777 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2465, allocations: 0 / 0.8349 GB, free: 8.777 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003209/0.2468, allocations: 51.84 kB / 0.8349 GB, free: 8.727 MB / 0.6544 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.0003239/0.2472, allocations: 162.4 kB / 0.8351 GB, free: 8.574 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002801/0.2475, allocations: 95.89 kB / 0.8352 GB, free: 8.48 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2475, allocations: 3.938 kB / 0.8352 GB, free: 8.477 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.2476, allocations: 51.97 kB / 0.8352 GB, free: 8.426 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.248, allocations: 19.92 kB / 0.8352 GB, free: 8.406 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005627/0.2486, allocations: 242.1 kB / 0.8355 GB, free: 8.148 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.2489, allocations: 0.708 MB / 0.8362 GB, free: 7.414 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 5.221e-05/0.2489, allocations: 12.5 kB / 0.8362 GB, free: 7.398 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.218e-05/0.249, allocations: 15.42 kB / 0.8362 GB, free: 7.383 MB / 0.6544 GB Notification: Performance of SimCode: time 2.21e-07/0.249, allocations: 0 / 0.8362 GB, free: 7.383 MB / 0.6544 GB Notification: Performance of Templates: time 0.004973/0.254, allocations: 2.014 MB / 0.8381 GB, free: 5.383 MB / 0.6544 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)