Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 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.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_Buildings_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.001421/0.001421, allocations: 101.4 kB / 15.7 MB, free: 28 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.001973/0.001973, allocations: 200.6 kB / 16.64 MB, free: 6.43 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.358/1.358, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.666/1.666, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001349/0.001349, allocations: 77.8 kB / 0.6718 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1938, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002696/0.1966, allocations: 1.535 MB / 0.7851 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003031/0.1969, allocations: 108.5 kB / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.465e-05/0.1969, allocations: 0 / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.1971, allocations: 7.875 kB / 0.7852 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.037e-05/0.1971, allocations: 15.92 kB / 0.7853 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.1974, allocations: 27.95 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.305e-05/0.1975, allocations: 51.84 kB / 0.7853 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.1976, allocations: 31.97 kB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.164e-05/0.1977, allocations: 27.86 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.498e-05/0.1977, allocations: 31.89 kB / 0.7854 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.1977, allocations: 4 kB / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.527e-05/0.1978, allocations: 8 kB / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.982e-05/0.1979, allocations: 15.92 kB / 0.7854 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.956e-05/0.1979, allocations: 27.86 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.198, allocations: 64.02 kB / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.198, allocations: 0 / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.503e-06/0.198, allocations: 0 / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.1981, allocations: 0 / 0.7855 GB, free: 11.28 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004978/0.1986, allocations: 383.2 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.1986, allocations: 12.03 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.749e-05/0.1986, allocations: 34.75 kB / 0.7859 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.729e-05/0.1987, allocations: 8.844 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.1988, allocations: 184.2 kB / 0.7861 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.1989, allocations: 384 / 0.7861 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.32e-05/0.1989, allocations: 8.359 kB / 0.7861 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.1991, allocations: 98.08 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.1992, allocations: 3.938 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.1992, allocations: 0 / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.1992, allocations: 0 / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003035/0.1995, allocations: 75.92 kB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005/0.2, allocations: 332.6 kB / 0.7866 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002043/0.2002, allocations: 58.53 kB / 0.7867 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.2004, allocations: 40.92 kB / 0.7867 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.2004, allocations: 8 kB / 0.7867 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.2004, allocations: 30.56 kB / 0.7868 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.2005, allocations: 0 / 0.7868 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0005447/0.201, allocations: 137.6 kB / 0.7869 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.201, allocations: 55.41 kB / 0.7869 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.583e-05/0.2011, allocations: 117.8 kB / 0.7871 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.2012, allocations: 25.7 kB / 0.7871 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.821e-05/0.2012, allocations: 95.97 kB / 0.7872 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.2012, allocations: 11.91 kB / 0.7872 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.2013, allocations: 13.72 kB / 0.7872 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.27e-05/0.2014, allocations: 318.8 kB / 0.7875 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.2015, allocations: 39.95 kB / 0.7875 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.2017, allocations: 31.95 kB / 0.7876 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002712/0.202, allocations: 72.78 kB / 0.7876 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.202, allocations: 0 / 0.7876 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003344/0.2023, allocations: 109.5 kB / 0.7877 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.2023, allocations: 11.94 kB / 0.7878 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.2023, allocations: 3.984 kB / 0.7878 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.2024, allocations: 336 / 0.7878 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.2025, allocations: 15.98 kB / 0.7878 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.2025, allocations: 0 / 0.7878 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.622e-05/0.2026, allocations: 11.98 kB / 0.7878 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.2026, allocations: 4 kB / 0.7878 GB, free: 8.738 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 (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 7.549e-05/0.2027, allocations: 122.4 kB / 0.7879 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.2027, allocations: 7.891 kB / 0.7879 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003668/0.2031, allocations: 113.5 kB / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.2031, allocations: 4 kB / 0.788 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2031, allocations: 0 / 0.788 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.2031, allocations: 0 / 0.788 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.2033, allocations: 185.6 kB / 0.7882 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2033, allocations: 4 kB / 0.7882 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.596e-05/0.2034, allocations: 23.91 kB / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2034, allocations: 0 / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.2034, allocations: 4 kB / 0.7882 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2034, allocations: 0 / 0.7882 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2034, allocations: 0 / 0.7882 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/0.2038, allocations: 207.3 kB / 0.7884 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.964e-05/0.2039, allocations: 84.95 kB / 0.7885 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.2039, allocations: 0 / 0.7885 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.204, allocations: 11.98 kB / 0.7885 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.204, allocations: 11.98 kB / 0.7885 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.2041, allocations: 0 / 0.7885 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.888e-05/0.2041, allocations: 91.27 kB / 0.7886 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2041, allocations: 0 / 0.7886 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002452/0.2044, allocations: 15.94 kB / 0.7886 GB, free: 7.762 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 (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.0006685/0.205, allocations: 0.7358 MB / 0.7894 GB, free: 7 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003512/0.2054, allocations: 75.86 kB / 0.7894 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.2054, allocations: 0 / 0.7894 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.2056, allocations: 47.89 kB / 0.7895 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.2059, allocations: 6.656 kB / 0.7895 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.2077, allocations: 1.431 MB / 0.7909 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.208, allocations: 0.6885 MB / 0.7915 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.855e-05/0.208, allocations: 7.984 kB / 0.7916 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.307e-05/0.2081, allocations: 19.44 kB / 0.7916 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of SimCode: time 4.61e-07/0.2081, allocations: 0 / 0.7916 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01591/0.224, allocations: 1.799 MB / 0.7933 GB, free: 2.891 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.658/7.882, allocations: 15.17 kB / 0.7933 GB, free: 2.879 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)