Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7863/0.7863, allocations: 143.8 MB / 159.1 MB, free: 6.496 MB / 122.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009626/0.0009626, allocations: 183.3 kB / 192 MB, free: 6.738 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 225.7 MB / 450.4 MB, free: 4.996 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007321/0.0007321, allocations: 99.52 kB / 0.5211 GB, free: 1.656 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001735/0.001735, allocations: 285 kB / 0.6025 GB, free: 49.29 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005629/0.0005629, allocations: 11.78 kB / 0.6948 GB, free: 59.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1756/0.1762, allocations: 82.46 MB / 0.7753 GB, free: 14.36 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.00186/0.1781, allocations: 1.244 MB / 0.7765 GB, free: 13.1 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003547/0.1784, allocations: 180.9 kB / 0.7767 GB, free: 12.91 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.151e-05/0.1785, allocations: 0 / 0.7767 GB, free: 12.91 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.1786, allocations: 7.922 kB / 0.7767 GB, free: 12.9 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 2.758e-05/0.1786, allocations: 3.938 kB / 0.7767 GB, free: 12.89 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001863/0.1788, allocations: 31.92 kB / 0.7767 GB, free: 12.86 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 8.875e-05/0.1789, allocations: 55.84 kB / 0.7768 GB, free: 12.81 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.1791, allocations: 23.97 kB / 0.7768 GB, free: 12.79 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.552e-05/0.1791, allocations: 19.92 kB / 0.7768 GB, free: 12.77 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.82e-05/0.1792, allocations: 27.84 kB / 0.7769 GB, free: 12.74 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.1792, allocations: 4 kB / 0.7769 GB, free: 12.73 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.62e-05/0.1793, allocations: 8 kB / 0.7769 GB, free: 12.73 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 4.333e-05/0.1793, allocations: 11.98 kB / 0.7769 GB, free: 12.71 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 5.427e-05/0.1794, allocations: 49.5 kB / 0.7769 GB, free: 12.66 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.1795, allocations: 56.08 kB / 0.777 GB, free: 12.61 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1796, allocations: 0 / 0.777 GB, free: 12.61 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1796, allocations: 0 / 0.777 GB, free: 12.61 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1796, allocations: 0 / 0.777 GB, free: 12.61 MB / 458.7 MB 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.0005382/0.1801, allocations: 387.2 kB / 0.7774 GB, free: 12.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1802, allocations: 12.03 kB / 0.7774 GB, free: 12.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.348e-05/0.1802, allocations: 4.938 kB / 0.7774 GB, free: 12.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.1804, allocations: 180.3 kB / 0.7775 GB, free: 11.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.1804, allocations: 4.375 kB / 0.7775 GB, free: 11.94 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.1804, allocations: 4.375 kB / 0.7776 GB, free: 11.94 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002944/0.1807, allocations: 98.2 kB / 0.7776 GB, free: 11.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1807, allocations: 4.125 kB / 0.7776 GB, free: 11.83 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.1808, allocations: 3.938 kB / 0.7777 GB, free: 11.83 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.1808, allocations: 0 / 0.7777 GB, free: 11.83 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003029/0.1811, allocations: 103.9 kB / 0.7778 GB, free: 11.73 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005351/0.1816, allocations: 352.5 kB / 0.7781 GB, free: 11.33 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.1818, allocations: 70.53 kB / 0.7782 GB, free: 11.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.182, allocations: 48.92 kB / 0.7782 GB, free: 11.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.458e-05/0.182, allocations: 8 kB / 0.7782 GB, free: 11.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.1821, allocations: 34.55 kB / 0.7782 GB, free: 11.15 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.1821, allocations: 0 / 0.7782 GB, free: 11.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0005418/0.1826, allocations: 177.5 kB / 0.7784 GB, free: 10.97 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.1827, allocations: 55.41 kB / 0.7785 GB, free: 10.91 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.465e-05/0.1828, allocations: 117.8 kB / 0.7786 GB, free: 10.78 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.1828, allocations: 25.7 kB / 0.7786 GB, free: 10.75 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.527e-05/0.1828, allocations: 92.12 kB / 0.7787 GB, free: 10.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.9e-05/0.1829, allocations: 11.81 kB / 0.7787 GB, free: 10.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-06/0.1829, allocations: 0 / 0.7787 GB, free: 10.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.183, allocations: 318.8 kB / 0.779 GB, free: 10.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.1831, allocations: 47.95 kB / 0.7791 GB, free: 10.28 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.1833, allocations: 43.95 kB / 0.7791 GB, free: 10.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.1836, allocations: 100.8 kB / 0.7792 GB, free: 10.13 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1836, allocations: 0 / 0.7792 GB, free: 10.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003121/0.1839, allocations: 125.6 kB / 0.7793 GB, free: 10 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.1839, allocations: 4 kB / 0.7793 GB, free: 10 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.184, allocations: 0 / 0.7793 GB, free: 10 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.184, allocations: 0 / 0.7793 GB, free: 10 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.1841, allocations: 23.97 kB / 0.7793 GB, free: 9.977 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.1841, allocations: 0 / 0.7793 GB, free: 9.977 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.584e-05/0.1842, allocations: 19.98 kB / 0.7794 GB, free: 9.957 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.1842, allocations: 0 / 0.7794 GB, free: 9.957 MB / 458.7 MB 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.0001143/0.1844, allocations: 118.3 kB / 0.7795 GB, free: 9.832 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.891e-05/0.1844, allocations: 11.89 kB / 0.7795 GB, free: 9.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004075/0.1848, allocations: 137.5 kB / 0.7796 GB, free: 9.672 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1848, allocations: 4 kB / 0.7796 GB, free: 9.668 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1848, allocations: 0 / 0.7796 GB, free: 9.668 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1849, allocations: 0 / 0.7796 GB, free: 9.668 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.1851, allocations: 185.5 kB / 0.7798 GB, free: 9.438 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1851, allocations: 0 / 0.7798 GB, free: 9.438 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.79e-05/0.1852, allocations: 23.97 kB / 0.7798 GB, free: 9.414 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1852, allocations: 0 / 0.7798 GB, free: 9.414 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.1852, allocations: 0 / 0.7798 GB, free: 9.414 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1852, allocations: 0 / 0.7798 GB, free: 9.414 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1852, allocations: 0 / 0.7798 GB, free: 9.414 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003836/0.1856, allocations: 231.3 kB / 0.78 GB, free: 9.172 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.975e-05/0.1857, allocations: 81.11 kB / 0.7801 GB, free: 9.074 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.1857, allocations: 4 kB / 0.7801 GB, free: 9.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1858, allocations: 23.86 kB / 0.7801 GB, free: 9.047 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.94e-05/0.1859, allocations: 11.92 kB / 0.7801 GB, free: 9.035 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.1859, allocations: 4 kB / 0.7802 GB, free: 9.031 MB / 458.7 MB Notification: Performance of sorting global known variables: time 6.04e-05/0.186, allocations: 95.27 kB / 0.7802 GB, free: 8.938 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.186, allocations: 0 / 0.7802 GB, free: 8.938 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002088/0.1862, allocations: 11.91 kB / 0.7803 GB, free: 8.926 MB / 458.7 MB 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.0001916/0.1864, allocations: 107.6 kB / 0.7804 GB, free: 8.812 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0003539/0.1867, allocations: 99.91 kB / 0.7805 GB, free: 8.715 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1867, allocations: 0 / 0.7805 GB, free: 8.715 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.1869, allocations: 55.95 kB / 0.7805 GB, free: 8.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.1872, allocations: 4 kB / 0.7805 GB, free: 8.656 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004021/0.1876, allocations: 164.6 kB / 0.7807 GB, free: 8.469 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.1879, allocations: 0.6965 MB / 0.7813 GB, free: 7.746 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 4.196e-05/0.188, allocations: 7.984 kB / 0.7814 GB, free: 7.738 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.744e-05/0.188, allocations: 11.44 kB / 0.7814 GB, free: 7.727 MB / 458.7 MB Notification: Performance of SimCode: time 3.11e-07/0.188, allocations: 0 / 0.7814 GB, free: 7.727 MB / 458.7 MB Notification: Performance of Templates: time 0.00263/0.1906, allocations: 0.6268 MB / 0.782 GB, free: 7.105 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)