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.001426/0.001426, allocations: 108 kB / 15.61 MB, free: 152 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.001693/0.001694, allocations: 194.6 kB / 16.53 MB, free: 6.66 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.626/1.626, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.737/1.737, allocations: 292.3 MB / 0.5489 GB, free: 12.87 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.001558/0.001558, allocations: 69.16 kB / 0.6715 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3094, allocations: 114.6 MB / 0.7834 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003983/0.3134, allocations: 1.523 MB / 0.7848 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001765/0.3152, allocations: 0.7887 MB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.61e-05/0.3153, allocations: 0 / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.774e-05/0.3154, allocations: 7.875 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001155/0.3155, allocations: 15.86 kB / 0.7856 GB, free: 11.17 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.0007881/0.3163, allocations: 135.6 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001512/0.3165, allocations: 103.6 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.3166, allocations: 12 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.3168, allocations: 47.83 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.701e-05/0.3169, allocations: 47.77 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.3169, allocations: 8 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002202/0.3171, allocations: 99.91 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.611e-05/0.3172, allocations: 19.97 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.52e-05/0.3172, allocations: 43.72 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000314/0.3176, allocations: 159.8 kB / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.3176, allocations: 0 / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3176, allocations: 0 / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.543e-06/0.3176, allocations: 0 / 0.7863 GB, free: 10.51 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.0009633/0.3186, allocations: 0.4885 MB / 0.7868 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.3186, allocations: 8.031 kB / 0.7868 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.329e-05/0.3187, allocations: 8.844 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.3189, allocations: 188.2 kB / 0.787 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.3189, allocations: 384 / 0.787 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.3189, allocations: 4.375 kB / 0.787 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.3192, allocations: 93.88 kB / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.3192, allocations: 0 / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.3192, allocations: 0 / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.3192, allocations: 4 kB / 0.7871 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/0.3194, allocations: 51.97 kB / 0.7871 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006498/0.3201, allocations: 328.7 kB / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002315/0.3203, allocations: 86.7 kB / 0.7875 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.533e-05/0.3204, allocations: 48.84 kB / 0.7875 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.3204, allocations: 0 / 0.7875 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002993/0.3207, allocations: 103.3 kB / 0.7876 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/0.3208, allocations: 0 / 0.7876 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004758/0.3212, allocations: 181.4 kB / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.3213, allocations: 55.41 kB / 0.7879 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.3214, allocations: 132.9 kB / 0.788 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.3215, allocations: 33.7 kB / 0.788 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.624e-05/0.3216, allocations: 96.05 kB / 0.7881 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.307e-05/0.3216, allocations: 31.58 kB / 0.7882 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.556e-05/0.3217, allocations: 29.7 kB / 0.7882 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3218, allocations: 326.8 kB / 0.7885 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.5e-05/0.3219, allocations: 27.98 kB / 0.7885 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.322, allocations: 73.12 kB / 0.7886 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.3222, allocations: 109 kB / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3222, allocations: 0 / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002701/0.3225, allocations: 137.4 kB / 0.7888 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.3225, allocations: 4 kB / 0.7888 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.3225, allocations: 3.938 kB / 0.7888 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.3226, allocations: 4 kB / 0.7888 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.3227, allocations: 16.12 kB / 0.7888 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.3227, allocations: 3.938 kB / 0.7889 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.3228, allocations: 27.92 kB / 0.7889 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.3229, allocations: 4 kB / 0.7889 GB, free: 7.566 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.0001252/0.323, allocations: 133.3 kB / 0.789 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.233e-05/0.323, allocations: 11.89 kB / 0.789 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004033/0.3234, allocations: 158.3 kB / 0.7892 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.3234, allocations: 4 kB / 0.7892 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3235, allocations: 0 / 0.7892 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3235, allocations: 4 kB / 0.7892 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007633/0.3242, allocations: 454.2 kB / 0.7896 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3243, allocations: 0 / 0.7896 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.966e-05/0.3244, allocations: 19.94 kB / 0.7896 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.3244, allocations: 0 / 0.7896 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.3244, allocations: 3.984 kB / 0.7896 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.3244, allocations: 0 / 0.7896 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.3244, allocations: 7.938 kB / 0.7896 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004025/0.3248, allocations: 236.3 kB / 0.7899 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.717e-05/0.3249, allocations: 85.02 kB / 0.79 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.24e-05/0.3249, allocations: 4 kB / 0.79 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.3251, allocations: 11.98 kB / 0.79 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.885e-05/0.3252, allocations: 15.92 kB / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.3252, allocations: 11.88 kB / 0.79 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.994e-05/0.3253, allocations: 106.1 kB / 0.7901 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3253, allocations: 0 / 0.7901 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000393/0.3257, allocations: 47.98 kB / 0.7901 GB, free: 6.176 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.0005586/0.3263, allocations: 153.4 kB / 0.7903 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003362/0.3266, allocations: 99.7 kB / 0.7904 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3266, allocations: 3.938 kB / 0.7904 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.3268, allocations: 51.97 kB / 0.7904 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.3272, allocations: 16.08 kB / 0.7904 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006647/0.3278, allocations: 236 kB / 0.7907 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.3282, allocations: 0.6963 MB / 0.7914 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.591e-05/0.3283, allocations: 16.42 kB / 0.7914 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.436e-05/0.3283, allocations: 23.42 kB / 0.7914 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/0.3283, allocations: 0 / 0.7914 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of Templates: time 0.005843/0.3342, allocations: 1.943 MB / 0.7933 GB, free: 2.918 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)