Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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.Gunay2016Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001193, allocations: 100.6 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.001047/0.001047, allocations: 196.5 kB / 17.3 MB, free: 5.797 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.314/1.314, 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.797/1.797, allocations: 292.3 MB / 0.5496 GB, free: 17.43 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.001714/0.001714, allocations: 67.89 kB / 0.6729 GB, free: 5.875 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.2242, allocations: 114.5 MB / 0.7848 GB, free: 3.211 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003137/0.2274, allocations: 1.526 MB / 0.7863 GB, free: 1.668 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001529/0.229, allocations: 0.7916 MB / 0.787 GB, free: 0.8672 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.477e-05/0.229, allocations: 0 / 0.787 GB, free: 0.8672 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.406e-05/0.2291, allocations: 11.86 kB / 0.787 GB, free: 0.8555 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.2292, allocations: 19.86 kB / 0.7871 GB, free: 0.8359 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.0007106/0.23, allocations: 135.5 kB / 0.7872 GB, free: 0.7031 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.2301, allocations: 91.69 kB / 0.7873 GB, free: 0.6133 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.2302, allocations: 16 kB / 0.7873 GB, free: 0.5977 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.2304, allocations: 47.78 kB / 0.7873 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.705e-05/0.2305, allocations: 47.81 kB / 0.7874 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/0.2305, allocations: 8 kB / 0.7874 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002251/0.2307, allocations: 95.91 kB / 0.7875 GB, free: 412 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.2e-05/0.2308, allocations: 19.92 kB / 0.7875 GB, free: 392 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.369e-05/0.2308, allocations: 39.84 kB / 0.7875 GB, free: 352 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002908/0.2311, allocations: 167.5 kB / 0.7877 GB, free: 184 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.2311, allocations: 4 kB / 0.7877 GB, free: 180 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2311, allocations: 0 / 0.7877 GB, free: 180 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.2312, allocations: 4 kB / 0.7877 GB, free: 176 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.3334/0.5645, allocations: 488.4 kB / 0.7882 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.5646, allocations: 8.906 kB / 0.7882 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.33e-05/0.5647, allocations: 9.719 kB / 0.7882 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.942e-05/0.5648, allocations: 179.1 kB / 0.7884 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.5648, allocations: 5.844 kB / 0.7884 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.5648, allocations: 5.969 kB / 0.7884 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.565, allocations: 82.27 kB / 0.7885 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.565, allocations: 0 / 0.7885 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.565, allocations: 5.062 kB / 0.7885 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.565, allocations: 2.625 kB / 0.7885 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.5652, allocations: 51.62 kB / 0.7885 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000462/0.5657, allocations: 329.7 kB / 0.7888 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.5659, allocations: 88.83 kB / 0.7889 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.021e-05/0.566, allocations: 41.09 kB / 0.789 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.566, allocations: 10.89 kB / 0.789 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002168/0.5662, allocations: 94.5 kB / 0.7891 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.993e-06/0.5662, allocations: 0 / 0.7891 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.00037/0.5666, allocations: 180.1 kB / 0.7892 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.5667, allocations: 55.69 kB / 0.7893 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.178e-05/0.5667, allocations: 137.4 kB / 0.7894 GB, free: 48.01 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.5667, allocations: 29.14 kB / 0.7894 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.767e-05/0.5668, allocations: 98.92 kB / 0.7895 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.994e-05/0.5668, allocations: 26.31 kB / 0.7896 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.109e-05/0.5669, allocations: 29.25 kB / 0.7896 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 3.572e-05/0.5669, allocations: 324.8 kB / 0.7899 GB, free: 47.56 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.939e-05/0.567, allocations: 30.73 kB / 0.7899 GB, free: 47.56 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.713e-05/0.5671, allocations: 73.78 kB / 0.79 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.5672, allocations: 114.1 kB / 0.7901 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.5672, allocations: 0 / 0.7901 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002109/0.5674, allocations: 136.6 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.5674, allocations: 8.656 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.5675, allocations: 0.5312 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.5675, allocations: 5.125 kB / 0.7902 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.5676, allocations: 18.44 kB / 0.7903 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.5676, allocations: 6.094 kB / 0.7903 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.69e-05/0.5677, allocations: 15.81 kB / 0.7903 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.5677, allocations: 6.281 kB / 0.7903 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,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 6.336e-05/0.5678, allocations: 132.7 kB / 0.7904 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.932e-05/0.5678, allocations: 13.23 kB / 0.7904 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002932/0.5681, allocations: 154.5 kB / 0.7906 GB, free: 47.27 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.5681, allocations: 10.16 kB / 0.7906 GB, free: 47.27 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.5681, allocations: 0.5938 kB / 0.7906 GB, free: 47.27 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.5681, allocations: 0 / 0.7906 GB, free: 47.27 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004462/0.5686, allocations: 453.5 kB / 0.791 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.5686, allocations: 0 / 0.791 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.973e-05/0.5687, allocations: 17.47 kB / 0.791 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.5687, allocations: 0.6562 kB / 0.791 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.5687, allocations: 5.906 kB / 0.791 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.5687, allocations: 0.7188 kB / 0.791 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5687, allocations: 3.938 kB / 0.791 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.569, allocations: 240 kB / 0.7913 GB, free: 46.82 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.134e-05/0.569, allocations: 86.52 kB / 0.7914 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.569, allocations: 6.375 kB / 0.7914 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.5692, allocations: 13.58 kB / 0.7914 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.5692, allocations: 13.59 kB / 0.7914 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.5692, allocations: 3.531 kB / 0.7914 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.304e-05/0.5693, allocations: 104 kB / 0.7915 GB, free: 46.65 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5693, allocations: 3.188 kB / 0.7915 GB, free: 46.65 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003123/0.5696, allocations: 46.02 kB / 0.7915 GB, free: 46.65 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 (13): * Single equations (assignments): 10 * 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.0002799/0.5699, allocations: 166.4 kB / 0.7917 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00023/0.5701, allocations: 95.86 kB / 0.7918 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.5701, allocations: 0 / 0.7918 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.5702, allocations: 58.23 kB / 0.7918 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.5705, allocations: 20.45 kB / 0.7919 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003676/0.5709, allocations: 217.8 kB / 0.7921 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.839e-05/0.571, allocations: 0.6993 MB / 0.7928 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.149e-05/0.5711, allocations: 11.81 kB / 0.7928 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.372e-05/0.5711, allocations: 16.62 kB / 0.7928 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of SimCode: time 2.41e-07/0.5711, allocations: 0 / 0.7928 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of Templates: time 0.003952/0.5751, allocations: 1.941 MB / 0.7947 GB, free: 45.64 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & ./Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)