Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",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.001175/0.001175, 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.001241/0.001241, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.332/1.332, 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.652/1.652, 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.001273/0.001273, allocations: 72.33 kB / 0.6716 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1815, allocations: 114.5 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002187/0.1837, allocations: 1.529 MB / 0.785 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001058/0.1848, allocations: 0.7965 MB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.106e-05/0.1848, allocations: 4 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.277e-05/0.1848, allocations: 3.938 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.006e-05/0.1849, allocations: 15.81 kB / 0.7858 GB, free: 11.03 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.0004068/0.1853, allocations: 127.5 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.986e-05/0.1854, allocations: 95.69 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 6.335e-05/0.1855, allocations: 11.98 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.231e-05/0.1856, allocations: 39.86 kB / 0.786 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.177e-05/0.1856, allocations: 39.81 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.673e-05/0.1857, allocations: 12 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.1858, allocations: 99.84 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.439e-05/0.1858, allocations: 19.92 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.339e-05/0.1859, allocations: 35.8 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.1861, allocations: 151.9 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.1861, allocations: 0 / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.32e-07/0.1861, allocations: 0 / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.1861, allocations: 0 / 0.7864 GB, free: 10.41 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005927/0.1867, allocations: 482.5 kB / 0.7868 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.671e-05/0.1867, allocations: 12.03 kB / 0.7868 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.795e-05/0.1868, allocations: 34.73 kB / 0.7869 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.1868, allocations: 8.844 kB / 0.7869 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.1869, allocations: 184.2 kB / 0.7871 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.616e-05/0.187, allocations: 38.25 kB / 0.7871 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.187, allocations: 4.375 kB / 0.7871 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001713/0.1872, allocations: 77.58 kB / 0.7872 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.1872, allocations: 8 kB / 0.7872 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.1872, allocations: 0 / 0.7872 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.765e-06/0.1872, allocations: 0 / 0.7872 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.1874, allocations: 51.89 kB / 0.7872 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004202/0.1878, allocations: 320.7 kB / 0.7875 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.188, allocations: 70.53 kB / 0.7876 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.994e-05/0.1881, allocations: 40.84 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.1882, allocations: 3.938 kB / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002014/0.1884, allocations: 107.5 kB / 0.7877 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.1884, allocations: 0 / 0.7877 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004124/0.1888, allocations: 161.5 kB / 0.7879 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.798e-05/0.1888, allocations: 59.39 kB / 0.788 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.502e-05/0.1889, allocations: 130.1 kB / 0.7881 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.1889, allocations: 33.69 kB / 0.7881 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.123e-05/0.189, allocations: 100.3 kB / 0.7882 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.189, allocations: 19.75 kB / 0.7882 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.443e-05/0.1891, allocations: 29.7 kB / 0.7883 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.233e-05/0.1892, allocations: 326.8 kB / 0.7886 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.63e-05/0.1893, allocations: 27.97 kB / 0.7886 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.1894, allocations: 77.12 kB / 0.7887 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002014/0.1896, allocations: 101 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1896, allocations: 4 kB / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002713/0.1899, allocations: 137.3 kB / 0.7889 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.1899, allocations: 11.92 kB / 0.7889 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.1899, allocations: 4 kB / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.747e-06/0.1899, allocations: 0 / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.19, allocations: 15.98 kB / 0.7889 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.19, allocations: 7.938 kB / 0.7889 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.1902, allocations: 20.11 kB / 0.789 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.1902, allocations: 8 kB / 0.789 GB, free: 7.461 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.05e-05/0.1903, allocations: 121.8 kB / 0.7891 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.761e-05/0.1903, allocations: 7.906 kB / 0.7891 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.923e-05/0.1903, allocations: 16.7 kB / 0.7891 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1903, allocations: 0 / 0.7891 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.1903, allocations: 0 / 0.7891 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1903, allocations: 384 / 0.7891 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005302/0.1909, allocations: 446.1 kB / 0.7895 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1909, allocations: 0 / 0.7895 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.922e-05/0.1909, allocations: 7.984 kB / 0.7895 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.191, allocations: 4 kB / 0.7895 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.191, allocations: 3.984 kB / 0.7895 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.191, allocations: 3.938 kB / 0.7895 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.191, allocations: 4 kB / 0.7895 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000299/0.1913, allocations: 223.3 kB / 0.7898 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.854e-05/0.1913, allocations: 89 kB / 0.7898 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.1914, allocations: 4 kB / 0.7898 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.1915, allocations: 15.92 kB / 0.7899 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.1915, allocations: 15.98 kB / 0.7899 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.1916, allocations: 4 kB / 0.7899 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.887e-05/0.1916, allocations: 97.66 kB / 0.79 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1916, allocations: 0 / 0.79 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000282/0.1919, allocations: 47.98 kB / 0.79 GB, free: 6.27 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0007084/0.1926, allocations: 0.8248 MB / 0.7908 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002704/0.1929, allocations: 91.83 kB / 0.7909 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1929, allocations: 4.25 kB / 0.7909 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.193, allocations: 47.91 kB / 0.791 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.1933, allocations: 26.67 kB / 0.791 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.1949, allocations: 1.616 MB / 0.7926 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.1951, allocations: 0.6885 MB / 0.7932 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.034e-05/0.1952, allocations: 16.66 kB / 0.7933 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.954e-05/0.1952, allocations: 27.42 kB / 0.7933 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.1952, allocations: 0 / 0.7933 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.881/3.076, allocations: 3.06 MB / 0.7963 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/11.13, allocations: 8.188 kB / 0.7963 GB, free: 15.8 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1)