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.0013/0.0013, allocations: 108 kB / 15.6 MB, free: 132 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.001291/0.001291, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.352/1.352, allocations: 205.1 MB / 222.4 MB, free: 4.57 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.719/1.719, allocations: 292.3 MB / 0.5489 GB, free: 13.54 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.001372/0.001372, allocations: 69.06 kB / 0.6716 GB, free: 25.86 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.275, allocations: 114.5 MB / 0.7835 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003397/0.2784, allocations: 1.539 MB / 0.785 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003938/0.2788, allocations: 112.5 kB / 0.7851 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.841e-05/0.2789, allocations: 0 / 0.7851 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.279, allocations: 7.922 kB / 0.7851 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.88e-05/0.2791, allocations: 19.8 kB / 0.7851 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.2794, allocations: 23.97 kB / 0.7851 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.994e-05/0.2795, allocations: 55.84 kB / 0.7852 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.2796, allocations: 23.98 kB / 0.7852 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.577e-05/0.2797, allocations: 23.92 kB / 0.7852 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.834e-05/0.2798, allocations: 35.83 kB / 0.7853 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.885e-05/0.2798, allocations: 8 kB / 0.7853 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.2799, allocations: 4 kB / 0.7853 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.516e-05/0.2799, allocations: 19.98 kB / 0.7853 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.325e-05/0.28, allocations: 27.8 kB / 0.7853 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.2801, allocations: 56.14 kB / 0.7854 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2801, allocations: 0 / 0.7854 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2801, allocations: 0 / 0.7854 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.2801, allocations: 0 / 0.7854 GB, free: 11.56 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.0005738/0.2807, allocations: 387.2 kB / 0.7857 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.2807, allocations: 12.03 kB / 0.7858 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.562e-05/0.2808, allocations: 30.75 kB / 0.7858 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.335e-05/0.2808, allocations: 8.844 kB / 0.7858 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/0.281, allocations: 188.3 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.281, allocations: 4.312 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.281, allocations: 4.375 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.2813, allocations: 86.2 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.2813, allocations: 3.938 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.2814, allocations: 4 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.2814, allocations: 0 / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003055/0.2817, allocations: 79.91 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006179/0.2823, allocations: 328.6 kB / 0.7865 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000225/0.2825, allocations: 58.53 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.2827, allocations: 40.92 kB / 0.7866 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 5.335e-05/0.2828, allocations: 8.031 kB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.2828, allocations: 34.55 kB / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.843e-06/0.2828, allocations: 7.938 kB / 0.7866 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0006075/0.2835, allocations: 129.8 kB / 0.7867 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.2835, allocations: 55.41 kB / 0.7868 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.2836, allocations: 121.7 kB / 0.7869 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.2837, allocations: 25.7 kB / 0.7869 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.762e-05/0.2837, allocations: 108 kB / 0.787 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.2838, allocations: 3.906 kB / 0.787 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.934e-05/0.2838, allocations: 13.72 kB / 0.787 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.284, allocations: 322.8 kB / 0.7873 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.2841, allocations: 31.97 kB / 0.7874 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.2843, allocations: 43.88 kB / 0.7874 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/0.2846, allocations: 72.78 kB / 0.7875 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2846, allocations: 0 / 0.7875 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003506/0.2849, allocations: 105.5 kB / 0.7876 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.2849, allocations: 11.98 kB / 0.7876 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.285, allocations: 0 / 0.7876 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.285, allocations: 0 / 0.7876 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.2851, allocations: 15.98 kB / 0.7876 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.2851, allocations: 0 / 0.7876 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.021e-05/0.2852, allocations: 11.98 kB / 0.7876 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.2852, allocations: 0 / 0.7876 GB, free: 9.016 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 0.0001074/0.2854, allocations: 130.4 kB / 0.7877 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.814e-05/0.2854, allocations: 3.906 kB / 0.7878 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003874/0.2858, allocations: 109.5 kB / 0.7879 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.2858, allocations: 4 kB / 0.7879 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2858, allocations: 0 / 0.7879 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2858, allocations: 0 / 0.7879 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002288/0.286, allocations: 185.6 kB / 0.788 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2861, allocations: 4 kB / 0.788 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.658e-05/0.2862, allocations: 15.97 kB / 0.7881 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2862, allocations: 4 kB / 0.7881 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.2862, allocations: 0 / 0.7881 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2862, allocations: 0 / 0.7881 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2862, allocations: 0 / 0.7881 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003982/0.2866, allocations: 207.3 kB / 0.7883 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.512e-05/0.2867, allocations: 88.89 kB / 0.7883 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.2867, allocations: 0 / 0.7883 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.2868, allocations: 11.98 kB / 0.7884 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.2869, allocations: 7.984 kB / 0.7884 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.2869, allocations: 0 / 0.7884 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.229e-05/0.2869, allocations: 95.27 kB / 0.7885 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.71e-07/0.287, allocations: 4 kB / 0.7885 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002487/0.2872, allocations: 19.88 kB / 0.7885 GB, free: 8.035 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.0007724/0.288, allocations: 0.7396 MB / 0.7892 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003793/0.2884, allocations: 72.2 kB / 0.7893 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2884, allocations: 0 / 0.7893 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.2886, allocations: 43.95 kB / 0.7893 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.2889, allocations: 1.125 kB / 0.7893 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.2909, allocations: 1.442 MB / 0.7907 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.2912, allocations: 0.6924 MB / 0.7914 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.8e-05/0.2913, allocations: 7.984 kB / 0.7914 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.032e-05/0.2913, allocations: 15.44 kB / 0.7914 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of SimCode: time 6.91e-07/0.2913, allocations: 0 / 0.7914 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02447/0.3158, allocations: 1.773 MB / 0.7931 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.055/7.371, allocations: 15.02 kB / 0.7932 GB, free: 3.16 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)