Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",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.00867/0.00867, allocations: 96.22 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 192.1 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002413/0.002413, allocations: 286.6 kB / 290.8 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.048/1.048, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002714/0.002714, allocations: 95.91 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1756/0.1783, allocations: 86.97 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002895/0.1812, allocations: 1.538 MB / 0.7674 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003368/0.1816, allocations: 108.5 kB / 0.7675 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.553e-05/0.1816, allocations: 0 / 0.7675 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.1818, allocations: 11.92 kB / 0.7675 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.698e-05/0.1818, allocations: 7.875 kB / 0.7675 GB, free: 7.266 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.182, allocations: 23.97 kB / 0.7676 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.1821, allocations: 59.77 kB / 0.7676 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.1823, allocations: 35.91 kB / 0.7676 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.717e-05/0.1823, allocations: 27.91 kB / 0.7677 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.779e-05/0.1824, allocations: 23.92 kB / 0.7677 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.1824, allocations: 4 kB / 0.7677 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.014e-05/0.1825, allocations: 19.98 kB / 0.7677 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.5e-05/0.1826, allocations: 15.92 kB / 0.7677 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.816e-05/0.1826, allocations: 23.86 kB / 0.7678 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001659/0.1828, allocations: 60.03 kB / 0.7678 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1828, allocations: 3.984 kB / 0.7678 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.022e-06/0.1828, allocations: 0 / 0.7678 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.1828, allocations: 0 / 0.7678 GB, free: 6.973 MB / 0.5606 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.0005736/0.1834, allocations: 383.1 kB / 0.7682 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.1834, allocations: 12.03 kB / 0.7682 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.47e-05/0.1835, allocations: 46.73 kB / 0.7682 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.559e-05/0.1835, allocations: 4.938 kB / 0.7682 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001907/0.1837, allocations: 180.2 kB / 0.7684 GB, free: 6.262 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.1837, allocations: 8.375 kB / 0.7684 GB, free: 6.254 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.1837, allocations: 4.375 kB / 0.7684 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.184, allocations: 82.2 kB / 0.7685 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.184, allocations: 3.938 kB / 0.7685 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.1841, allocations: 3.984 kB / 0.7685 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1842, allocations: 8 kB / 0.7685 GB, free: 6.148 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003114/0.1845, allocations: 79.86 kB / 0.7686 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006098/0.1851, allocations: 324.7 kB / 0.7689 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002201/0.1853, allocations: 70.55 kB / 0.769 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.1855, allocations: 44.91 kB / 0.769 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.418e-05/0.1855, allocations: 0 / 0.769 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.1856, allocations: 30.56 kB / 0.769 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1856, allocations: 8 kB / 0.7691 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0005616/0.1861, allocations: 137.5 kB / 0.7692 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.1862, allocations: 51.41 kB / 0.7692 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.1863, allocations: 121.8 kB / 0.7694 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.1863, allocations: 25.7 kB / 0.7694 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.849e-05/0.1864, allocations: 96.09 kB / 0.7695 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.1864, allocations: 11.83 kB / 0.7695 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/0.1865, allocations: 21.7 kB / 0.7695 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001725/0.1866, allocations: 322.7 kB / 0.7698 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.1868, allocations: 31.95 kB / 0.7698 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.187, allocations: 39.97 kB / 0.7699 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/0.1872, allocations: 68.78 kB / 0.7699 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1872, allocations: 0 / 0.7699 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003305/0.1876, allocations: 105.6 kB / 0.77 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.1876, allocations: 8 kB / 0.7701 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1876, allocations: 0 / 0.7701 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1876, allocations: 4 kB / 0.7701 GB, free: 4.445 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.1878, allocations: 19.91 kB / 0.7701 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.1878, allocations: 3.984 kB / 0.7701 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.509e-05/0.1879, allocations: 11.98 kB / 0.7701 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.1879, allocations: 4 kB / 0.7701 GB, free: 4.406 MB / 0.5606 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 (3): * Single equations (assignments): 3 * 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.784e-05/0.188, allocations: 118.4 kB / 0.7702 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.188, allocations: 4 kB / 0.7702 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003787/0.1884, allocations: 117.5 kB / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1884, allocations: 0 / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1884, allocations: 0 / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1884, allocations: 0 / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002416/0.1887, allocations: 181.5 kB / 0.7705 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1887, allocations: 4 kB / 0.7705 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.409e-05/0.1888, allocations: 19.92 kB / 0.7705 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1888, allocations: 0 / 0.7705 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.1888, allocations: 0 / 0.7705 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.1888, allocations: 7.984 kB / 0.7705 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1888, allocations: 0 / 0.7705 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003838/0.1892, allocations: 199.8 kB / 0.7707 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.805e-05/0.1893, allocations: 89.05 kB / 0.7708 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.1893, allocations: 0 / 0.7708 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.1894, allocations: 12.03 kB / 0.7708 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.416e-05/0.1895, allocations: 7.984 kB / 0.7708 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.1895, allocations: 4 kB / 0.7708 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.04e-05/0.1895, allocations: 95.64 kB / 0.7709 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1895, allocations: 4 kB / 0.7709 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002268/0.1898, allocations: 11.94 kB / 0.7709 GB, free: 3.445 MB / 0.5606 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 (3): * Single equations (assignments): 3 * 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.0007964/0.1906, allocations: 0.7431 MB / 0.7717 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003713/0.191, allocations: 75.92 kB / 0.7717 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.191, allocations: 0 / 0.7717 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.1911, allocations: 43.89 kB / 0.7718 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.1914, allocations: 16.27 kB / 0.7718 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.1934, allocations: 1.42 MB / 0.7732 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.1937, allocations: 0.6962 MB / 0.7739 GB, free: 332 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.434e-05/0.1938, allocations: 11.98 kB / 0.7739 GB, free: 320 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.1938, allocations: 15.44 kB / 0.7739 GB, free: 304 kB / 0.5606 GB Notification: Performance of SimCode: time 3.81e-07/0.1938, allocations: 0 / 0.7739 GB, free: 304 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3407/0.5345, allocations: 1.816 MB / 0.7757 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/8.273, allocations: 8.703 kB / 0.7757 GB, free: 14.56 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)