Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",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.001552/0.001552, 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.001169/0.001169, allocations: 194.8 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.304/1.304, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.658/1.658, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001473/0.001473, allocations: 67.83 kB / 0.6716 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1852, allocations: 114.6 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002476/0.1877, allocations: 1.469 MB / 0.7849 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001224/0.189, allocations: 0.7692 MB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.269e-05/0.189, allocations: 7.938 kB / 0.7857 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.626e-05/0.1891, allocations: 3.938 kB / 0.7857 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.386e-05/0.1892, allocations: 15.84 kB / 0.7857 GB, free: 11.11 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.0005208/0.1897, allocations: 127.6 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.486e-05/0.1898, allocations: 67.84 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.097e-05/0.1899, allocations: 11.94 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.969e-05/0.19, allocations: 43.83 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.94e-05/0.19, allocations: 35.91 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.791e-05/0.1901, allocations: 4 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.1902, allocations: 95.91 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.581e-05/0.1903, allocations: 19.91 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.179e-05/0.1903, allocations: 27.86 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002009/0.1905, allocations: 143.8 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1905, allocations: 0 / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1905, allocations: 0 / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.164e-06/0.1906, allocations: 0 / 0.7862 GB, free: 10.55 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005546/0.1911, allocations: 425 kB / 0.7866 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.1912, allocations: 8.031 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.473e-05/0.1912, allocations: 34.75 kB / 0.7867 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.503e-05/0.1912, allocations: 16.78 kB / 0.7867 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.1914, allocations: 176.2 kB / 0.7869 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.1914, allocations: 8.359 kB / 0.7869 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.1914, allocations: 4.375 kB / 0.7869 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.1916, allocations: 77.77 kB / 0.787 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.1916, allocations: 4 kB / 0.787 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.1916, allocations: 3.938 kB / 0.787 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.1916, allocations: 0 / 0.787 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.1918, allocations: 39.95 kB / 0.787 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000544/0.1923, allocations: 316.7 kB / 0.7873 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.1924, allocations: 50.55 kB / 0.7873 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.105e-05/0.1925, allocations: 40.91 kB / 0.7874 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.1926, allocations: 3.938 kB / 0.7874 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.1928, allocations: 75.38 kB / 0.7875 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.1928, allocations: 0 / 0.7875 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003787/0.1932, allocations: 137.7 kB / 0.7876 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.1932, allocations: 55.41 kB / 0.7876 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.54e-05/0.1933, allocations: 129.7 kB / 0.7878 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.1933, allocations: 29.7 kB / 0.7878 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/0.1934, allocations: 92.08 kB / 0.7879 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.1934, allocations: 15.75 kB / 0.7879 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.736e-05/0.1935, allocations: 25.7 kB / 0.7879 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.1936, allocations: 330.8 kB / 0.7882 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.221e-05/0.1937, allocations: 27.98 kB / 0.7883 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.05e-05/0.1938, allocations: 50.48 kB / 0.7883 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.1939, allocations: 66.56 kB / 0.7884 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1939, allocations: 4 kB / 0.7884 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002338/0.1942, allocations: 121.4 kB / 0.7885 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.1942, allocations: 4 kB / 0.7885 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1942, allocations: 0 / 0.7885 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.1942, allocations: 4 kB / 0.7885 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.396e-05/0.1943, allocations: 11.98 kB / 0.7885 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1943, allocations: 0 / 0.7885 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.281e-05/0.1944, allocations: 4 kB / 0.7885 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.1944, allocations: 12.05 kB / 0.7885 GB, free: 7.934 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (hea.occ,hea.curSeed,$PRE.hea.curSeed,hea.p,$PRE.hea.p,hea.on,$PRE.hea.on,hea.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.217e-05/0.1945, allocations: 126.4 kB / 0.7887 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.731e-05/0.1946, allocations: 7.906 kB / 0.7887 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.326e-05/0.1946, allocations: 4.375 kB / 0.7887 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.1946, allocations: 7.938 kB / 0.7887 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.1946, allocations: 0 / 0.7887 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1946, allocations: 0 / 0.7887 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004233/0.195, allocations: 378.5 kB / 0.789 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.195, allocations: 0 / 0.789 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.149e-05/0.1951, allocations: 7.984 kB / 0.789 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.1951, allocations: 0 / 0.789 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.1951, allocations: 0 / 0.789 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1951, allocations: 7.938 kB / 0.789 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1951, allocations: 7.938 kB / 0.7891 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002746/0.1954, allocations: 215.9 kB / 0.7893 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.646e-05/0.1955, allocations: 85.02 kB / 0.7893 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.1955, allocations: 0 / 0.7893 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-05/0.1956, allocations: 11.92 kB / 0.7894 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.358e-05/0.1956, allocations: 0 / 0.7894 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.1956, allocations: 11.94 kB / 0.7894 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.559e-05/0.1957, allocations: 91.27 kB / 0.7895 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1957, allocations: 3.938 kB / 0.7895 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002885/0.196, allocations: 39.98 kB / 0.7895 GB, free: 6.848 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: 6 (hea.sampleTrigger,$whenCondition1,hea.occ,hea.on,hea.p,hea.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.0007475/0.1967, allocations: 0.8055 MB / 0.7903 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002623/0.197, allocations: 75.89 kB / 0.7904 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.197, allocations: 0 / 0.7904 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.722e-05/0.1971, allocations: 35.97 kB / 0.7904 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.1974, allocations: 18.36 kB / 0.7904 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.1991, allocations: 1.482 MB / 0.7919 GB, free: 4.328 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.1994, allocations: 0.6924 MB / 0.7925 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.704e-05/0.1994, allocations: 4 kB / 0.7925 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.1995, allocations: 23.36 kB / 0.7926 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of SimCode: time 6.61e-07/0.1995, allocations: 0 / 0.7926 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0176/0.2171, allocations: 2.61 MB / 0.7951 GB, free: 1.109 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.079/7.296, allocations: 15.75 kB / 0.7951 GB, free: 1.094 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1)