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.001108/0.001108, allocations: 109.3 kB / 16.36 MB, free: 6.426 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.001117/0.001117, allocations: 190.6 kB / 17.3 MB, free: 5.805 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.338/1.338, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.77/1.77, allocations: 292.3 MB / 0.5496 GB, free: 17.45 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.001431/0.001431, allocations: 76.44 kB / 0.6729 GB, free: 5.84 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2175, allocations: 114.6 MB / 0.7848 GB, free: 3.168 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002878/0.2204, allocations: 1.511 MB / 0.7863 GB, free: 1.641 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.2218, allocations: 0.8032 MB / 0.787 GB, free: 0.8281 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.988e-05/0.2219, allocations: 0 / 0.787 GB, free: 0.8281 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.796e-05/0.2219, allocations: 7.875 kB / 0.787 GB, free: 0.8203 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.943e-05/0.222, allocations: 11.86 kB / 0.7871 GB, free: 0.8086 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 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.0005858/0.2226, allocations: 123.6 kB / 0.7872 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001293/0.2228, allocations: 95.62 kB / 0.7873 GB, free: 0.5938 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.341e-05/0.2229, allocations: 23.92 kB / 0.7873 GB, free: 0.5703 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.619e-05/0.223, allocations: 35.91 kB / 0.7873 GB, free: 0.5352 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.774e-05/0.2231, allocations: 31.84 kB / 0.7874 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.2231, allocations: 8 kB / 0.7874 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.2233, allocations: 99.84 kB / 0.7875 GB, free: 408 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.126e-05/0.2233, allocations: 27.89 kB / 0.7875 GB, free: 380 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.28e-05/0.2234, allocations: 35.8 kB / 0.7875 GB, free: 344 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.2236, allocations: 151.6 kB / 0.7877 GB, free: 192 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2237, allocations: 4 kB / 0.7877 GB, free: 188 kB / 0.6544 GB Notification: Performance of FrontEnd: time 2.384e-06/0.2237, allocations: 3.938 kB / 0.7877 GB, free: 184 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.2237, allocations: 3.938 kB / 0.7877 GB, free: 180 kB / 0.6544 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.4295/0.6532, allocations: 469 kB / 0.7881 GB, free: 48.84 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.6533, allocations: 9.031 kB / 0.7881 GB, free: 48.84 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.399e-05/0.6533, allocations: 10.09 kB / 0.7881 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.6534, allocations: 180.2 kB / 0.7883 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.73e-05/0.6535, allocations: 36.86 kB / 0.7883 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.6536, allocations: 6.781 kB / 0.7884 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.6538, allocations: 78.92 kB / 0.7884 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.6538, allocations: 3.938 kB / 0.7884 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.6538, allocations: 3.047 kB / 0.7884 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.6538, allocations: 2.844 kB / 0.7884 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.654, allocations: 51.67 kB / 0.7885 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004722/0.6545, allocations: 322.9 kB / 0.7888 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001971/0.6547, allocations: 71.47 kB / 0.7889 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.968e-05/0.6548, allocations: 35.86 kB / 0.7889 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.6548, allocations: 5.812 kB / 0.7889 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002496/0.6551, allocations: 101.5 kB / 0.789 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.6551, allocations: 0 / 0.789 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0004431/0.6556, allocations: 169.9 kB / 0.7892 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.6556, allocations: 59.28 kB / 0.7892 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.499e-05/0.6557, allocations: 128.9 kB / 0.7893 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.6557, allocations: 29.64 kB / 0.7894 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.665e-05/0.6558, allocations: 98.98 kB / 0.7895 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.6558, allocations: 20.12 kB / 0.7895 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.322e-05/0.6558, allocations: 31.03 kB / 0.7895 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.267e-05/0.6559, allocations: 329.5 kB / 0.7898 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.656, allocations: 33.36 kB / 0.7899 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.6561, allocations: 69.92 kB / 0.7899 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.6563, allocations: 107.6 kB / 0.79 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.6563, allocations: 3.719 kB / 0.79 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002634/0.6566, allocations: 137.3 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.6566, allocations: 5.719 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.6566, allocations: 4.906 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.6567, allocations: 1.125 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.6568, allocations: 20.59 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.6568, allocations: 2.844 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.6569, allocations: 15.86 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/0.6569, allocations: 8.062 kB / 0.7902 GB, free: 47.42 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,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 8.349e-05/0.657, allocations: 127.7 kB / 0.7903 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.865e-05/0.657, allocations: 9.938 kB / 0.7904 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.275e-05/0.6571, allocations: 14.62 kB / 0.7904 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.6571, allocations: 1.875 kB / 0.7904 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.6571, allocations: 3.797 kB / 0.7904 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.6571, allocations: 0 / 0.7904 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005055/0.6576, allocations: 430.8 kB / 0.7908 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.6576, allocations: 2.625 kB / 0.7908 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.14e-05/0.6577, allocations: 10.66 kB / 0.7908 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.6577, allocations: 1.125 kB / 0.7908 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.6577, allocations: 4.625 kB / 0.7908 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.6577, allocations: 0.625 kB / 0.7908 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.6577, allocations: 8.469 kB / 0.7908 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002939/0.658, allocations: 232.8 kB / 0.791 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.301e-05/0.6581, allocations: 86.14 kB / 0.7911 GB, free: 46.76 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.6581, allocations: 1.25 kB / 0.7911 GB, free: 46.76 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.6582, allocations: 12.72 kB / 0.7911 GB, free: 46.76 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/0.6583, allocations: 16.2 kB / 0.7911 GB, free: 46.76 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.6583, allocations: 3.375 kB / 0.7911 GB, free: 46.76 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.19e-05/0.6584, allocations: 102.3 kB / 0.7912 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.6584, allocations: 0 / 0.7912 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003237/0.6587, allocations: 45.5 kB / 0.7913 GB, free: 46.68 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 (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.0003174/0.659, allocations: 166.2 kB / 0.7914 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002878/0.6593, allocations: 91.23 kB / 0.7915 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.6593, allocations: 0 / 0.7915 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.6595, allocations: 49.27 kB / 0.7916 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.6598, allocations: 13.36 kB / 0.7916 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004334/0.6602, allocations: 212 kB / 0.7918 GB, free: 46.47 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.6603, allocations: 0.693 MB / 0.7925 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.867e-05/0.6604, allocations: 11.81 kB / 0.7925 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.171e-05/0.6604, allocations: 15.48 kB / 0.7925 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of SimCode: time 4.01e-07/0.6604, allocations: 0 / 0.7925 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of Templates: time 0.004765/0.6652, allocations: 1.806 MB / 0.7943 GB, free: 45.69 MB / 0.6544 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1)