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.554/2.554, allocations: 287.3 MB / 302.3 MB, free: 8.336 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.001557/0.001556, allocations: 173.1 kB / 370.8 MB, free: 10.86 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.331/2.331, allocations: 205.4 MB / 0.6295 GB, free: 10.57 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.001189/0.001188, allocations: 96.91 kB / 0.7428 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004696/0.0004698, allocations: 17.22 kB / 0.8657 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2225, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.0028/0.2254, allocations: 1.234 MB / 0.9795 GB, free: 27.04 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0004802/0.2259, allocations: 124.5 kB / 0.9796 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.76e-05/0.226, allocations: 0 / 0.9796 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.2262, allocations: 7.922 kB / 0.9796 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.951e-05/0.2263, allocations: 11.92 kB / 0.9796 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.2266, allocations: 19.98 kB / 0.9796 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.2267, allocations: 39.94 kB / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.2269, allocations: 19.98 kB / 0.9797 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.766e-05/0.227, allocations: 15.92 kB / 0.9797 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.2271, allocations: 27.84 kB / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.053e-05/0.2272, allocations: 0 / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.2273, allocations: 8 kB / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.433e-05/0.2274, allocations: 11.98 kB / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.312e-05/0.2275, allocations: 37.64 kB / 0.9798 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.2277, allocations: 40.2 kB / 0.9798 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2277, allocations: 0 / 0.9798 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.705e-06/0.2278, allocations: 0 / 0.9798 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.2278, allocations: 0 / 0.9798 GB, free: 26.67 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.000918/0.2287, allocations: 387.1 kB / 0.9802 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.221e-05/0.2288, allocations: 12.02 kB / 0.9802 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.229e-05/0.2289, allocations: 38.56 kB / 0.9802 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/0.2289, allocations: 7.859 kB / 0.9803 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002341/0.2292, allocations: 183 kB / 0.9804 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.2292, allocations: 4 kB / 0.9804 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.725e-05/0.2293, allocations: 0 / 0.9804 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006338/0.2299, allocations: 101.6 kB / 0.9805 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.23, allocations: 0 / 0.9805 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.23, allocations: 4 kB / 0.9805 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.23, allocations: 0 / 0.9805 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009317/0.231, allocations: 103.9 kB / 0.9806 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.2322, allocations: 336.6 kB / 0.981 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005486/0.2328, allocations: 74.53 kB / 0.981 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.352e-05/0.2328, allocations: 0 / 0.981 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.2329, allocations: 30.56 kB / 0.9811 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 2.605e-06/0.2329, allocations: 4 kB / 0.9811 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.001357/0.2343, allocations: 181.6 kB / 0.9812 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.2344, allocations: 51.41 kB / 0.9813 GB, free: 25 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.2345, allocations: 117.8 kB / 0.9814 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.2346, allocations: 25.7 kB / 0.9814 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.77e-05/0.2347, allocations: 107.8 kB / 0.9815 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/0.2347, allocations: 7.906 kB / 0.9815 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.257e-05/0.2348, allocations: 0 / 0.9815 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.877e-05/0.2349, allocations: 322.8 kB / 0.9818 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003823/0.2353, allocations: 39.97 kB / 0.9819 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003677/0.2357, allocations: 47.95 kB / 0.9819 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003718/0.2361, allocations: 39.97 kB / 0.982 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.2361, allocations: 3.984 kB / 0.982 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0008825/0.237, allocations: 133.5 kB / 0.9821 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.2371, allocations: 8 kB / 0.9821 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.2371, allocations: 0 / 0.9821 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.2371, allocations: 3.953 kB / 0.9821 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.2373, allocations: 23.97 kB / 0.9821 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.2374, allocations: 0 / 0.9821 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001417/0.2375, allocations: 15.98 kB / 0.9821 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.2375, allocations: 8 kB / 0.9821 GB, free: 24.07 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 8.682e-05/0.2376, allocations: 113.8 kB / 0.9823 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.526e-05/0.2377, allocations: 3.906 kB / 0.9823 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006239/0.2383, allocations: 141.4 kB / 0.9824 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.2383, allocations: 3.953 kB / 0.9824 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.2384, allocations: 0 / 0.9824 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2384, allocations: 0 / 0.9824 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.2386, allocations: 181.6 kB / 0.9826 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2386, allocations: 0 / 0.9826 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.2388, allocations: 27.98 kB / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.2388, allocations: 0 / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.2388, allocations: 7.984 kB / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.2388, allocations: 0 / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.2388, allocations: 3.953 kB / 0.9826 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006249/0.2395, allocations: 219.4 kB / 0.9828 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.032e-05/0.2395, allocations: 88.94 kB / 0.9829 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.2395, allocations: 4 kB / 0.9829 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.2397, allocations: 15.98 kB / 0.9829 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.847e-05/0.2398, allocations: 4 kB / 0.9829 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.2398, allocations: 7.938 kB / 0.9829 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.965e-05/0.2399, allocations: 91.22 kB / 0.983 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.51e-07/0.2399, allocations: 0 / 0.983 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003195/0.2402, allocations: 8 kB / 0.983 GB, free: 23.07 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.0008636/0.2411, allocations: 0.7645 MB / 0.9838 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005847/0.2417, allocations: 99.86 kB / 0.9839 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2417, allocations: 3.938 kB / 0.9839 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002773/0.242, allocations: 52.09 kB / 0.9839 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.2423, allocations: 8 kB / 0.9839 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.2439, allocations: 0.5752 MB / 0.9845 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.2441, allocations: 0.6926 MB / 0.9852 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.972e-05/0.2442, allocations: 11.98 kB / 0.9852 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.504e-05/0.2443, allocations: 15.44 kB / 0.9852 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of SimCode: time 1.162e-06/0.2443, allocations: 0 / 0.9852 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.268, allocations: 1.458 MB / 0.9866 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002846/0.2684, allocations: 173.2 kB / 0.9868 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.349/2.617, allocations: 0 / 0.9868 GB, free: 19.16 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)