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.349/1.349, allocations: 251.9 MB / 266.9 MB, free: 11.05 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.001082/0.001083, allocations: 176 kB / 326.5 MB, free: 2.246 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.726/1.726, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0008187/0.0008186, allocations: 88.42 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.000317, allocations: 8.625 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2145, allocations: 106.3 MB / 0.9001 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001595/0.2162, allocations: 1.246 MB / 0.9014 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002415/0.2164, allocations: 116.6 kB / 0.9015 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.191e-05/0.2165, allocations: 7.938 kB / 0.9015 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.2166, allocations: 7.984 kB / 0.9015 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 2.164e-05/0.2166, allocations: 7.922 kB / 0.9015 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.2168, allocations: 23.92 kB / 0.9015 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.312e-05/0.2169, allocations: 31.95 kB / 0.9015 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.217, allocations: 23.98 kB / 0.9016 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.148e-05/0.2171, allocations: 23.91 kB / 0.9016 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.798e-05/0.2171, allocations: 19.92 kB / 0.9016 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.2172, allocations: 0 / 0.9016 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 4.682e-05/0.2172, allocations: 11.92 kB / 0.9016 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.624e-05/0.2172, allocations: 11.98 kB / 0.9016 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.009e-05/0.2173, allocations: 33.64 kB / 0.9017 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.618e-05/0.2174, allocations: 35.92 kB / 0.9017 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2174, allocations: 0 / 0.9017 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2174, allocations: 0 / 0.9017 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.2174, allocations: 4 kB / 0.9017 GB, free: 62.21 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.0004391/0.2178, allocations: 383.5 kB / 0.9021 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2179, allocations: 8.031 kB / 0.9021 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.362e-05/0.2179, allocations: 34.56 kB / 0.9021 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.663e-05/0.2179, allocations: 11.86 kB / 0.9021 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.2181, allocations: 186.9 kB / 0.9023 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.2181, allocations: 4 kB / 0.9023 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.2181, allocations: 4 kB / 0.9023 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003276/0.2184, allocations: 97.56 kB / 0.9024 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.2185, allocations: 0 / 0.9024 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.2185, allocations: 8 kB / 0.9024 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2185, allocations: 7.938 kB / 0.9024 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002995/0.2188, allocations: 95.92 kB / 0.9025 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004384/0.2192, allocations: 344.6 kB / 0.9028 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.2194, allocations: 70.52 kB / 0.9029 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.35e-05/0.2195, allocations: 4 kB / 0.9029 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.491e-05/0.2195, allocations: 34.56 kB / 0.9029 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.2195, allocations: 0 / 0.9029 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0005209/0.22, allocations: 177.6 kB / 0.9031 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.2201, allocations: 51.41 kB / 0.9032 GB, free: 60.53 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.831e-05/0.2201, allocations: 121.7 kB / 0.9033 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.306e-06/0.2201, allocations: 25.7 kB / 0.9033 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.103e-05/0.2202, allocations: 96.03 kB / 0.9034 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.2202, allocations: 11.84 kB / 0.9034 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-06/0.2202, allocations: 4 kB / 0.9034 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.815e-05/0.2203, allocations: 314.8 kB / 0.9037 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.2204, allocations: 43.97 kB / 0.9037 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.2206, allocations: 43.95 kB / 0.9038 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.2207, allocations: 47.97 kB / 0.9038 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2207, allocations: 0 / 0.9038 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003068/0.221, allocations: 129.5 kB / 0.904 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2211, allocations: 5.719 kB / 0.904 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.2211, allocations: 3.938 kB / 0.904 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.2211, allocations: 3.953 kB / 0.904 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.2212, allocations: 23.98 kB / 0.904 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2212, allocations: 7.969 kB / 0.904 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.657e-05/0.2213, allocations: 19.89 kB / 0.904 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.2213, allocations: 4 kB / 0.904 GB, free: 59.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.453e-05/0.2214, allocations: 113.8 kB / 0.9041 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.2214, allocations: 0 / 0.9041 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003533/0.2218, allocations: 145.4 kB / 0.9043 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2218, allocations: 3.953 kB / 0.9043 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2218, allocations: 0 / 0.9043 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2218, allocations: 0 / 0.9043 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.2219, allocations: 177.6 kB / 0.9044 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2219, allocations: 0 / 0.9044 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.161e-05/0.222, allocations: 19.98 kB / 0.9045 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2221, allocations: 0 / 0.9045 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.2221, allocations: 4 kB / 0.9045 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.2221, allocations: 4 kB / 0.9045 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2221, allocations: 7.938 kB / 0.9045 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003412/0.2224, allocations: 219.4 kB / 0.9047 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.961e-05/0.2225, allocations: 85.45 kB / 0.9048 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.2225, allocations: 0 / 0.9048 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.2226, allocations: 23.98 kB / 0.9048 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.483e-05/0.2226, allocations: 4 kB / 0.9048 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.722e-06/0.2226, allocations: 7.891 kB / 0.9048 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.245e-05/0.2227, allocations: 95.27 kB / 0.9049 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2227, allocations: 0 / 0.9049 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002101/0.2229, allocations: 11.91 kB / 0.9049 GB, free: 58.6 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 (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.0005137/0.2234, allocations: 0.7593 MB / 0.9056 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003198/0.2237, allocations: 95.92 kB / 0.9057 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2238, allocations: 3.938 kB / 0.9057 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.2239, allocations: 51.95 kB / 0.9058 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001861/0.2241, allocations: 8.703 kB / 0.9058 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009517/0.2251, allocations: 0.5834 MB / 0.9064 GB, free: 57.03 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001155/0.2252, allocations: 0.6926 MB / 0.907 GB, free: 56.31 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.923e-05/0.2252, allocations: 8.234 kB / 0.9071 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.2253, allocations: 11.44 kB / 0.9071 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of SimCode: time 4.61e-07/0.2253, allocations: 0 / 0.9071 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01118/0.2365, allocations: 1.468 MB / 0.9085 GB, free: 54.95 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/0.2367, allocations: 179.3 kB / 0.9087 GB, free: 54.71 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.486/1.723, allocations: 4 kB / 0.9087 GB, free: 54.71 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)