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.001187/0.001188, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 196.6 kB / 16.64 MB, free: 6.453 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.469/1.469, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.723/1.723, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001636/0.001636, allocations: 69.95 kB / 0.6718 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.209, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002447/0.2115, allocations: 1.539 MB / 0.7851 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002843/0.2118, allocations: 112.5 kB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.268e-05/0.2118, allocations: 0 / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.2119, allocations: 11.92 kB / 0.7853 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.734e-05/0.212, allocations: 11.88 kB / 0.7853 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.2122, allocations: 27.97 kB / 0.7853 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.365e-05/0.2123, allocations: 47.84 kB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.2124, allocations: 35.91 kB / 0.7854 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.071e-05/0.2125, allocations: 19.92 kB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.883e-05/0.2125, allocations: 27.91 kB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.2126, allocations: 8 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.758e-05/0.2126, allocations: 8 kB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.954e-05/0.2127, allocations: 19.92 kB / 0.7855 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.374e-05/0.2127, allocations: 27.86 kB / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.2128, allocations: 60.08 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2128, allocations: 0 / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2129, allocations: 0 / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.2129, allocations: 0 / 0.7855 GB, free: 11.32 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.0004686/0.2133, allocations: 383.2 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2134, allocations: 12.03 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.991e-05/0.2134, allocations: 30.75 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.878e-05/0.2134, allocations: 12.84 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.2136, allocations: 192.1 kB / 0.7861 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.404e-06/0.2136, allocations: 384 / 0.7861 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.268e-05/0.2136, allocations: 8.375 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002541/0.2139, allocations: 90.14 kB / 0.7862 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.2139, allocations: 3.938 kB / 0.7862 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.676e-06/0.2139, allocations: 4 kB / 0.7862 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.2139, allocations: 0 / 0.7862 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002904/0.2142, allocations: 83.84 kB / 0.7863 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.2147, allocations: 324.7 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001892/0.2149, allocations: 62.56 kB / 0.7867 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.2151, allocations: 36.92 kB / 0.7867 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.2151, allocations: 7.984 kB / 0.7867 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.2151, allocations: 38.55 kB / 0.7868 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.2151, allocations: 0 / 0.7868 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0005161/0.2157, allocations: 133.6 kB / 0.7869 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.2157, allocations: 51.41 kB / 0.7869 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.159e-05/0.2158, allocations: 118.1 kB / 0.7871 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.2158, allocations: 33.7 kB / 0.7871 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.197e-05/0.2158, allocations: 95.97 kB / 0.7872 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.2159, allocations: 11.89 kB / 0.7872 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.844e-05/0.2159, allocations: 17.72 kB / 0.7872 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.239e-05/0.216, allocations: 318.8 kB / 0.7875 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.2162, allocations: 31.97 kB / 0.7875 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.2163, allocations: 35.95 kB / 0.7876 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.2166, allocations: 76.78 kB / 0.7877 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2166, allocations: 0 / 0.7877 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003127/0.2169, allocations: 109.5 kB / 0.7878 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.2169, allocations: 8.938 kB / 0.7878 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.2169, allocations: 0 / 0.7878 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.217, allocations: 0 / 0.7878 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.2171, allocations: 19.92 kB / 0.7878 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.2171, allocations: 0 / 0.7878 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.112e-05/0.2172, allocations: 7.984 kB / 0.7878 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.2172, allocations: 4 kB / 0.7878 GB, free: 8.766 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 7.654e-05/0.2173, allocations: 125.8 kB / 0.7879 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.2173, allocations: 3.906 kB / 0.7879 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000352/0.2177, allocations: 109.5 kB / 0.788 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2177, allocations: 3.984 kB / 0.788 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.2177, allocations: 0 / 0.788 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.2177, allocations: 3.938 kB / 0.788 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.2179, allocations: 189.6 kB / 0.7882 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2179, allocations: 0 / 0.7882 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.113e-05/0.218, allocations: 15.92 kB / 0.7882 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.218, allocations: 0 / 0.7882 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.218, allocations: 8 kB / 0.7882 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.218, allocations: 0 / 0.7882 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.218, allocations: 0 / 0.7882 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003486/0.2184, allocations: 203.4 kB / 0.7884 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.63e-05/0.2184, allocations: 84.95 kB / 0.7885 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.2184, allocations: 0 / 0.7885 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.2185, allocations: 11.98 kB / 0.7885 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.69e-05/0.2186, allocations: 12.41 kB / 0.7885 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.2186, allocations: 0 / 0.7885 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.818e-05/0.2186, allocations: 99.31 kB / 0.7886 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2187, allocations: 0 / 0.7886 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000227/0.2189, allocations: 11.94 kB / 0.7886 GB, free: 7.793 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.0006085/0.2195, allocations: 0.7467 MB / 0.7894 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003317/0.2198, allocations: 79.91 kB / 0.7894 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2199, allocations: 3.938 kB / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.22, allocations: 39.91 kB / 0.7895 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.2203, allocations: 7.984 kB / 0.7895 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/0.222, allocations: 1.424 MB / 0.7909 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.2222, allocations: 0.6885 MB / 0.7916 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.435e-05/0.2223, allocations: 7.984 kB / 0.7916 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.29e-05/0.2223, allocations: 23.42 kB / 0.7916 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of SimCode: time 3.01e-07/0.2223, allocations: 0 / 0.7916 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01633/0.2386, allocations: 1.788 MB / 0.7933 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.068/7.306, allocations: 10.89 kB / 0.7933 GB, free: 2.914 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)