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: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001562/0.001562, 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.001897/0.001897, allocations: 196 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.296/1.296, allocations: 205.1 MB / 222.5 MB, free: 4.57 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.627/1.627, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001469/0.001469, allocations: 67.7 kB / 0.6723 GB, free: 25.81 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2036, allocations: 114.5 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002908/0.2065, allocations: 1.537 MB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003216/0.2069, allocations: 112.5 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.482e-05/0.2069, allocations: 0 / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.2071, allocations: 3.938 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.701e-05/0.2071, allocations: 15.88 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002248/0.2073, allocations: 27.95 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.937e-05/0.2074, allocations: 55.83 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.2076, allocations: 23.98 kB / 0.7858 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.565e-05/0.2076, allocations: 27.92 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.207e-05/0.2077, allocations: 31.84 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.2077, allocations: 4 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.503e-05/0.2078, allocations: 8 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.933e-05/0.2078, allocations: 15.92 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.803e-05/0.2079, allocations: 31.84 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.208, allocations: 55.81 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.208, allocations: 0 / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.243e-06/0.208, allocations: 0 / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.208, allocations: 0 / 0.786 GB, free: 10.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.000489/0.2085, allocations: 379.3 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.2085, allocations: 12.03 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.2086, allocations: 12.84 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.2087, allocations: 192 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.2087, allocations: 8.375 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/0.2088, allocations: 384 / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.209, allocations: 94.12 kB / 0.7867 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.209, allocations: 8.172 kB / 0.7867 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2091, allocations: 3.938 kB / 0.7867 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2091, allocations: 4 kB / 0.7867 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002832/0.2094, allocations: 79.86 kB / 0.7868 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000465/0.2098, allocations: 328.7 kB / 0.7871 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.21, allocations: 62.56 kB / 0.7871 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.2102, allocations: 40.91 kB / 0.7872 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/0.2102, allocations: 0 / 0.7872 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.2103, allocations: 34.56 kB / 0.7872 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 8.61e-07/0.2103, allocations: 0 / 0.7872 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.000515/0.2108, allocations: 137.6 kB / 0.7874 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.2108, allocations: 51.41 kB / 0.7874 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.329e-05/0.2109, allocations: 121.8 kB / 0.7875 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.211, allocations: 29.64 kB / 0.7875 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.694e-05/0.211, allocations: 95.98 kB / 0.7876 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.211, allocations: 3.906 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/0.2111, allocations: 21.7 kB / 0.7877 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.823e-05/0.2112, allocations: 314.8 kB / 0.788 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.2113, allocations: 35.95 kB / 0.788 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.2114, allocations: 35.97 kB / 0.788 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.2117, allocations: 76.77 kB / 0.7881 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.2117, allocations: 0 / 0.7881 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002981/0.212, allocations: 105.5 kB / 0.7882 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.212, allocations: 4 kB / 0.7882 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.212, allocations: 0 / 0.7882 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.2121, allocations: 7.938 kB / 0.7882 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.2122, allocations: 19.91 kB / 0.7882 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.2122, allocations: 0 / 0.7882 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.184e-05/0.2123, allocations: 11.98 kB / 0.7882 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.2123, allocations: 4 kB / 0.7882 GB, free: 8.277 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 8.097e-05/0.2124, allocations: 118.4 kB / 0.7884 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.742e-05/0.2124, allocations: 7.906 kB / 0.7884 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003649/0.2128, allocations: 117.5 kB / 0.7885 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2128, allocations: 0 / 0.7885 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2128, allocations: 0 / 0.7885 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2128, allocations: 4 kB / 0.7885 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.213, allocations: 178 kB / 0.7887 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.213, allocations: 0 / 0.7887 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.027e-05/0.2131, allocations: 19.92 kB / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.2131, allocations: 3.938 kB / 0.7887 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.2131, allocations: 3.984 kB / 0.7887 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2131, allocations: 0 / 0.7887 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2131, allocations: 0 / 0.7887 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003454/0.2135, allocations: 203.4 kB / 0.7889 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.179e-05/0.2136, allocations: 92.94 kB / 0.789 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.2136, allocations: 0 / 0.789 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.2137, allocations: 15.98 kB / 0.789 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.003e-05/0.2137, allocations: 4 kB / 0.789 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.2137, allocations: 8 kB / 0.789 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.705e-05/0.2138, allocations: 91.27 kB / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.9e-07/0.2138, allocations: 0 / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002291/0.214, allocations: 8 kB / 0.7891 GB, free: 7.312 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.0001451/0.2142, allocations: 103.2 kB / 0.7892 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003435/0.2145, allocations: 87.86 kB / 0.7893 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2145, allocations: 0 / 0.7893 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.2147, allocations: 39.95 kB / 0.7893 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.215, allocations: 7.938 kB / 0.7893 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003672/0.2154, allocations: 149.5 kB / 0.7895 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.2157, allocations: 0.6924 MB / 0.7901 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.971e-05/0.2157, allocations: 11.89 kB / 0.7901 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.741e-05/0.2157, allocations: 11.44 kB / 0.7902 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of SimCode: time 2.6e-07/0.2157, allocations: 3.938 kB / 0.7902 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of Templates: time 0.002708/0.2185, allocations: 0.761 MB / 0.7909 GB, free: 5.398 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Average.makefile (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 & ./Buildings_8_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)