Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.301/1.301, allocations: 252 MB / 267.3 MB, free: 10.85 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009183/0.0009183, allocations: 172.1 kB / 327 MB, free: 2.098 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.4 MB / 0.578 GB, free: 20.37 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007359/0.000736, allocations: 76 kB / 0.6826 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004101/0.0004102, allocations: 8.031 kB / 0.7971 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2008, allocations: 106.3 MB / 0.9009 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001613/0.2025, allocations: 1.254 MB / 0.9021 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003665/0.2029, allocations: 116.5 kB / 0.9022 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.273e-05/0.2029, allocations: 0 / 0.9022 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.2031, allocations: 7.922 kB / 0.9023 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 3.083e-05/0.2031, allocations: 3.938 kB / 0.9023 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002412/0.2034, allocations: 23.97 kB / 0.9023 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.61e-05/0.2035, allocations: 59.78 kB / 0.9023 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.2036, allocations: 27.89 kB / 0.9024 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.539e-05/0.2037, allocations: 19.92 kB / 0.9024 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.276e-05/0.2037, allocations: 23.91 kB / 0.9024 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.553e-05/0.2037, allocations: 0 / 0.9024 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.723e-05/0.2038, allocations: 11.94 kB / 0.9024 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.18e-05/0.2039, allocations: 19.91 kB / 0.9024 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.209e-05/0.2039, allocations: 41.58 kB / 0.9025 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.204, allocations: 55.8 kB / 0.9025 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.204, allocations: 4 kB / 0.9025 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2041, allocations: 0 / 0.9025 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.2041, allocations: 0 / 0.9025 GB, free: 62.05 MB / 0.6042 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.0004688/0.2045, allocations: 375.7 kB / 0.9029 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.2046, allocations: 8.031 kB / 0.9029 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.232e-05/0.2046, allocations: 38.69 kB / 0.9029 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.111e-05/0.2047, allocations: 12.84 kB / 0.9029 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.2048, allocations: 192.1 kB / 0.9031 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.2048, allocations: 4.375 kB / 0.9031 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.2048, allocations: 4.375 kB / 0.9031 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002687/0.2051, allocations: 98.2 kB / 0.9032 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.2051, allocations: 3.938 kB / 0.9032 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.2051, allocations: 0 / 0.9032 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.2052, allocations: 7.984 kB / 0.9032 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003108/0.2055, allocations: 107.8 kB / 0.9033 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006163/0.2061, allocations: 332.7 kB / 0.9037 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002186/0.2063, allocations: 78.56 kB / 0.9037 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.2065, allocations: 48.91 kB / 0.9038 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 4.623e-05/0.2066, allocations: 4 kB / 0.9038 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.2066, allocations: 30.56 kB / 0.9038 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.203e-06/0.2066, allocations: 4 kB / 0.9038 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0005464/0.2071, allocations: 165.6 kB / 0.904 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.2072, allocations: 59.34 kB / 0.904 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.496e-05/0.2073, allocations: 117.7 kB / 0.9042 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.347e-06/0.2073, allocations: 25.7 kB / 0.9042 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.055e-05/0.2073, allocations: 100 kB / 0.9043 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.354e-05/0.2074, allocations: 7.844 kB / 0.9043 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-06/0.2074, allocations: 0 / 0.9043 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.75e-05/0.2075, allocations: 326.8 kB / 0.9046 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.2076, allocations: 43.97 kB / 0.9046 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.2078, allocations: 43.95 kB / 0.9047 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.208, allocations: 96.72 kB / 0.9048 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.208, allocations: 3.938 kB / 0.9048 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003148/0.2084, allocations: 129.5 kB / 0.9049 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.2084, allocations: 7.984 kB / 0.9049 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.2084, allocations: 3.938 kB / 0.9049 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.2084, allocations: 4 kB / 0.9049 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.2086, allocations: 19.98 kB / 0.9049 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.2086, allocations: 0 / 0.9049 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.022e-05/0.2087, allocations: 15.98 kB / 0.9049 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.2087, allocations: 0 / 0.9049 GB, free: 59.35 MB / 0.6042 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.086e-05/0.2088, allocations: 125.8 kB / 0.9051 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.05e-05/0.2088, allocations: 7.906 kB / 0.9051 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003744/0.2092, allocations: 137.5 kB / 0.9052 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2092, allocations: 0 / 0.9052 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.2092, allocations: 0 / 0.9052 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2092, allocations: 0 / 0.9052 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.2094, allocations: 181.6 kB / 0.9054 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.2094, allocations: 0 / 0.9054 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.433e-05/0.2095, allocations: 31.91 kB / 0.9054 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2095, allocations: 0 / 0.9054 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-06/0.2095, allocations: 0 / 0.9054 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2095, allocations: 0 / 0.9054 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2095, allocations: 7.984 kB / 0.9054 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000336/0.2099, allocations: 223.8 kB / 0.9056 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.363e-05/0.2099, allocations: 85.02 kB / 0.9057 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.2099, allocations: 0 / 0.9057 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.21, allocations: 19.98 kB / 0.9057 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.2101, allocations: 3.984 kB / 0.9057 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.2101, allocations: 4 kB / 0.9057 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.667e-05/0.2101, allocations: 91.27 kB / 0.9058 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2101, allocations: 0 / 0.9058 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002135/0.2104, allocations: 19.94 kB / 0.9058 GB, free: 58.32 MB / 0.6042 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.0005532/0.2109, allocations: 0.763 MB / 0.9066 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003164/0.2113, allocations: 95.92 kB / 0.9067 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2113, allocations: 0 / 0.9067 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.2114, allocations: 55.89 kB / 0.9067 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.2117, allocations: 13.52 kB / 0.9067 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.2132, allocations: 1.494 MB / 0.9082 GB, free: 55.81 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001237/0.2133, allocations: 0.6926 MB / 0.9089 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.647e-05/0.2134, allocations: 4 kB / 0.9089 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.06e-05/0.2134, allocations: 23.42 kB / 0.9089 GB, free: 55.06 MB / 0.6042 GB Notification: Performance of SimCode: time 3.21e-07/0.2134, allocations: 0 / 0.9089 GB, free: 55.06 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01153/0.225, allocations: 1.496 MB / 0.9104 GB, free: 53.69 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001385/0.2251, allocations: 198.5 kB / 0.9106 GB, free: 53.44 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.592/1.817, allocations: 4.062 kB / 0.9106 GB, free: 53.43 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)