Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 189.6 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.1 MB / 222.1 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.628/1.628, allocations: 292.3 MB / 0.5486 GB, free: 13.63 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 73.09 kB / 0.6711 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2272, allocations: 114.6 MB / 0.783 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00329/0.2305, allocations: 1.604 MB / 0.7845 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003868/0.2309, allocations: 113.6 kB / 0.7846 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.096e-05/0.231, allocations: 0 / 0.7846 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.2311, allocations: 7.875 kB / 0.7846 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.61e-05/0.2312, allocations: 11.94 kB / 0.7847 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.2315, allocations: 23.97 kB / 0.7847 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.2316, allocations: 51.84 kB / 0.7847 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.2317, allocations: 23.98 kB / 0.7848 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.175e-05/0.2318, allocations: 31.91 kB / 0.7848 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.203e-05/0.2318, allocations: 27.84 kB / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.2319, allocations: 4 kB / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.615e-05/0.2319, allocations: 12 kB / 0.7848 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.693e-05/0.232, allocations: 11.98 kB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.552e-05/0.232, allocations: 31.8 kB / 0.7849 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001379/0.2322, allocations: 56.14 kB / 0.7849 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2322, allocations: 0 / 0.7849 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.266e-06/0.2322, allocations: 0 / 0.7849 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.2322, allocations: 3.938 kB / 0.7849 GB, free: 11.79 MB / 0.6075 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.0005664/0.2328, allocations: 383.2 kB / 0.7853 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.2328, allocations: 12.03 kB / 0.7853 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.2329, allocations: 34.75 kB / 0.7853 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.108e-05/0.2329, allocations: 12.83 kB / 0.7854 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.2331, allocations: 188.2 kB / 0.7855 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.2331, allocations: 384 / 0.7855 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.2331, allocations: 4.375 kB / 0.7855 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002755/0.2334, allocations: 86.2 kB / 0.7856 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.2334, allocations: 3.938 kB / 0.7856 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.797e-06/0.2335, allocations: 4 kB / 0.7856 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-06/0.2335, allocations: 0 / 0.7856 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000288/0.2338, allocations: 87.78 kB / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005135/0.2343, allocations: 324.7 kB / 0.786 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.2345, allocations: 62.56 kB / 0.7861 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.2346, allocations: 44.92 kB / 0.7861 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.2347, allocations: 0 / 0.7861 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.2347, allocations: 38.55 kB / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.2347, allocations: 0 / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0005032/0.2352, allocations: 133.6 kB / 0.7863 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.2353, allocations: 55.34 kB / 0.7863 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.547e-05/0.2354, allocations: 117.8 kB / 0.7864 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/0.2354, allocations: 29.7 kB / 0.7865 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.995e-05/0.2355, allocations: 95.97 kB / 0.7866 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.2355, allocations: 11.91 kB / 0.7866 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.2355, allocations: 9.719 kB / 0.7866 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2356, allocations: 330.8 kB / 0.7869 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.2358, allocations: 27.97 kB / 0.7869 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.2359, allocations: 35.95 kB / 0.787 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.2362, allocations: 72.78 kB / 0.787 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2362, allocations: 4 kB / 0.787 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003047/0.2365, allocations: 101.5 kB / 0.7871 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.2365, allocations: 11.98 kB / 0.7871 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2365, allocations: 0 / 0.7871 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.2366, allocations: 3.938 kB / 0.7872 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.2367, allocations: 15.98 kB / 0.7872 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.2367, allocations: 4 kB / 0.7872 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.013e-05/0.2368, allocations: 7.984 kB / 0.7872 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.2368, allocations: 4 kB / 0.7872 GB, free: 9.246 MB / 0.6075 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 0.0001011/0.2369, allocations: 122.4 kB / 0.7873 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.2369, allocations: 3.906 kB / 0.7873 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003617/0.2373, allocations: 117.8 kB / 0.7874 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.2373, allocations: 4.031 kB / 0.7874 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2373, allocations: 0 / 0.7874 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2373, allocations: 3.984 kB / 0.7874 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.2375, allocations: 177.6 kB / 0.7876 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2375, allocations: 4 kB / 0.7876 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.291e-05/0.2376, allocations: 19.91 kB / 0.7876 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.2377, allocations: 0 / 0.7876 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.2377, allocations: 8 kB / 0.7876 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2377, allocations: 4 kB / 0.7876 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2377, allocations: 0 / 0.7876 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003495/0.238, allocations: 199.3 kB / 0.7878 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.2382, allocations: 88.95 kB / 0.7879 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.2382, allocations: 3.938 kB / 0.7879 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.981e-05/0.2383, allocations: 15.98 kB / 0.7879 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/0.2383, allocations: 3.984 kB / 0.7879 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.2384, allocations: 4 kB / 0.7879 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.19e-05/0.2384, allocations: 91.7 kB / 0.788 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2384, allocations: 0 / 0.788 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002147/0.2386, allocations: 11.94 kB / 0.788 GB, free: 8.273 MB / 0.6075 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.0006891/0.2393, allocations: 0.7435 MB / 0.7888 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003211/0.2397, allocations: 75.92 kB / 0.7888 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2397, allocations: 0 / 0.7888 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.2398, allocations: 43.89 kB / 0.7889 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.2401, allocations: 4.328 kB / 0.7889 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.2418, allocations: 1.432 MB / 0.7903 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002627/0.2421, allocations: 0.6923 MB / 0.7909 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.29e-05/0.2422, allocations: 11.98 kB / 0.791 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.667e-05/0.2422, allocations: 19.44 kB / 0.791 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of SimCode: time 3.81e-07/0.2422, allocations: 0 / 0.791 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7006/0.9429, allocations: 1.595 MB / 0.7925 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002749/0.9432, allocations: 191.8 kB / 0.7927 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.127/3.07, allocations: 0 / 0.7927 GB, free: 3.363 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)