Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.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.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad,fileNamePrefix="Buildings_8_Buildings_Experimental_DHC_Loads_BaseClasses_Validation_GetPeakLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad,fileNamePrefix="Buildings_8_Buildings_Experimental_DHC_Loads_BaseClasses_Validation_GetPeakLoad",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.001328/0.001329, 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.001362/0.001362, allocations: 195.4 kB / 16.53 MB, free: 6.699 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.21/1.21, allocations: 205.1 MB / 222.4 MB, free: 4.629 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.564/1.564, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001302/0.001302, allocations: 67.09 kB / 0.6716 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2026, allocations: 114.6 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad): time 0.002456/0.2051, allocations: 1.213 MB / 0.7847 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.2071, allocations: 1.246 MB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.005e-05/0.2071, allocations: 0 / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.863e-05/0.2072, allocations: 0 / 0.7859 GB, free: 10.89 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:1211:5-1277:25:writable] Warning: Pure function 'Modelica.Utilities.Strings.Advanced.skipLineComments' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:965:3-1021:18:writable] Warning: Pure function 'Modelica.Utilities.Strings.syntaxError' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:846:3-933:20:writable] Warning: Pure function 'Modelica.Utilities.Strings.scanDelimiter' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:638:3-686:15:writable] Warning: Pure function 'Modelica.Utilities.Strings.scanReal' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.scanReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Experimental/DHC/Loads/BaseClasses/getPeakLoad.mo:2:1-99:16:writable] Warning: Pure function 'Buildings.Experimental.DHC.Loads.BaseClasses.getPeakLoad' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.0007289/0.2079, allocations: 203.3 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 9.724e-05/0.208, allocations: 35.94 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 4.965e-05/0.2081, allocations: 27.84 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.717e-05/0.2081, allocations: 3.938 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.978e-05/0.2081, allocations: 12 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.2083, allocations: 22.56 kB / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.2083, allocations: 0 / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003209/0.2087, allocations: 239.7 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.036e-05/0.2087, allocations: 0 / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.46e-05/0.2087, allocations: 11.92 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002875/0.209, allocations: 211.7 kB / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.209, allocations: 3.938 kB / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.012e-06/0.209, allocations: 0 / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.209, allocations: 0 / 0.7866 GB, free: 10.14 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003923/0.2094, allocations: 390.3 kB / 0.787 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.2095, allocations: 11.97 kB / 0.787 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.679e-05/0.2095, allocations: 110 kB / 0.7871 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.946e-05/0.2096, allocations: 80.22 kB / 0.7872 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.2097, allocations: 239.7 kB / 0.7874 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.977e-05/0.2098, allocations: 150.9 kB / 0.7876 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.2098, allocations: 150.9 kB / 0.7877 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.906e-05/0.2099, allocations: 112.9 kB / 0.7878 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.2099, allocations: 83.28 kB / 0.7879 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.861e-05/0.21, allocations: 154.5 kB / 0.788 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.002e-05/0.21, allocations: 150.6 kB / 0.7882 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.687e-05/0.2101, allocations: 150.6 kB / 0.7883 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002445/0.2103, allocations: 450 kB / 0.7888 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 7.156e-05/0.2104, allocations: 165.1 kB / 0.7889 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.839e-05/0.2104, allocations: 84.12 kB / 0.789 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.2105, allocations: 83.16 kB / 0.7891 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.2105, allocations: 113.8 kB / 0.7892 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 8.02e-07/0.2105, allocations: 0 / 0.7892 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 6.808e-05/0.2106, allocations: 29.7 kB / 0.7892 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.976e-05/0.2107, allocations: 203.8 kB / 0.7894 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.298e-05/0.2108, allocations: 97.84 kB / 0.7895 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.2108, allocations: 29.7 kB / 0.7895 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.325e-05/0.2108, allocations: 84.14 kB / 0.7896 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.162e-06/0.2108, allocations: 0 / 0.7896 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.28e-05/0.2109, allocations: 17.77 kB / 0.7896 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.006e-05/0.2109, allocations: 314.8 kB / 0.7899 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-06/0.211, allocations: 0 / 0.7899 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.393e-05/0.211, allocations: 34.53 kB / 0.79 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.613e-05/0.211, allocations: 75.28 kB / 0.79 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.935e-05/0.211, allocations: 75.28 kB / 0.7901 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0) (initialization): time 6.006e-05/0.2111, allocations: 33.64 kB / 0.7901 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.43e-05/0.2112, allocations: 87.22 kB / 0.7902 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.2112, allocations: 79.27 kB / 0.7903 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.138e-05/0.2112, allocations: 158.5 kB / 0.7904 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.931e-05/0.2113, allocations: 75.28 kB / 0.7905 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-05/0.2113, allocations: 158.5 kB / 0.7907 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001427/0.2115, allocations: 83.28 kB / 0.7908 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.2115, allocations: 83.22 kB / 0.7908 GB, free: 5.562 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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 9.978e-05/0.2116, allocations: 264.3 kB / 0.7911 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.875e-05/0.2117, allocations: 104.9 kB / 0.7912 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.038e-05/0.2117, allocations: 112.1 kB / 0.7913 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.275e-05/0.2118, allocations: 184.2 kB / 0.7915 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.268e-05/0.2118, allocations: 180.3 kB / 0.7916 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-05/0.2119, allocations: 180.2 kB / 0.7918 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.2121, allocations: 405.2 kB / 0.7922 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.368e-05/0.2121, allocations: 104.9 kB / 0.7923 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.093e-05/0.2121, allocations: 104.9 kB / 0.7924 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-05/0.2122, allocations: 184.3 kB / 0.7926 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/0.2123, allocations: 188.4 kB / 0.7928 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.166e-05/0.2123, allocations: 176.3 kB / 0.7929 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.804e-05/0.2124, allocations: 176.3 kB / 0.7931 GB, free: 3.098 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001167/0.2125, allocations: 307.8 kB / 0.7934 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.071e-05/0.2126, allocations: 198 kB / 0.7936 GB, free: 2.555 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.281e-05/0.2126, allocations: 176.3 kB / 0.7937 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.2128, allocations: 113 kB / 0.7938 GB, free: 2.258 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.2128, allocations: 184.2 kB / 0.794 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.2129, allocations: 101 kB / 0.7941 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.187e-05/0.2129, allocations: 79.28 kB / 0.7942 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2129, allocations: 4 kB / 0.7942 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000368/0.2133, allocations: 79.98 kB / 0.7943 GB, free: 1.805 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0008792/0.2142, allocations: 1.017 MB / 0.7953 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 4.541e-05/0.2142, allocations: 8 kB / 0.7953 GB, free: 0.8008 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2142, allocations: 0 / 0.7953 GB, free: 0.8008 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.845e-06/0.2142, allocations: 4 kB / 0.7953 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.2146, allocations: 459.6 kB / 0.7957 GB, free: 352 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.2156, allocations: 1.602 MB / 0.7973 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.2159, allocations: 0.6768 MB / 0.7979 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 2.885e-05/0.2159, allocations: 3.984 kB / 0.7979 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.901e-05/0.2159, allocations: 19.42 kB / 0.798 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of SimCode: time 2.2e-07/0.2159, allocations: 0 / 0.798 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.2381, allocations: 3.04 MB / 0.8009 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.04/7.279, allocations: 11.53 kB / 0.8009 GB, free: 11.03 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.pipe ; mkfifo Buildings_8_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.pipe ; head -c 1048576 < Buildings_8_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.pipe >> ../files/Buildings_8_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Experimental_DHC_Loads_BaseClasses_Validation_GetPeakLoad.fmu > Buildings_8_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.pipe 2>&1)