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.001597/0.001597, allocations: 100.9 kB / 16.27 MB, free: 6.418 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.001858/0.001859, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.337/1.337, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.961/1.961, allocations: 292.3 MB / 0.5495 GB, free: 17.47 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.002569/0.002569, allocations: 71.89 kB / 0.6722 GB, free: 6.547 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2904, allocations: 114.6 MB / 0.784 GB, free: 3.883 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.004224/0.2947, allocations: 1.522 MB / 0.7855 GB, free: 2.344 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00235/0.2971, allocations: 0.7877 MB / 0.7863 GB, free: 1.547 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.2972, allocations: 4 kB / 0.7863 GB, free: 1.543 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 9.185e-05/0.2973, allocations: 7.922 kB / 0.7863 GB, free: 1.535 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.2975, allocations: 19.81 kB / 0.7863 GB, free: 1.516 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.0009487/0.2985, allocations: 123.6 kB / 0.7864 GB, free: 1.395 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000196/0.2987, allocations: 99.69 kB / 0.7865 GB, free: 1.297 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.2989, allocations: 11.98 kB / 0.7865 GB, free: 1.285 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.2991, allocations: 59.77 kB / 0.7866 GB, free: 1.227 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.2992, allocations: 43.78 kB / 0.7866 GB, free: 1.184 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.2992, allocations: 8 kB / 0.7866 GB, free: 1.176 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000262/0.2995, allocations: 99.83 kB / 0.7867 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.628e-05/0.2996, allocations: 19.98 kB / 0.7868 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.213e-05/0.2996, allocations: 43.78 kB / 0.7868 GB, free: 1.016 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003797/0.3, allocations: 159.8 kB / 0.787 GB, free: 0.8594 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3001, allocations: 0 / 0.787 GB, free: 0.8594 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.996e-06/0.3001, allocations: 0 / 0.787 GB, free: 0.8594 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.3001, allocations: 0 / 0.787 GB, free: 0.8594 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.0009532/0.301, allocations: 0.4885 MB / 0.7874 GB, free: 312 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.3011, allocations: 8.031 kB / 0.7874 GB, free: 304 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.441e-05/0.3012, allocations: 8.844 kB / 0.7874 GB, free: 296 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000205/0.3014, allocations: 180.2 kB / 0.7876 GB, free: 76 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.3014, allocations: 8.359 kB / 0.7876 GB, free: 68 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.494e-05/0.3014, allocations: 8.375 kB / 0.7876 GB, free: 60 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5016/0.803, allocations: 77.2 kB / 0.7877 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.8031, allocations: 0.8438 kB / 0.7877 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.795e-05/0.8032, allocations: 1.172 kB / 0.7877 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.8032, allocations: 3.438 kB / 0.7877 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000396/0.8037, allocations: 51 kB / 0.7878 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008521/0.8045, allocations: 335.4 kB / 0.7881 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.8049, allocations: 84.62 kB / 0.7882 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.8051, allocations: 39.91 kB / 0.7882 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.8051, allocations: 3.812 kB / 0.7882 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004086/0.8055, allocations: 102.6 kB / 0.7883 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 3.546e-06/0.8056, allocations: 0 / 0.7883 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0007406/0.8063, allocations: 178.6 kB / 0.7885 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.8064, allocations: 54.56 kB / 0.7885 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.8065, allocations: 135.9 kB / 0.7887 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.8066, allocations: 28.58 kB / 0.7887 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.888e-05/0.8066, allocations: 98.88 kB / 0.7888 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.375e-05/0.8067, allocations: 25.31 kB / 0.7888 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.462e-05/0.8068, allocations: 34.58 kB / 0.7888 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.328e-05/0.8069, allocations: 326.3 kB / 0.7891 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.807, allocations: 32.8 kB / 0.7892 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.8072, allocations: 67.05 kB / 0.7892 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.8075, allocations: 109.1 kB / 0.7893 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.8075, allocations: 2.375 kB / 0.7893 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004283/0.808, allocations: 139.1 kB / 0.7895 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.808, allocations: 5.406 kB / 0.7895 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.808, allocations: 3 kB / 0.7895 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/0.8081, allocations: 0.5 kB / 0.7895 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/0.8083, allocations: 25.05 kB / 0.7895 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.8083, allocations: 0 / 0.7895 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.8085, allocations: 18.22 kB / 0.7895 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.8085, allocations: 6.938 kB / 0.7895 GB, free: 47.64 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.0001167/0.8087, allocations: 130.9 kB / 0.7897 GB, free: 47.53 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.8087, allocations: 17 kB / 0.7897 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005261/0.8093, allocations: 159.2 kB / 0.7898 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.8093, allocations: 3.625 kB / 0.7898 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.8093, allocations: 0 / 0.7898 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.8093, allocations: 4.938 kB / 0.7898 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008673/0.8102, allocations: 448.2 kB / 0.7903 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.8102, allocations: 2.625 kB / 0.7903 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.8104, allocations: 11.66 kB / 0.7903 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.8104, allocations: 1.969 kB / 0.7903 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.8104, allocations: 12.02 kB / 0.7903 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.8104, allocations: 1 kB / 0.7903 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.8105, allocations: 0 / 0.7903 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004717/0.8109, allocations: 246.6 kB / 0.7905 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.149e-05/0.811, allocations: 92.81 kB / 0.7906 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.8111, allocations: 5.062 kB / 0.7906 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.8113, allocations: 10.61 kB / 0.7906 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.567e-05/0.8114, allocations: 10.16 kB / 0.7906 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.8114, allocations: 7.688 kB / 0.7906 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 8.41e-05/0.8115, allocations: 100.5 kB / 0.7907 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.81e-07/0.8115, allocations: 3 kB / 0.7907 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0006002/0.8122, allocations: 44.41 kB / 0.7908 GB, free: 46.88 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.0004721/0.8127, allocations: 165.8 kB / 0.7909 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004463/0.8131, allocations: 105.7 kB / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.8131, allocations: 0 / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.8134, allocations: 54.84 kB / 0.7911 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005324/0.8139, allocations: 17.47 kB / 0.7911 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006056/0.8145, allocations: 245.6 kB / 0.7913 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001573/0.8147, allocations: 0.6946 MB / 0.792 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.368e-05/0.8148, allocations: 17.98 kB / 0.792 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of SimCode: time 5.11e-07/0.8148, allocations: 3.281 kB / 0.792 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of Templates: time 0.005895/0.8207, allocations: 1.93 MB / 0.7939 GB, free: 45.81 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 -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)