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 1.672/1.672, allocations: 287.4 MB / 302.6 MB, free: 8.254 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.001065/0.001064, allocations: 185.3 kB / 371.1 MB, free: 10.75 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.722/1.722, allocations: 205.4 MB / 0.6298 GB, free: 10.56 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.0008131/0.000813, allocations: 88.81 kB / 0.7431 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004135/0.0004136, allocations: 12.59 kB / 0.8662 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.239, allocations: 115.3 MB / 0.9787 GB, free: 28.11 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001631/0.2406, allocations: 1.238 MB / 0.9799 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003184/0.241, allocations: 100.6 kB / 0.98 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.451e-05/0.2411, allocations: 4 kB / 0.98 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.2413, allocations: 11.92 kB / 0.98 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 2.845e-05/0.2413, allocations: 7.922 kB / 0.9801 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002413/0.2415, allocations: 15.98 kB / 0.9801 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.587e-05/0.2416, allocations: 59.72 kB / 0.9801 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.2417, allocations: 27.98 kB / 0.9802 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.585e-05/0.2418, allocations: 11.98 kB / 0.9802 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.926e-05/0.2419, allocations: 31.83 kB / 0.9802 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.2419, allocations: 0 / 0.9802 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.769e-05/0.2419, allocations: 12 kB / 0.9802 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.701e-05/0.242, allocations: 7.922 kB / 0.9802 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.486e-05/0.242, allocations: 41.64 kB / 0.9803 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.235e-05/0.2421, allocations: 32.22 kB / 0.9803 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2421, allocations: 0 / 0.9803 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.664e-06/0.2421, allocations: 0 / 0.9803 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.2421, allocations: 4 kB / 0.9803 GB, free: 26.48 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.0004405/0.2426, allocations: 383.2 kB / 0.9807 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.2426, allocations: 8.031 kB / 0.9807 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.805e-05/0.2427, allocations: 38.75 kB / 0.9807 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.731e-05/0.2427, allocations: 12.83 kB / 0.9807 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.2428, allocations: 184.3 kB / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.2428, allocations: 4.312 kB / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.228e-05/0.2429, allocations: 4.375 kB / 0.9809 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.2431, allocations: 98.2 kB / 0.981 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.2431, allocations: 3.938 kB / 0.981 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.2432, allocations: 0 / 0.981 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2432, allocations: 0 / 0.981 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003147/0.2435, allocations: 103.9 kB / 0.9811 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004513/0.244, allocations: 340.6 kB / 0.9814 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.2442, allocations: 70.53 kB / 0.9815 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.2443, allocations: 56.94 kB / 0.9815 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.2443, allocations: 4 kB / 0.9815 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.315e-05/0.2444, allocations: 34.56 kB / 0.9816 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.2444, allocations: 0 / 0.9816 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0005022/0.2449, allocations: 173.5 kB / 0.9817 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.195e-05/0.2449, allocations: 51.41 kB / 0.9818 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.516e-05/0.245, allocations: 125.8 kB / 0.9819 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.827e-06/0.245, allocations: 25.7 kB / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.39e-05/0.245, allocations: 99.97 kB / 0.982 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.581e-05/0.2451, allocations: 7.906 kB / 0.982 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-06/0.2451, allocations: 0 / 0.982 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.992e-05/0.2451, allocations: 322.8 kB / 0.9823 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.2453, allocations: 47.91 kB / 0.9824 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.2454, allocations: 43.95 kB / 0.9824 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/0.2456, allocations: 96.78 kB / 0.9825 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2457, allocations: 0 / 0.9825 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002857/0.2459, allocations: 129.5 kB / 0.9826 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.246, allocations: 8 kB / 0.9827 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.246, allocations: 0 / 0.9827 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.246, allocations: 0 / 0.9827 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.2461, allocations: 23.92 kB / 0.9827 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.2461, allocations: 0 / 0.9827 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.42e-05/0.2462, allocations: 23.89 kB / 0.9827 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.2462, allocations: 7.938 kB / 0.9827 GB, free: 23.77 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 5.688e-05/0.2463, allocations: 121.8 kB / 0.9828 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.303e-05/0.2463, allocations: 4 kB / 0.9828 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003427/0.2467, allocations: 141.5 kB / 0.983 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2467, allocations: 0 / 0.983 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2467, allocations: 0 / 0.983 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2467, allocations: 3.984 kB / 0.983 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.2468, allocations: 173.6 kB / 0.9831 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2469, allocations: 3.984 kB / 0.9831 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.833e-05/0.2469, allocations: 23.98 kB / 0.9832 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.247, allocations: 0 / 0.9832 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.247, allocations: 0 / 0.9832 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.247, allocations: 0 / 0.9832 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.247, allocations: 7.938 kB / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003113/0.2473, allocations: 223.3 kB / 0.9834 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.325e-05/0.2473, allocations: 89.05 kB / 0.9835 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.2473, allocations: 0 / 0.9835 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.2475, allocations: 15.98 kB / 0.9835 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.123e-05/0.2475, allocations: 7.984 kB / 0.9835 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.2475, allocations: 4 kB / 0.9835 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.982e-05/0.2476, allocations: 91.27 kB / 0.9836 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2476, allocations: 0 / 0.9836 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001967/0.2478, allocations: 15.84 kB / 0.9836 GB, free: 22.76 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.0005268/0.2483, allocations: 0.7566 MB / 0.9843 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003116/0.2486, allocations: 107.9 kB / 0.9844 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2487, allocations: 0 / 0.9844 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.2488, allocations: 47.97 kB / 0.9845 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.2491, allocations: 5.688 kB / 0.9845 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000971/0.25, allocations: 0.5776 MB / 0.9851 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001226/0.2502, allocations: 0.6926 MB / 0.9857 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.341e-05/0.2502, allocations: 15.92 kB / 0.9857 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.426e-05/0.2503, allocations: 15.44 kB / 0.9858 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of SimCode: time 4.31e-07/0.2503, allocations: 0 / 0.9858 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01286/0.2631, allocations: 1.456 MB / 0.9872 GB, free: 19.11 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/0.2634, allocations: 177.3 kB / 0.9873 GB, free: 18.86 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.513/1.776, allocations: 5.688 kB / 0.9874 GB, free: 18.86 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)