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.303/1.303, allocations: 251.5 MB / 266.7 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.001015/0.001015, allocations: 171.4 kB / 325.9 MB, free: 2.695 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.792/1.792, allocations: 205 MB / 0.576 GB, free: 21.01 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.0009338/0.0009338, allocations: 88.64 kB / 0.6797 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003447, allocations: 9 kB / 0.7932 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2136/0.2139, allocations: 105.4 MB / 0.8962 GB, free: 68.1 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001647/0.2157, allocations: 1.278 MB / 0.8974 GB, free: 66.8 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003413/0.216, allocations: 112.5 kB / 0.8976 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.613e-05/0.2161, allocations: 0 / 0.8976 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.2162, allocations: 11.94 kB / 0.8976 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 2.714e-05/0.2163, allocations: 7.938 kB / 0.8976 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001957/0.2165, allocations: 27.95 kB / 0.8976 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.237e-05/0.2166, allocations: 51.78 kB / 0.8976 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.2167, allocations: 27.97 kB / 0.8977 GB, free: 66.57 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.924e-05/0.2167, allocations: 19.92 kB / 0.8977 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.037e-05/0.2168, allocations: 19.92 kB / 0.8977 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.605e-05/0.2168, allocations: 4 kB / 0.8977 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.615e-05/0.2169, allocations: 11.98 kB / 0.8977 GB, free: 66.51 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.733e-05/0.2169, allocations: 11.92 kB / 0.8977 GB, free: 66.5 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.071e-05/0.217, allocations: 19.86 kB / 0.8978 GB, free: 66.48 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.2171, allocations: 55.8 kB / 0.8978 GB, free: 66.43 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.2171, allocations: 0 / 0.8978 GB, free: 66.43 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.214e-06/0.2171, allocations: 0 / 0.8978 GB, free: 66.43 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.788e-06/0.2171, allocations: 0 / 0.8978 GB, free: 66.43 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.0004555/0.2176, allocations: 379.4 kB / 0.8982 GB, free: 66 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.2176, allocations: 8.031 kB / 0.8982 GB, free: 66 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.206e-05/0.2176, allocations: 42.69 kB / 0.8982 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.8e-05/0.2177, allocations: 4.844 kB / 0.8982 GB, free: 65.94 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001406/0.2178, allocations: 192.2 kB / 0.8984 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.233e-06/0.2178, allocations: 8.312 kB / 0.8984 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.2179, allocations: 384 / 0.8984 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.2181, allocations: 98.19 kB / 0.8985 GB, free: 65.61 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.2181, allocations: 7.938 kB / 0.8985 GB, free: 65.6 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.2182, allocations: 4 kB / 0.8985 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.2182, allocations: 3.938 kB / 0.8985 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.2184, allocations: 99.92 kB / 0.8986 GB, free: 65.49 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004582/0.2189, allocations: 340.7 kB / 0.8989 GB, free: 65.11 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001713/0.2191, allocations: 70.48 kB / 0.899 GB, free: 65.03 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.2192, allocations: 56.91 kB / 0.8991 GB, free: 64.97 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.519e-05/0.2193, allocations: 4 kB / 0.8991 GB, free: 64.97 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.63e-05/0.2193, allocations: 30.56 kB / 0.8991 GB, free: 64.93 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.2193, allocations: 0 / 0.8991 GB, free: 64.93 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0004988/0.2198, allocations: 173.5 kB / 0.8993 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.676e-05/0.2199, allocations: 55.39 kB / 0.8993 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.735e-05/0.2199, allocations: 121.6 kB / 0.8994 GB, free: 64.56 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.378e-06/0.2199, allocations: 25.7 kB / 0.8995 GB, free: 64.53 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.696e-05/0.22, allocations: 92.05 kB / 0.8995 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.22, allocations: 11.89 kB / 0.8996 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.028e-05/0.22, allocations: 17.72 kB / 0.8996 GB, free: 64.4 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.044e-05/0.2201, allocations: 318.8 kB / 0.8999 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.2202, allocations: 43.95 kB / 0.8999 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.2203, allocations: 43.97 kB / 0.9 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000257/0.2206, allocations: 96.77 kB / 0.9001 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2206, allocations: 0 / 0.9001 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002879/0.2209, allocations: 129.5 kB / 0.9002 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2209, allocations: 4 kB / 0.9002 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.2209, allocations: 0 / 0.9002 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.221, allocations: 4 kB / 0.9002 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.2211, allocations: 23.97 kB / 0.9002 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.2211, allocations: 4 kB / 0.9002 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.53e-05/0.2212, allocations: 27.86 kB / 0.9002 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.2212, allocations: 336 / 0.9002 GB, free: 63.7 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 7.175e-05/0.2213, allocations: 113.8 kB / 0.9003 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.2213, allocations: 7.906 kB / 0.9004 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003593/0.2217, allocations: 149.4 kB / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.2217, allocations: 3.938 kB / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2217, allocations: 0 / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2217, allocations: 0 / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.2219, allocations: 181.6 kB / 0.9007 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2219, allocations: 4 kB / 0.9007 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.856e-05/0.222, allocations: 15.98 kB / 0.9007 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.222, allocations: 4 kB / 0.9007 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.222, allocations: 7.984 kB / 0.9007 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.222, allocations: 0 / 0.9007 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.222, allocations: 0 / 0.9007 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003345/0.2224, allocations: 219.4 kB / 0.9009 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.651e-05/0.2224, allocations: 85 kB / 0.901 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.2224, allocations: 0 / 0.901 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.956e-05/0.2225, allocations: 23.98 kB / 0.901 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.43e-05/0.2226, allocations: 7.984 kB / 0.901 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.2226, allocations: 0 / 0.901 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.155e-05/0.2226, allocations: 91.22 kB / 0.9011 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2226, allocations: 0 / 0.9011 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002318/0.2229, allocations: 15.94 kB / 0.9011 GB, free: 62.68 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.0005313/0.2234, allocations: 0.7592 MB / 0.9019 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003136/0.2237, allocations: 95.92 kB / 0.902 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2237, allocations: 4 kB / 0.902 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.2239, allocations: 51.89 kB / 0.902 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.2242, allocations: 8 kB / 0.902 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.2256, allocations: 1.489 MB / 0.9035 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.2257, allocations: 0.6926 MB / 0.9042 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.971e-05/0.2258, allocations: 8 kB / 0.9042 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.2258, allocations: 15.42 kB / 0.9042 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of SimCode: time 5.01e-07/0.2258, allocations: 0 / 0.9042 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01026/0.2361, allocations: 1.507 MB / 0.9056 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/0.2363, allocations: 202.6 kB / 0.9058 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.548/1.784, allocations: 0 / 0.9058 GB, free: 57.79 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)