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.001181/0.001181, allocations: 105.4 kB / 15.7 MB, free: 24 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.001231/0.001231, allocations: 196.8 kB / 16.64 MB, free: 6.453 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.514/1.514, allocations: 205.1 MB / 222.5 MB, free: 4.59 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.852/1.852, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001654/0.001654, allocations: 69.84 kB / 0.6718 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2055, allocations: 114.5 MB / 0.7836 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002698/0.2083, allocations: 1.486 MB / 0.7851 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001276/0.2096, allocations: 0.7653 MB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.368e-05/0.2096, allocations: 3.938 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.539e-05/0.2097, allocations: 11.86 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.108e-05/0.2098, allocations: 7.938 kB / 0.7858 GB, free: 11.02 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.0005937/0.2104, allocations: 131.5 kB / 0.786 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.2105, allocations: 67.84 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.999e-05/0.2106, allocations: 15.97 kB / 0.7861 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.613e-05/0.2107, allocations: 31.92 kB / 0.7861 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.834e-05/0.2108, allocations: 43.81 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.2108, allocations: 4 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.211, allocations: 99.84 kB / 0.7862 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.913e-05/0.211, allocations: 23.92 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.686e-05/0.2111, allocations: 31.86 kB / 0.7863 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.2113, allocations: 139.8 kB / 0.7864 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2113, allocations: 0 / 0.7864 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2113, allocations: 0 / 0.7864 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.2113, allocations: 4 kB / 0.7864 GB, free: 10.43 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.0005901/0.2119, allocations: 409 kB / 0.7868 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.212, allocations: 12.03 kB / 0.7868 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.208e-05/0.212, allocations: 38.73 kB / 0.7869 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.556e-05/0.2121, allocations: 12.84 kB / 0.7869 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.2122, allocations: 176.2 kB / 0.787 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.2122, allocations: 8.312 kB / 0.787 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.2122, allocations: 384 / 0.787 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/0.2124, allocations: 81.75 kB / 0.7871 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.2125, allocations: 3.938 kB / 0.7871 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.2125, allocations: 3.984 kB / 0.7871 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.2125, allocations: 4 kB / 0.7871 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.2126, allocations: 35.98 kB / 0.7872 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005927/0.2132, allocations: 316.7 kB / 0.7875 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001237/0.2134, allocations: 42.56 kB / 0.7875 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.829e-05/0.2134, allocations: 36.97 kB / 0.7875 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.2135, allocations: 11.88 kB / 0.7876 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001875/0.2137, allocations: 83.44 kB / 0.7876 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.2137, allocations: 0 / 0.7876 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.000388/0.2141, allocations: 129.6 kB / 0.7878 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.2141, allocations: 55.39 kB / 0.7878 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.28e-05/0.2142, allocations: 125.8 kB / 0.7879 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.2143, allocations: 29.7 kB / 0.788 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.158e-05/0.2143, allocations: 100 kB / 0.7881 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.845e-05/0.2143, allocations: 15.81 kB / 0.7881 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.868e-05/0.2144, allocations: 29.7 kB / 0.7881 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.2145, allocations: 318.8 kB / 0.7884 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.236e-05/0.2146, allocations: 27.97 kB / 0.7884 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.876e-05/0.2147, allocations: 46.56 kB / 0.7885 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.2148, allocations: 70.55 kB / 0.7885 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2149, allocations: 3.938 kB / 0.7885 GB, free: 8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000236/0.2151, allocations: 121.4 kB / 0.7887 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.2151, allocations: 10.72 kB / 0.7887 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.2151, allocations: 4 kB / 0.7887 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.2152, allocations: 0 / 0.7887 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.913e-05/0.2153, allocations: 8 kB / 0.7887 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.2153, allocations: 3.984 kB / 0.7887 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.248e-05/0.2153, allocations: 4 kB / 0.7887 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.2154, allocations: 8 kB / 0.7887 GB, free: 7.84 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.426e-05/0.2154, allocations: 122.4 kB / 0.7888 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.846e-05/0.2155, allocations: 11.91 kB / 0.7888 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.799e-05/0.2155, allocations: 20.3 kB / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2155, allocations: 0 / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2155, allocations: 0 / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2155, allocations: 0 / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004264/0.216, allocations: 374.5 kB / 0.7892 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.216, allocations: 0 / 0.7892 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.087e-05/0.216, allocations: 8 kB / 0.7892 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.216, allocations: 0 / 0.7892 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.216, allocations: 7.984 kB / 0.7892 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.2161, allocations: 7.938 kB / 0.7892 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2161, allocations: 3.938 kB / 0.7892 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002686/0.2163, allocations: 203.9 kB / 0.7894 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.2164, allocations: 85.02 kB / 0.7895 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.2164, allocations: 3.984 kB / 0.7895 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.947e-05/0.2165, allocations: 11.94 kB / 0.7895 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.2165, allocations: 7.984 kB / 0.7895 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.2166, allocations: 4 kB / 0.7895 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.688e-05/0.2166, allocations: 95.86 kB / 0.7896 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2166, allocations: 0 / 0.7896 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002926/0.2169, allocations: 39.94 kB / 0.7897 GB, free: 6.754 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.0007241/0.2176, allocations: 0.8027 MB / 0.7904 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002298/0.2179, allocations: 79.88 kB / 0.7905 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2179, allocations: 0 / 0.7905 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.783e-05/0.218, allocations: 36.11 kB / 0.7906 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.2183, allocations: 17.34 kB / 0.7906 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.2199, allocations: 1.486 MB / 0.792 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.2201, allocations: 0.6885 MB / 0.7927 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.111e-05/0.2202, allocations: 7.984 kB / 0.7927 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.561e-05/0.2202, allocations: 18.94 kB / 0.7927 GB, free: 3.496 MB / 0.6075 GB Notification: Performance of SimCode: time 3.71e-07/0.2202, allocations: 3.938 kB / 0.7927 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.237, allocations: 2.638 MB / 0.7953 GB, free: 1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.57/7.807, allocations: 15.19 kB / 0.7953 GB, free: 0.9883 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1)