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.496/1.496, allocations: 252 MB / 267 MB, free: 10.96 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.001014/0.001014, allocations: 182.6 kB / 326.6 MB, free: 2.215 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.764/1.764, allocations: 205.4 MB / 0.5777 GB, free: 20.28 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.0008681/0.0008681, allocations: 94.05 kB / 0.6823 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003374, allocations: 9.281 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2332, allocations: 106.3 MB / 0.9003 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001788/0.235, allocations: 1.254 MB / 0.9015 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003371/0.2354, allocations: 116.5 kB / 0.9016 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.444e-05/0.2354, allocations: 0 / 0.9016 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.2356, allocations: 3.938 kB / 0.9016 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 2.515e-05/0.2356, allocations: 7.938 kB / 0.9016 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002532/0.2359, allocations: 23.97 kB / 0.9017 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.719e-05/0.236, allocations: 43.84 kB / 0.9017 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.2361, allocations: 31.91 kB / 0.9017 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.703e-05/0.2362, allocations: 15.92 kB / 0.9018 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.208e-05/0.2363, allocations: 19.92 kB / 0.9018 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.766e-05/0.2363, allocations: 0 / 0.9018 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.451e-05/0.2364, allocations: 15.98 kB / 0.9018 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.304e-05/0.2364, allocations: 11.92 kB / 0.9018 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.574e-05/0.2364, allocations: 33.64 kB / 0.9018 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.933e-05/0.2365, allocations: 39.92 kB / 0.9019 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.2366, allocations: 4 kB / 0.9019 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.455e-06/0.2366, allocations: 0 / 0.9019 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.2366, allocations: 4 kB / 0.9019 GB, free: 62.13 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.0005481/0.2371, allocations: 371.5 kB / 0.9022 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.2372, allocations: 12.03 kB / 0.9022 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.595e-05/0.2372, allocations: 34.56 kB / 0.9023 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.239e-05/0.2373, allocations: 19.8 kB / 0.9023 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/0.2374, allocations: 179 kB / 0.9025 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.2375, allocations: 3.984 kB / 0.9025 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.2375, allocations: 7.984 kB / 0.9025 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.2378, allocations: 93.64 kB / 0.9026 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.2378, allocations: 4 kB / 0.9026 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.2378, allocations: 0 / 0.9026 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.2378, allocations: 0 / 0.9026 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003034/0.2381, allocations: 111.8 kB / 0.9027 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004772/0.2386, allocations: 336.7 kB / 0.903 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/0.2388, allocations: 70.56 kB / 0.9031 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.239, allocations: 56.92 kB / 0.9031 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 4.251e-05/0.239, allocations: 0 / 0.9031 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.675e-05/0.2391, allocations: 34.52 kB / 0.9032 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 7.62e-07/0.2391, allocations: 0 / 0.9032 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0005527/0.2396, allocations: 181.4 kB / 0.9033 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.515e-05/0.2397, allocations: 51.41 kB / 0.9034 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.583e-05/0.2397, allocations: 117.7 kB / 0.9035 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.017e-06/0.2398, allocations: 25.7 kB / 0.9035 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.689e-05/0.2398, allocations: 96.03 kB / 0.9036 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.2398, allocations: 19.84 kB / 0.9036 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-06/0.2398, allocations: 0 / 0.9036 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.936e-05/0.2399, allocations: 314.8 kB / 0.9039 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.2401, allocations: 43.95 kB / 0.904 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.2402, allocations: 43.97 kB / 0.904 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.2404, allocations: 51.95 kB / 0.9041 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2404, allocations: 0 / 0.9041 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003072/0.2407, allocations: 125.6 kB / 0.9042 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.2407, allocations: 4 kB / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2407, allocations: 3.953 kB / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.2407, allocations: 0 / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.2409, allocations: 23.92 kB / 0.9042 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.2409, allocations: 0 / 0.9042 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.183e-05/0.241, allocations: 23.89 kB / 0.9042 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/0.241, allocations: 8 kB / 0.9042 GB, free: 59.48 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 7.012e-05/0.2411, allocations: 117.8 kB / 0.9044 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.271e-05/0.2411, allocations: 0 / 0.9044 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003679/0.2415, allocations: 133.5 kB / 0.9045 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.2415, allocations: 3.953 kB / 0.9045 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2415, allocations: 3.984 kB / 0.9045 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2415, allocations: 4.312 kB / 0.9045 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000123/0.2417, allocations: 185.6 kB / 0.9047 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.2417, allocations: 0 / 0.9047 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.527e-05/0.2418, allocations: 23.92 kB / 0.9047 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2418, allocations: 0 / 0.9047 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.2418, allocations: 7.984 kB / 0.9047 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2418, allocations: 0 / 0.9047 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2418, allocations: 3.953 kB / 0.9047 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000343/0.2421, allocations: 227.4 kB / 0.9049 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.963e-05/0.2422, allocations: 77.11 kB / 0.905 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.2422, allocations: 0 / 0.905 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.2423, allocations: 15.98 kB / 0.905 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.2423, allocations: 11.94 kB / 0.905 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.2424, allocations: 4 kB / 0.905 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.999e-05/0.2424, allocations: 91.27 kB / 0.9051 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2424, allocations: 4 kB / 0.9051 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002001/0.2426, allocations: 11.91 kB / 0.9051 GB, free: 58.47 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.0005573/0.2432, allocations: 0.7514 MB / 0.9059 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003362/0.2435, allocations: 99.91 kB / 0.906 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2435, allocations: 0 / 0.906 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.2437, allocations: 55.91 kB / 0.906 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.2439, allocations: 7.938 kB / 0.906 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009789/0.2449, allocations: 0.5791 MB / 0.9066 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000137/0.2451, allocations: 0.6926 MB / 0.9073 GB, free: 56.19 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.175e-05/0.2451, allocations: 8.234 kB / 0.9073 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.375e-05/0.2452, allocations: 15.44 kB / 0.9073 GB, free: 56.17 MB / 0.6042 GB Notification: Performance of SimCode: time 2.21e-07/0.2452, allocations: 0 / 0.9073 GB, free: 56.17 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01031/0.2555, allocations: 1.489 MB / 0.9087 GB, free: 54.81 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/0.2557, allocations: 186.1 kB / 0.9089 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.488/1.744, allocations: 0 / 0.9089 GB, free: 54.57 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)