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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 108 kB / 15.6 MB, free: 132 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.001188/0.001188, allocations: 191 kB / 16.53 MB, free: 6.391 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.334/1.334, allocations: 205.1 MB / 222.4 MB, free: 4.578 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.642/1.642, allocations: 292.3 MB / 0.5489 GB, free: 12.86 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.001341/0.001341, allocations: 69 kB / 0.6716 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1828, allocations: 114.6 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002524/0.1854, allocations: 1.523 MB / 0.785 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1866, allocations: 0.7848 MB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.791e-05/0.1867, allocations: 0 / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.155e-05/0.1867, allocations: 7.875 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.944e-05/0.1868, allocations: 11.86 kB / 0.7858 GB, free: 11.04 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.0005362/0.1874, allocations: 135.6 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.1875, allocations: 99.64 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.833e-05/0.1876, allocations: 19.97 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.241e-05/0.1877, allocations: 43.84 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.101e-05/0.1878, allocations: 47.77 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.1878, allocations: 8 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001717/0.188, allocations: 95.91 kB / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.948e-05/0.188, allocations: 23.97 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.901e-05/0.1881, allocations: 43.72 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.1883, allocations: 163.8 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1883, allocations: 0 / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.1883, allocations: 0 / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.1883, allocations: 0 / 0.7864 GB, free: 10.38 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.0006543/0.189, allocations: 496.2 kB / 0.7869 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.189, allocations: 16.02 kB / 0.7869 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.087e-05/0.1891, allocations: 38.75 kB / 0.7869 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.581e-05/0.1891, allocations: 8.844 kB / 0.7869 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.1892, allocations: 172.2 kB / 0.7871 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.1892, allocations: 12.36 kB / 0.7871 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.1893, allocations: 4.375 kB / 0.7871 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.1894, allocations: 85.7 kB / 0.7872 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.1894, allocations: 0 / 0.7872 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.1895, allocations: 4 kB / 0.7872 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1895, allocations: 0 / 0.7872 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001374/0.1896, allocations: 51.97 kB / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000481/0.1901, allocations: 344.6 kB / 0.7876 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.1903, allocations: 78.67 kB / 0.7877 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.211e-05/0.1904, allocations: 40.84 kB / 0.7877 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.1904, allocations: 4 kB / 0.7877 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002036/0.1906, allocations: 99.3 kB / 0.7878 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 2.604e-06/0.1906, allocations: 96 / 0.7878 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003794/0.191, allocations: 173.5 kB / 0.788 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/0.1911, allocations: 63.39 kB / 0.788 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.134e-05/0.1912, allocations: 136.4 kB / 0.7881 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1912, allocations: 29.7 kB / 0.7882 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.151e-05/0.1912, allocations: 88.14 kB / 0.7883 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.1913, allocations: 35.56 kB / 0.7883 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.1913, allocations: 37.7 kB / 0.7883 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.021e-05/0.1914, allocations: 318.8 kB / 0.7886 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.381e-05/0.1915, allocations: 31.97 kB / 0.7887 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.059e-05/0.1916, allocations: 81.08 kB / 0.7887 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001608/0.1918, allocations: 101.1 kB / 0.7888 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1918, allocations: 4 kB / 0.7888 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000234/0.192, allocations: 141.4 kB / 0.789 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.192, allocations: 7.938 kB / 0.789 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1921, allocations: 4 kB / 0.789 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.1921, allocations: 0 / 0.789 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.828e-05/0.1922, allocations: 15.98 kB / 0.789 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.1922, allocations: 7.938 kB / 0.789 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.666e-05/0.1923, allocations: 23.92 kB / 0.789 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.1923, allocations: 8 kB / 0.789 GB, free: 7.383 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 7.837e-05/0.1924, allocations: 120.6 kB / 0.7892 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.947e-05/0.1924, allocations: 7.906 kB / 0.7892 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000307/0.1927, allocations: 169.5 kB / 0.7893 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1927, allocations: 0 / 0.7893 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1927, allocations: 0 / 0.7893 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1928, allocations: 4 kB / 0.7893 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005276/0.1933, allocations: 454.2 kB / 0.7898 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1933, allocations: 0 / 0.7898 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.198e-05/0.1934, allocations: 15.98 kB / 0.7898 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.1934, allocations: 0 / 0.7898 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.1934, allocations: 4 kB / 0.7898 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.1934, allocations: 7.922 kB / 0.7898 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1934, allocations: 0 / 0.7898 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002779/0.1937, allocations: 243.4 kB / 0.79 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.441e-05/0.1937, allocations: 85.02 kB / 0.7901 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/0.1938, allocations: 0 / 0.7901 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.1939, allocations: 15.92 kB / 0.7901 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.877e-05/0.1939, allocations: 11.92 kB / 0.7901 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.194, allocations: 7.938 kB / 0.7901 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.348e-05/0.194, allocations: 107.3 kB / 0.7902 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.194, allocations: 0 / 0.7902 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002778/0.1943, allocations: 43.98 kB / 0.7903 GB, free: 6.008 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.000691/0.195, allocations: 0.8402 MB / 0.7911 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002396/0.1953, allocations: 103.8 kB / 0.7912 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1953, allocations: 0 / 0.7912 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.1954, allocations: 55.91 kB / 0.7913 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.1957, allocations: 24.11 kB / 0.7913 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.1972, allocations: 1.632 MB / 0.7929 GB, free: 3.242 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.1975, allocations: 0.7002 MB / 0.7936 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.378e-05/0.1976, allocations: 8.438 kB / 0.7936 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.978e-05/0.1976, allocations: 31.42 kB / 0.7936 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.1976, allocations: 0 / 0.7936 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.843/4.04, allocations: 3.259 MB / 0.7968 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.323/11.36, allocations: 15.75 kB / 0.7968 GB, free: 15.3 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)