Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_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.001171/0.001171, allocations: 101.5 kB / 16.26 MB, free: 5.93 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.001128/0.001129, allocations: 190.5 kB / 17.2 MB, free: 5.574 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.259/1.259, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7203/0.7203, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.89 kB / 0.4912 GB, free: 7.316 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3303, allocations: 77.92 MB / 0.5673 GB, free: 32.67 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.002633/0.3329, allocations: 1.523 MB / 0.5688 GB, free: 31.61 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000306/0.3333, allocations: 119.8 kB / 0.5689 GB, free: 31.53 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.911e-05/0.3333, allocations: 5.062 kB / 0.5689 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.3335, allocations: 12.17 kB / 0.5689 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.362e-05/0.3335, allocations: 5.562 kB / 0.5689 GB, free: 31.51 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.3337, allocations: 30.52 kB / 0.5689 GB, free: 31.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.825e-05/0.3338, allocations: 51.11 kB / 0.569 GB, free: 31.48 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.334, allocations: 33.28 kB / 0.569 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.823e-05/0.334, allocations: 22.92 kB / 0.569 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.964e-05/0.3341, allocations: 33.27 kB / 0.5691 GB, free: 31.44 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.3341, allocations: 4.375 kB / 0.5691 GB, free: 31.44 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.345e-05/0.3342, allocations: 9.969 kB / 0.5691 GB, free: 31.44 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.919e-05/0.3342, allocations: 16.12 kB / 0.5691 GB, free: 31.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.607e-05/0.3342, allocations: 28.88 kB / 0.5691 GB, free: 31.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.3343, allocations: 55.38 kB / 0.5692 GB, free: 31.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3344, allocations: 2.031 kB / 0.5692 GB, free: 31.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3344, allocations: 4.938 kB / 0.5692 GB, free: 31.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.3344, allocations: 0.9688 kB / 0.5692 GB, free: 31.39 MB / 446.1 MB 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.0004447/0.3348, allocations: 381.6 kB / 0.5695 GB, free: 31.01 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.3349, allocations: 9.625 kB / 0.5696 GB, free: 31.01 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.786e-05/0.3349, allocations: 37.94 kB / 0.5696 GB, free: 30.97 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.3349, allocations: 7.531 kB / 0.5696 GB, free: 30.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.3351, allocations: 185.7 kB / 0.5698 GB, free: 30.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.3351, allocations: 1.5 kB / 0.5698 GB, free: 30.76 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.3351, allocations: 7.094 kB / 0.5698 GB, free: 30.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002651/0.3354, allocations: 86.42 kB / 0.5699 GB, free: 30.71 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.3354, allocations: 7.031 kB / 0.5699 GB, free: 30.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.3354, allocations: 8.547 kB / 0.5699 GB, free: 30.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3354, allocations: 4.953 kB / 0.5699 GB, free: 30.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003104/0.3357, allocations: 80.98 kB / 0.57 GB, free: 30.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004597/0.3362, allocations: 332.5 kB / 0.5703 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.3364, allocations: 58.94 kB / 0.5703 GB, free: 30.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/0.3366, allocations: 39.34 kB / 0.5704 GB, free: 30.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.3366, allocations: 3.406 kB / 0.5704 GB, free: 30.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.3366, allocations: 32.84 kB / 0.5704 GB, free: 30.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.493e-06/0.3366, allocations: 0.9062 kB / 0.5704 GB, free: 30.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005719/0.3372, allocations: 144.9 kB / 0.5705 GB, free: 30.25 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.3373, allocations: 53.34 kB / 0.5706 GB, free: 30.19 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.055e-05/0.3373, allocations: 113.2 kB / 0.5707 GB, free: 30.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.049e-05/0.3373, allocations: 25.7 kB / 0.5707 GB, free: 30.05 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.01e-05/0.3374, allocations: 97.44 kB / 0.5708 GB, free: 29.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.3374, allocations: 10.39 kB / 0.5708 GB, free: 29.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.18e-05/0.3375, allocations: 18.36 kB / 0.5708 GB, free: 29.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.445e-05/0.3375, allocations: 320.1 kB / 0.5712 GB, free: 29.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.3377, allocations: 33.23 kB / 0.5712 GB, free: 29.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.3378, allocations: 34.31 kB / 0.5712 GB, free: 29.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002818/0.3381, allocations: 76.3 kB / 0.5713 GB, free: 29.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3381, allocations: 0 / 0.5713 GB, free: 29.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003207/0.3385, allocations: 108.8 kB / 0.5714 GB, free: 29.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.3385, allocations: 7.625 kB / 0.5714 GB, free: 29.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3385, allocations: 0 / 0.5714 GB, free: 29.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3385, allocations: 2.391 kB / 0.5714 GB, free: 29.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.3386, allocations: 14.48 kB / 0.5714 GB, free: 29.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.3386, allocations: 1.844 kB / 0.5714 GB, free: 29.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.684e-05/0.3387, allocations: 16.58 kB / 0.5714 GB, free: 29.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.3388, allocations: 2.125 kB / 0.5714 GB, free: 29.54 MB / 446.1 MB 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 5.252e-05/0.3388, allocations: 119.3 kB / 0.5716 GB, free: 29.42 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.633e-05/0.3388, allocations: 6.656 kB / 0.5716 GB, free: 29.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003567/0.3392, allocations: 116.2 kB / 0.5717 GB, free: 29.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.3392, allocations: 2.359 kB / 0.5717 GB, free: 29.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3392, allocations: 0 / 0.5717 GB, free: 29.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.3392, allocations: 1.844 kB / 0.5717 GB, free: 29.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.3394, allocations: 182 kB / 0.5718 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3394, allocations: 5.438 kB / 0.5719 GB, free: 29.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.173e-05/0.3395, allocations: 15.53 kB / 0.5719 GB, free: 29.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3395, allocations: 2.062 kB / 0.5719 GB, free: 29.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.3395, allocations: 2.359 kB / 0.5719 GB, free: 29.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.3395, allocations: 0 / 0.5719 GB, free: 29.15 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3395, allocations: 4.312 kB / 0.5719 GB, free: 29.15 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003311/0.3398, allocations: 205.7 kB / 0.5721 GB, free: 29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.242e-05/0.3399, allocations: 83.2 kB / 0.5721 GB, free: 28.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.3399, allocations: 2.062 kB / 0.5722 GB, free: 28.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.34, allocations: 12.06 kB / 0.5722 GB, free: 28.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.875e-05/0.34, allocations: 8.891 kB / 0.5722 GB, free: 28.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.3401, allocations: 5.062 kB / 0.5722 GB, free: 28.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.58e-05/0.3401, allocations: 91.62 kB / 0.5723 GB, free: 28.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3401, allocations: 1.594 kB / 0.5723 GB, free: 28.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002298/0.3403, allocations: 13.81 kB / 0.5723 GB, free: 28.81 MB / 446.1 MB 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.0005275/0.3409, allocations: 0.7348 MB / 0.573 GB, free: 28.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003484/0.3412, allocations: 85.2 kB / 0.5731 GB, free: 28.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3412, allocations: 2.375 kB / 0.5731 GB, free: 28.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.3414, allocations: 36.95 kB / 0.5731 GB, free: 28.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.3417, allocations: 4.281 kB / 0.5731 GB, free: 28.12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.3432, allocations: 1.415 MB / 0.5745 GB, free: 26.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001021/0.3433, allocations: 0.6938 MB / 0.5752 GB, free: 26.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.938e-05/0.3433, allocations: 5.312 kB / 0.5752 GB, free: 26.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.3434, allocations: 17.25 kB / 0.5752 GB, free: 26.2 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3434, allocations: 0 / 0.5752 GB, free: 26.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01645/0.3598, allocations: 1.787 MB / 0.5769 GB, free: 25.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.155/7.515, allocations: 11.59 kB / 0.577 GB, free: 25.84 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Utilities_Math_Examples_Average.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe 2>&1)