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.001477/0.001477, 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.001654/0.001654, allocations: 193.2 kB / 16.64 MB, free: 6.594 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.555/1.555, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.742/1.742, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001449/0.001449, allocations: 70.75 kB / 0.6723 GB, free: 26.04 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2939, allocations: 114.5 MB / 0.7841 GB, free: 12.81 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003007/0.2969, allocations: 1.531 MB / 0.7856 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001389/0.2984, allocations: 0.7809 MB / 0.7864 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.18e-05/0.2984, allocations: 4 kB / 0.7864 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.183e-05/0.2985, allocations: 7.922 kB / 0.7864 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.9e-05/0.2986, allocations: 15.8 kB / 0.7864 GB, free: 10.45 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.0005972/0.2992, allocations: 135.6 kB / 0.7865 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001537/0.2994, allocations: 103.7 kB / 0.7866 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.2995, allocations: 11.94 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.2996, allocations: 51.78 kB / 0.7867 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.367e-05/0.2997, allocations: 43.81 kB / 0.7867 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.571e-05/0.2997, allocations: 8 kB / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002282/0.2999, allocations: 99.84 kB / 0.7868 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.442e-05/0.3, allocations: 23.92 kB / 0.7869 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.787e-05/0.3001, allocations: 43.78 kB / 0.7869 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002994/0.3004, allocations: 159.6 kB / 0.7871 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3004, allocations: 0 / 0.7871 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.917e-06/0.3004, allocations: 0 / 0.7871 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.3004, allocations: 0 / 0.7871 GB, free: 9.777 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009246/0.3013, allocations: 0.4985 MB / 0.7875 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3014, allocations: 12.03 kB / 0.7876 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.152e-05/0.3014, allocations: 8.844 kB / 0.7876 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.3016, allocations: 176.2 kB / 0.7877 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.3016, allocations: 4.375 kB / 0.7877 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.345e-05/0.3017, allocations: 8.375 kB / 0.7877 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.3019, allocations: 81.95 kB / 0.7878 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3019, allocations: 0 / 0.7878 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.3019, allocations: 3.938 kB / 0.7878 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.3019, allocations: 0 / 0.7878 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.3021, allocations: 55.97 kB / 0.7879 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006494/0.3028, allocations: 336.6 kB / 0.7882 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/0.303, allocations: 86.7 kB / 0.7883 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.939e-05/0.3031, allocations: 36.84 kB / 0.7883 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.3032, allocations: 8 kB / 0.7883 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.3034, allocations: 99.34 kB / 0.7884 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.3034, allocations: 0 / 0.7884 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004878/0.3039, allocations: 173.4 kB / 0.7886 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.304, allocations: 59.41 kB / 0.7886 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.3041, allocations: 128.6 kB / 0.7888 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.3042, allocations: 33.7 kB / 0.7888 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.498e-05/0.3042, allocations: 96.05 kB / 0.7889 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.917e-05/0.3043, allocations: 27.64 kB / 0.7889 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.724e-05/0.3043, allocations: 33.7 kB / 0.7889 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.3045, allocations: 322.8 kB / 0.7893 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.532e-05/0.3046, allocations: 35.92 kB / 0.7893 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.3047, allocations: 73.12 kB / 0.7894 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.3049, allocations: 109 kB / 0.7895 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3049, allocations: 0 / 0.7895 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002581/0.3052, allocations: 137.4 kB / 0.7896 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3052, allocations: 8 kB / 0.7896 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3052, allocations: 0 / 0.7896 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.3052, allocations: 4 kB / 0.7896 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.3054, allocations: 15.98 kB / 0.7896 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3054, allocations: 0 / 0.7896 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.3055, allocations: 23.83 kB / 0.7896 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.3055, allocations: 4 kB / 0.7896 GB, free: 6.848 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,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.0001118/0.3056, allocations: 138.5 kB / 0.7898 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.073e-05/0.3057, allocations: 7.906 kB / 0.7898 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.306, allocations: 150.3 kB / 0.7899 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.306, allocations: 0 / 0.7899 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3061, allocations: 7.938 kB / 0.7899 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3061, allocations: 0 / 0.7899 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007652/0.3068, allocations: 462.2 kB / 0.7904 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3069, allocations: 0 / 0.7904 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.615e-05/0.3069, allocations: 15.94 kB / 0.7904 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3069, allocations: 0 / 0.7904 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.855e-05/0.307, allocations: 7.984 kB / 0.7904 GB, free: 6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.307, allocations: 3.938 kB / 0.7904 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.307, allocations: 0 / 0.7904 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003234/0.3073, allocations: 246.5 kB / 0.7906 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.3074, allocations: 85.02 kB / 0.7907 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.784e-05/0.3074, allocations: 7.938 kB / 0.7907 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.3075, allocations: 7.984 kB / 0.7907 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.099e-05/0.3076, allocations: 15.98 kB / 0.7908 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.3076, allocations: 4 kB / 0.7908 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.265e-05/0.3077, allocations: 105.8 kB / 0.7909 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3077, allocations: 0 / 0.7909 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003599/0.3081, allocations: 40 kB / 0.7909 GB, free: 5.465 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 (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.0003617/0.3084, allocations: 170.5 kB / 0.7911 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002596/0.3087, allocations: 91.89 kB / 0.7911 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3087, allocations: 0 / 0.7911 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.3088, allocations: 60.09 kB / 0.7912 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.3092, allocations: 19.98 kB / 0.7912 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005032/0.3097, allocations: 223.8 kB / 0.7914 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.31, allocations: 0.7002 MB / 0.7921 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.027e-05/0.31, allocations: 16.38 kB / 0.7921 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.494e-05/0.3101, allocations: 15.42 kB / 0.7921 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of SimCode: time 2.61e-07/0.3101, allocations: 0 / 0.7921 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of Templates: time 0.005234/0.3153, allocations: 1.947 MB / 0.7941 GB, free: 2.199 MB / 0.6075 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)