Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 105.4 kB / 15.7 MB, free: 24 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.001046/0.001046, allocations: 198.9 kB / 16.64 MB, free: 6.453 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.542/1.542, allocations: 205.1 MB / 222.5 MB, free: 4.582 MB / 174.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.777/1.777, allocations: 292.3 MB / 0.549 GB, free: 12.73 MB / 462.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.001934/0.001934, allocations: 71.38 kB / 0.6723 GB, free: 25.86 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3298, allocations: 114.5 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.004596/0.3345, allocations: 1.515 MB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002228/0.3368, allocations: 0.8043 MB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.3369, allocations: 0 / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 6.146e-05/0.3371, allocations: 3.938 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.3372, allocations: 15.8 kB / 0.7864 GB, free: 10.39 MB / 0.6075 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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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.0009408/0.3382, allocations: 123.6 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.3384, allocations: 99.69 kB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.3385, allocations: 8 kB / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001586/0.3387, allocations: 47.78 kB / 0.7867 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.3388, allocations: 43.81 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.113e-05/0.3389, allocations: 4 kB / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002627/0.3391, allocations: 99.84 kB / 0.7868 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.829e-05/0.3392, allocations: 15.98 kB / 0.7868 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.635e-05/0.3393, allocations: 39.8 kB / 0.7869 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.3396, allocations: 155.5 kB / 0.787 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3396, allocations: 0 / 0.787 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3397, allocations: 0 / 0.787 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.3397, allocations: 0 / 0.787 GB, free: 9.77 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.001047/0.3407, allocations: 478.5 kB / 0.7875 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.3408, allocations: 8.031 kB / 0.7875 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.958e-05/0.3409, allocations: 8.844 kB / 0.7875 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.3411, allocations: 192.1 kB / 0.7877 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.3412, allocations: 30.27 kB / 0.7877 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/0.3413, allocations: 8.375 kB / 0.7877 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002754/0.3416, allocations: 77.7 kB / 0.7878 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.3416, allocations: 0 / 0.7878 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.3416, allocations: 4 kB / 0.7878 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.3416, allocations: 4 kB / 0.7878 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.3418, allocations: 51.89 kB / 0.7878 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007351/0.3426, allocations: 324.7 kB / 0.7882 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.3428, allocations: 66.55 kB / 0.7882 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.3429, allocations: 40.83 kB / 0.7883 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.343, allocations: 7.984 kB / 0.7883 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.3433, allocations: 95.53 kB / 0.7884 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.713e-06/0.3433, allocations: 3.938 kB / 0.7884 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0005328/0.3438, allocations: 173.5 kB / 0.7885 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/0.3439, allocations: 59.41 kB / 0.7886 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.344, allocations: 133.1 kB / 0.7887 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.3441, allocations: 25.7 kB / 0.7887 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.955e-05/0.3442, allocations: 100.3 kB / 0.7888 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.3442, allocations: 19.75 kB / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.274e-05/0.3443, allocations: 29.7 kB / 0.7889 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3444, allocations: 326.8 kB / 0.7892 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.3445, allocations: 31.98 kB / 0.7892 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.3446, allocations: 69.06 kB / 0.7893 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002389/0.3449, allocations: 109 kB / 0.7894 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3449, allocations: 4 kB / 0.7894 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003061/0.3452, allocations: 141.7 kB / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.3452, allocations: 8.125 kB / 0.7895 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.3453, allocations: 0 / 0.7895 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.3453, allocations: 4 kB / 0.7895 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.3454, allocations: 19.92 kB / 0.7896 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.3454, allocations: 3.938 kB / 0.7896 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.3455, allocations: 11.98 kB / 0.7896 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.3456, allocations: 7.984 kB / 0.7896 GB, free: 6.871 MB / 0.6075 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001205/0.3457, allocations: 130.4 kB / 0.7897 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.3457, allocations: 7.906 kB / 0.7897 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.971e-05/0.3458, allocations: 8.719 kB / 0.7897 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3458, allocations: 4 kB / 0.7897 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3458, allocations: 0 / 0.7897 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3458, allocations: 3.984 kB / 0.7897 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006401/0.3464, allocations: 430.1 kB / 0.7901 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.3465, allocations: 4 kB / 0.7901 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.991e-05/0.3465, allocations: 11.98 kB / 0.7902 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3465, allocations: 0 / 0.7902 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.3466, allocations: 8 kB / 0.7902 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3466, allocations: 3.938 kB / 0.7902 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3466, allocations: 0 / 0.7902 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003654/0.347, allocations: 231.3 kB / 0.7904 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.127e-05/0.347, allocations: 89.02 kB / 0.7905 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.3471, allocations: 3.938 kB / 0.7905 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.3472, allocations: 11.92 kB / 0.7905 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/0.3473, allocations: 15.98 kB / 0.7905 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.3473, allocations: 3.984 kB / 0.7905 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.866e-05/0.3474, allocations: 103.3 kB / 0.7906 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.21e-07/0.3474, allocations: 0 / 0.7906 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003284/0.3477, allocations: 39.98 kB / 0.7906 GB, free: 5.68 MB / 0.6075 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0003994/0.3481, allocations: 172.6 kB / 0.7908 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003127/0.3484, allocations: 87.83 kB / 0.7909 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3484, allocations: 256 / 0.7909 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.3486, allocations: 51.91 kB / 0.7909 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.3489, allocations: 19.97 kB / 0.791 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005678/0.3495, allocations: 203.7 kB / 0.7912 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.3498, allocations: 0.7041 MB / 0.7918 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.098e-05/0.3499, allocations: 8.672 kB / 0.7919 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.658e-05/0.3499, allocations: 15.42 kB / 0.7919 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.3499, allocations: 0 / 0.7919 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of Templates: time 0.005289/0.3552, allocations: 1.802 MB / 0.7936 GB, free: 2.594 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1)