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.004514/0.004514, allocations: 98.75 kB / 15.73 MB, free: 6.059 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.001291/0.001291, allocations: 189.1 kB / 16.67 MB, free: 5.969 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002455/0.002455, allocations: 286.5 kB / 290.8 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.077/1.077, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002673/0.002673, allocations: 102.9 kB / 0.6943 GB, free: 3.582 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4797/0.4823, allocations: 89.14 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002768/0.4851, allocations: 1.543 MB / 0.7828 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003205/0.4855, allocations: 112.8 kB / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.62e-05/0.4855, allocations: 7.938 kB / 0.783 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.4857, allocations: 9.75 kB / 0.783 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.599e-05/0.4857, allocations: 4.641 kB / 0.783 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.4859, allocations: 34.98 kB / 0.783 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.931e-05/0.486, allocations: 52.22 kB / 0.7831 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.4862, allocations: 28.25 kB / 0.7831 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.355e-05/0.4862, allocations: 26.62 kB / 0.7831 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.235e-05/0.4863, allocations: 27.62 kB / 0.7831 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.4863, allocations: 4.188 kB / 0.7831 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 5.98e-05/0.4864, allocations: 13.66 kB / 0.7832 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.827e-05/0.4865, allocations: 19.67 kB / 0.7832 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.674e-05/0.4865, allocations: 24.19 kB / 0.7832 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001509/0.4867, allocations: 55.7 kB / 0.7833 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.4867, allocations: 1.312 kB / 0.7833 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.332e-06/0.4867, allocations: 0 / 0.7833 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.98e-06/0.4867, allocations: 4 kB / 0.7833 GB, free: 12.55 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.0005838/0.4873, allocations: 381.5 kB / 0.7836 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.4873, allocations: 14.78 kB / 0.7836 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.254e-05/0.4874, allocations: 36.61 kB / 0.7837 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.915e-05/0.4874, allocations: 4.266 kB / 0.7837 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001935/0.4876, allocations: 196.1 kB / 0.7839 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.4876, allocations: 2.719 kB / 0.7839 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.4877, allocations: 7.719 kB / 0.7839 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.488, allocations: 85.78 kB / 0.784 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.488, allocations: 3.938 kB / 0.784 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.488, allocations: 1.344 kB / 0.784 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.488, allocations: 0.5625 kB / 0.784 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003445/0.4884, allocations: 87.27 kB / 0.784 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005365/0.4889, allocations: 324.9 kB / 0.7844 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.4891, allocations: 62.08 kB / 0.7844 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.4893, allocations: 43.19 kB / 0.7845 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.4893, allocations: 3.312 kB / 0.7845 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.4894, allocations: 36 kB / 0.7845 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.4894, allocations: 0 / 0.7845 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0005734/0.49, allocations: 138.4 kB / 0.7846 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.49, allocations: 52.59 kB / 0.7847 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.718e-05/0.4901, allocations: 120.3 kB / 0.7848 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.4901, allocations: 25.7 kB / 0.7848 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.441e-05/0.4902, allocations: 98.47 kB / 0.7849 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.4902, allocations: 9.969 kB / 0.7849 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.559e-05/0.4903, allocations: 17.33 kB / 0.7849 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.4904, allocations: 326.5 kB / 0.7852 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.4906, allocations: 32.36 kB / 0.7853 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.4907, allocations: 33.5 kB / 0.7853 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.491, allocations: 74.31 kB / 0.7854 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4911, allocations: 0 / 0.7854 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003486/0.4914, allocations: 103.2 kB / 0.7855 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.4914, allocations: 5.281 kB / 0.7855 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.4914, allocations: 1.562 kB / 0.7855 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.4915, allocations: 4.734 kB / 0.7855 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.4916, allocations: 22.25 kB / 0.7855 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.4916, allocations: 5.891 kB / 0.7855 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.868e-05/0.4917, allocations: 12.73 kB / 0.7855 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.4917, allocations: 3.938 kB / 0.7855 GB, free: 10.66 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.902e-05/0.4918, allocations: 119.8 kB / 0.7856 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.4918, allocations: 2.531 kB / 0.7856 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003904/0.4922, allocations: 113.6 kB / 0.7858 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.4923, allocations: 1.766 kB / 0.7858 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.4923, allocations: 4 kB / 0.7858 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.4923, allocations: 0 / 0.7858 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.4925, allocations: 182.7 kB / 0.7859 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4925, allocations: 0.6094 kB / 0.7859 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.715e-05/0.4926, allocations: 15.7 kB / 0.7859 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.4926, allocations: 1.5 kB / 0.7859 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.066e-06/0.4926, allocations: 4.594 kB / 0.786 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.4926, allocations: 4 kB / 0.786 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.4926, allocations: 1.812 kB / 0.786 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003976/0.493, allocations: 202.2 kB / 0.7862 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.4931, allocations: 87.61 kB / 0.7862 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.4931, allocations: 1.469 kB / 0.7862 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.4932, allocations: 19.47 kB / 0.7863 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.4933, allocations: 2.812 kB / 0.7863 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.4933, allocations: 3.344 kB / 0.7863 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.771e-05/0.4934, allocations: 90.48 kB / 0.7863 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4934, allocations: 0 / 0.7863 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000224/0.4936, allocations: 12.75 kB / 0.7864 GB, free: 9.934 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.0007289/0.4943, allocations: 0.7416 MB / 0.7871 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003587/0.4947, allocations: 78.58 kB / 0.7872 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4947, allocations: 0 / 0.7872 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.4949, allocations: 41.36 kB / 0.7872 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.4952, allocations: 12 kB / 0.7872 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.4971, allocations: 1.421 MB / 0.7886 GB, free: 8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.4974, allocations: 0.6925 MB / 0.7893 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.326e-05/0.4975, allocations: 6.828 kB / 0.7893 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.293e-05/0.4975, allocations: 16.14 kB / 0.7893 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of SimCode: time 3.7e-07/0.4975, allocations: 4 kB / 0.7893 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02429/0.5218, allocations: 1.84 MB / 0.7911 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.616/8.138, allocations: 4.5 kB / 0.7911 GB, free: 6.863 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)