Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.713/2.713, allocations: 287.5 MB / 302.4 MB, free: 8.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001298/0.001298, allocations: 180.1 kB / 371 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.398/2.398, allocations: 205.4 MB / 0.6297 GB, free: 10.66 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009432/0.0009429, allocations: 102.7 kB / 0.743 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006442/0.0006444, allocations: 12.09 kB / 0.8659 GB, free: 140.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2168, allocations: 115.3 MB / 0.9784 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001792/0.2186, allocations: 1.238 MB / 0.9797 GB, free: 27.05 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003275/0.219, allocations: 108.5 kB / 0.9798 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.048e-05/0.2191, allocations: 4 kB / 0.9798 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.2192, allocations: 11.88 kB / 0.9798 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 3.082e-05/0.2192, allocations: 7.875 kB / 0.9798 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/0.2194, allocations: 19.97 kB / 0.9798 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.052e-05/0.2195, allocations: 47.84 kB / 0.9798 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.2197, allocations: 19.98 kB / 0.9799 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.213e-05/0.2197, allocations: 23.91 kB / 0.9799 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.41e-05/0.2198, allocations: 19.92 kB / 0.9799 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.2198, allocations: 4 kB / 0.9799 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.118e-05/0.2199, allocations: 11.98 kB / 0.9799 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.206e-05/0.2199, allocations: 15.92 kB / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.971e-05/0.22, allocations: 37.7 kB / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.851e-05/0.2201, allocations: 32.22 kB / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2201, allocations: 0 / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2201, allocations: 0 / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.2201, allocations: 0 / 0.98 GB, free: 26.68 MB / 0.6198 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.0005583/0.2207, allocations: 383.1 kB / 0.9804 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.2208, allocations: 15.95 kB / 0.9804 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.194e-05/0.2208, allocations: 38.56 kB / 0.9804 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/0.2208, allocations: 7.859 kB / 0.9804 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.221, allocations: 182.9 kB / 0.9806 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.2211, allocations: 8 kB / 0.9806 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.2211, allocations: 3.984 kB / 0.9806 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006264/0.2218, allocations: 97.64 kB / 0.9807 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.2218, allocations: 3.938 kB / 0.9807 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.2218, allocations: 4 kB / 0.9807 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.2219, allocations: 0 / 0.9807 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008596/0.2227, allocations: 99.92 kB / 0.9808 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.2239, allocations: 340.6 kB / 0.9811 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005026/0.2244, allocations: 74.53 kB / 0.9812 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003965/0.2248, allocations: 44.92 kB / 0.9813 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 7.876e-05/0.225, allocations: 4 kB / 0.9813 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.225, allocations: 38.52 kB / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 4.258e-06/0.2251, allocations: 0 / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.001601/0.2267, allocations: 173.6 kB / 0.9815 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.2268, allocations: 55.41 kB / 0.9815 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.2269, allocations: 117.8 kB / 0.9816 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.227, allocations: 29.64 kB / 0.9817 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.814e-05/0.227, allocations: 99.97 kB / 0.9817 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.2271, allocations: 3.906 kB / 0.9817 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.144e-05/0.2271, allocations: 0 / 0.9817 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.003e-05/0.2272, allocations: 314.8 kB / 0.982 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003853/0.2276, allocations: 51.95 kB / 0.9821 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000418/0.228, allocations: 39.97 kB / 0.9821 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000459/0.2285, allocations: 47.95 kB / 0.9822 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.2286, allocations: 0 / 0.9822 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.001035/0.2296, allocations: 133.7 kB / 0.9823 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.2297, allocations: 8 kB / 0.9823 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.2297, allocations: 7.891 kB / 0.9823 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.755e-05/0.2297, allocations: 4.031 kB / 0.9823 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003054/0.2301, allocations: 23.98 kB / 0.9824 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.2301, allocations: 0 / 0.9824 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.2304, allocations: 15.98 kB / 0.9824 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.2305, allocations: 3.984 kB / 0.9824 GB, free: 24.03 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001372/0.2306, allocations: 117.8 kB / 0.9825 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.63e-05/0.2307, allocations: 7.906 kB / 0.9825 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008158/0.2316, allocations: 133.5 kB / 0.9826 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.2316, allocations: 7.938 kB / 0.9826 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.2316, allocations: 0 / 0.9826 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2316, allocations: 4 kB / 0.9826 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003465/0.232, allocations: 177.6 kB / 0.9828 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.232, allocations: 4 kB / 0.9828 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003101/0.2323, allocations: 23.98 kB / 0.9828 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.096e-06/0.2324, allocations: 0 / 0.9828 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.2324, allocations: 4 kB / 0.9828 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.2324, allocations: 0 / 0.9828 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.2325, allocations: 3.953 kB / 0.9828 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.2335, allocations: 219.5 kB / 0.983 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.451e-05/0.2336, allocations: 84.95 kB / 0.9831 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.124e-05/0.2336, allocations: 4 kB / 0.9831 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002774/0.2339, allocations: 19.98 kB / 0.9831 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.922e-05/0.234, allocations: 7.938 kB / 0.9832 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.234, allocations: 0 / 0.9832 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.741e-05/0.2341, allocations: 91.27 kB / 0.9832 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.11e-07/0.2341, allocations: 0 / 0.9832 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005658/0.2347, allocations: 16 kB / 0.9833 GB, free: 23.02 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001097/0.2358, allocations: 0.7592 MB / 0.984 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005799/0.2365, allocations: 103.8 kB / 0.9841 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.2365, allocations: 0 / 0.9841 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002727/0.2368, allocations: 51.91 kB / 0.9841 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003843/0.2372, allocations: 14.27 kB / 0.9842 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00161/0.2388, allocations: 0.573 MB / 0.9847 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000153/0.239, allocations: 0.6887 MB / 0.9854 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.651e-05/0.2391, allocations: 11.92 kB / 0.9854 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.367e-05/0.2391, allocations: 11.44 kB / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of SimCode: time 1.343e-06/0.2391, allocations: 0 / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.2615, allocations: 1.488 MB / 0.9869 GB, free: 19.34 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002734/0.2618, allocations: 178.2 kB / 0.987 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.57/2.831, allocations: 0 / 0.987 GB, free: 19.09 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)