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.001083/0.001083, allocations: 108 kB / 15.6 MB, free: 132 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.001134/0.001134, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.565/1.565, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.808/1.808, allocations: 292.3 MB / 0.5489 GB, free: 12.81 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.001524/0.001524, allocations: 64.06 kB / 0.6715 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3211, allocations: 114.6 MB / 0.7834 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.003386/0.3245, allocations: 1.515 MB / 0.7848 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00176/0.3263, allocations: 0.8042 MB / 0.7856 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.358e-05/0.3264, allocations: 0 / 0.7856 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.027e-05/0.3265, allocations: 7.922 kB / 0.7856 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.3266, allocations: 15.8 kB / 0.7856 GB, free: 11.1 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.0008096/0.3274, allocations: 127.6 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001689/0.3276, allocations: 91.7 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.3277, allocations: 12 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.3279, allocations: 43.83 kB / 0.7859 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.328, allocations: 35.84 kB / 0.7859 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.193e-05/0.328, allocations: 4 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002696/0.3283, allocations: 99.84 kB / 0.786 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.655e-05/0.3284, allocations: 27.89 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.927e-05/0.3284, allocations: 43.8 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003283/0.3288, allocations: 143.9 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.3288, allocations: 4 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.886e-06/0.3288, allocations: 0 / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.077e-06/0.3288, allocations: 0 / 0.7863 GB, free: 10.48 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.0008901/0.3297, allocations: 478.4 kB / 0.7867 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.3298, allocations: 8.031 kB / 0.7867 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/0.3298, allocations: 12.84 kB / 0.7867 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.33, allocations: 183.3 kB / 0.7869 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.585e-05/0.3301, allocations: 38.25 kB / 0.7869 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.3301, allocations: 4.375 kB / 0.7869 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.3304, allocations: 81.77 kB / 0.787 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3304, allocations: 0 / 0.787 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.3304, allocations: 0 / 0.787 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.3304, allocations: 7.938 kB / 0.787 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002039/0.3306, allocations: 55.95 kB / 0.7871 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005724/0.3312, allocations: 324.6 kB / 0.7874 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/0.3315, allocations: 70.53 kB / 0.7875 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.3316, allocations: 36.84 kB / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.3316, allocations: 4 kB / 0.7875 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003068/0.3319, allocations: 99.38 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.3319, allocations: 0 / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.000504/0.3324, allocations: 173.5 kB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.3325, allocations: 55.41 kB / 0.7878 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.3326, allocations: 130.1 kB / 0.7879 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.3327, allocations: 25.7 kB / 0.788 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.422e-05/0.3327, allocations: 96.28 kB / 0.7881 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.049e-05/0.3328, allocations: 27.88 kB / 0.7881 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.737e-05/0.3328, allocations: 29.7 kB / 0.7881 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.333, allocations: 330.8 kB / 0.7884 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.3331, allocations: 31.98 kB / 0.7885 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.3332, allocations: 69.12 kB / 0.7885 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.3335, allocations: 109 kB / 0.7886 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3335, allocations: 0 / 0.7886 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002977/0.3338, allocations: 149.4 kB / 0.7888 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.3338, allocations: 4 kB / 0.7888 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.3338, allocations: 0 / 0.7888 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.3338, allocations: 4 kB / 0.7888 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.334, allocations: 15.98 kB / 0.7888 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.334, allocations: 7.875 kB / 0.7888 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.3341, allocations: 11.98 kB / 0.7888 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.3341, allocations: 8.375 kB / 0.7888 GB, free: 7.578 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.0001283/0.3343, allocations: 129.8 kB / 0.7889 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.157e-05/0.3343, allocations: 7.906 kB / 0.7889 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.101e-05/0.3343, allocations: 8.719 kB / 0.789 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.3344, allocations: 7.938 kB / 0.789 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3344, allocations: 0 / 0.789 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3344, allocations: 0 / 0.789 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000636/0.335, allocations: 434.2 kB / 0.7894 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.335, allocations: 4 kB / 0.7894 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.103e-05/0.3351, allocations: 11.92 kB / 0.7894 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3351, allocations: 0 / 0.7894 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.3351, allocations: 4 kB / 0.7894 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3351, allocations: 3.938 kB / 0.7894 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3352, allocations: 0 / 0.7894 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003477/0.3355, allocations: 231.3 kB / 0.7896 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.373e-05/0.3356, allocations: 85.02 kB / 0.7897 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.3356, allocations: 0 / 0.7897 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.3357, allocations: 23.92 kB / 0.7897 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/0.3358, allocations: 11.98 kB / 0.7897 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.3358, allocations: 3.984 kB / 0.7897 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.706e-05/0.3359, allocations: 106.2 kB / 0.7898 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3359, allocations: 0 / 0.7898 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003296/0.3362, allocations: 40 kB / 0.7899 GB, free: 6.387 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.0004018/0.3367, allocations: 154.8 kB / 0.79 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003205/0.337, allocations: 103.9 kB / 0.7901 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.337, allocations: 0 / 0.7901 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.3371, allocations: 55.84 kB / 0.7902 GB, free: 6.086 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.3375, allocations: 11.98 kB / 0.7902 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005313/0.338, allocations: 211.8 kB / 0.7904 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.3383, allocations: 0.6963 MB / 0.7911 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.922e-05/0.3384, allocations: 12.66 kB / 0.7911 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.294e-05/0.3384, allocations: 11.44 kB / 0.7911 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.3384, allocations: 0 / 0.7911 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of Templates: time 0.005411/0.3438, allocations: 1.8 MB / 0.7929 GB, free: 3.305 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)