Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Love1998Light2,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",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.001114/0.001114, allocations: 108 kB / 15.61 MB, free: 148 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.001084/0.001084, allocations: 194.2 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.288/1.288, allocations: 205.1 MB / 222.4 MB, free: 4.547 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.719/1.719, allocations: 292.3 MB / 0.5489 GB, free: 12.8 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.001381/0.001381, allocations: 71.89 kB / 0.6716 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1762, allocations: 114.6 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.00242/0.1787, allocations: 1.508 MB / 0.7849 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001195/0.1799, allocations: 0.7926 MB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.438e-05/0.1799, allocations: 0 / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.974e-05/0.18, allocations: 7.875 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.157e-05/0.1801, allocations: 19.86 kB / 0.7857 GB, free: 11.05 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.000484/0.1806, allocations: 127.5 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.1807, allocations: 87.7 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.867e-05/0.1807, allocations: 8 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.8e-05/0.1808, allocations: 43.83 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.171e-05/0.1809, allocations: 39.84 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.1809, allocations: 8 kB / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001655/0.1811, allocations: 95.84 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.614e-05/0.1811, allocations: 23.91 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.166e-05/0.1812, allocations: 31.84 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000202/0.1814, allocations: 155.8 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.1814, allocations: 0 / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.512e-06/0.1814, allocations: 0 / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.359e-06/0.1814, allocations: 0 / 0.7863 GB, free: 10.44 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.0006401/0.1821, allocations: 470.5 kB / 0.7868 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.1821, allocations: 8.031 kB / 0.7868 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.1822, allocations: 30.75 kB / 0.7868 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.328e-05/0.1822, allocations: 12.84 kB / 0.7868 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.1823, allocations: 180.2 kB / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.1823, allocations: 8.359 kB / 0.787 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.1824, allocations: 4.375 kB / 0.787 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.1825, allocations: 73.78 kB / 0.7871 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.1825, allocations: 4 kB / 0.7871 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.1826, allocations: 0 / 0.7871 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.1826, allocations: 4 kB / 0.7871 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.1827, allocations: 43.91 kB / 0.7871 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004716/0.1832, allocations: 316.7 kB / 0.7874 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001372/0.1833, allocations: 70.55 kB / 0.7875 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.396e-05/0.1834, allocations: 32.84 kB / 0.7875 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.1834, allocations: 96 / 0.7875 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001945/0.1836, allocations: 91.3 kB / 0.7876 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.1836, allocations: 0 / 0.7876 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0003754/0.184, allocations: 169.4 kB / 0.7878 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.1841, allocations: 51.41 kB / 0.7878 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.391e-05/0.1842, allocations: 136.5 kB / 0.788 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.1842, allocations: 33.64 kB / 0.788 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.914e-05/0.1843, allocations: 88.38 kB / 0.7881 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.663e-05/0.1843, allocations: 27.84 kB / 0.7881 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.825e-05/0.1843, allocations: 29.7 kB / 0.7881 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.905e-05/0.1844, allocations: 322.8 kB / 0.7884 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.078e-05/0.1845, allocations: 27.98 kB / 0.7885 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.991e-05/0.1846, allocations: 69.06 kB / 0.7885 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.1848, allocations: 105 kB / 0.7886 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1848, allocations: 0 / 0.7886 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002351/0.1851, allocations: 129.4 kB / 0.7888 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.1851, allocations: 6.656 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1851, allocations: 7.984 kB / 0.7888 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.1851, allocations: 0 / 0.7888 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.1852, allocations: 24.05 kB / 0.7888 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1852, allocations: 0 / 0.7888 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.967e-05/0.1853, allocations: 11.94 kB / 0.7888 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.1854, allocations: 11.98 kB / 0.7888 GB, free: 7.617 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 8.832e-05/0.1854, allocations: 121.8 kB / 0.7889 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.999e-05/0.1855, allocations: 7.906 kB / 0.7889 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003066/0.1858, allocations: 153.9 kB / 0.7891 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.1858, allocations: 0 / 0.7891 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1858, allocations: 0 / 0.7891 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1858, allocations: 0 / 0.7891 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005288/0.1863, allocations: 430.2 kB / 0.7895 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1864, allocations: 4 kB / 0.7895 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.642e-05/0.1864, allocations: 4 kB / 0.7895 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1864, allocations: 4 kB / 0.7895 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.1865, allocations: 7.984 kB / 0.7895 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.1865, allocations: 7.938 kB / 0.7895 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1865, allocations: 0 / 0.7895 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.1868, allocations: 231.7 kB / 0.7897 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.053e-05/0.1868, allocations: 88.94 kB / 0.7898 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.1868, allocations: 4 kB / 0.7898 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001174/0.187, allocations: 11.92 kB / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.291e-05/0.187, allocations: 19.92 kB / 0.7899 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.187, allocations: 4 kB / 0.7899 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.676e-05/0.1871, allocations: 99.27 kB / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1871, allocations: 0 / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003008/0.1874, allocations: 40 kB / 0.79 GB, free: 6.297 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 (12): * Single equations (assignments): 9 * 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.0007119/0.1881, allocations: 0.8178 MB / 0.7908 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002301/0.1884, allocations: 87.89 kB / 0.7909 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1884, allocations: 3.938 kB / 0.7909 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.1885, allocations: 52.16 kB / 0.7909 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.1888, allocations: 25.47 kB / 0.791 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.1904, allocations: 1.603 MB / 0.7925 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.1906, allocations: 0.6924 MB / 0.7932 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.813e-05/0.1907, allocations: 8.422 kB / 0.7932 GB, free: 2.875 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.659e-05/0.1907, allocations: 35.36 kB / 0.7932 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.1907, allocations: 0 / 0.7932 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01857/0.2093, allocations: 3.038 MB / 0.7962 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.203/7.413, allocations: 6.469 kB / 0.7962 GB, free: 15.9 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1)