Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.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/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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(Annex60.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average") translateModel(Annex60.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.00696/0.00696, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001272/0.001272, allocations: 190.2 kB / 16.67 MB, free: 5.973 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.598/1.598, allocations: 205.1 MB / 222.5 MB, free: 4.379 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4166/0.4166, allocations: 54.95 MB / 324.9 MB, free: 52 kB / 254.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: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 69 kB / 456.3 MB, free: 38.12 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1765, allocations: 59.6 MB / 0.5038 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.Average): time 0.004296/0.1809, allocations: 1.484 MB / 0.5052 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005249/0.1814, allocations: 108.4 kB / 0.5053 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.963e-05/0.1815, allocations: 1.375 kB / 0.5053 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001933/0.1817, allocations: 13.19 kB / 0.5053 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.182e-05/0.1818, allocations: 3.938 kB / 0.5053 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004032/0.1822, allocations: 36.08 kB / 0.5054 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001804/0.1824, allocations: 51.28 kB / 0.5054 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002153/0.1827, allocations: 32.33 kB / 0.5054 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.1828, allocations: 25.55 kB / 0.5055 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.1829, allocations: 28.09 kB / 0.5055 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.236e-05/0.1829, allocations: 5.5 kB / 0.5055 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.183, allocations: 16.25 kB / 0.5055 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.133e-05/0.1831, allocations: 12.11 kB / 0.5055 GB, free: 8.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.851e-05/0.1832, allocations: 29.3 kB / 0.5056 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.1834, allocations: 68.23 kB / 0.5056 GB, free: 8.211 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.1834, allocations: 0 / 0.5056 GB, free: 8.211 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1834, allocations: 0 / 0.5056 GB, free: 8.211 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.1834, allocations: 0 / 0.5056 GB, free: 8.211 MB / 382.1 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.0005699/0.184, allocations: 376.1 kB / 0.506 GB, free: 7.824 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.184, allocations: 9.625 kB / 0.506 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.707e-05/0.1841, allocations: 12.97 kB / 0.506 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.1843, allocations: 183.1 kB / 0.5062 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.1843, allocations: 1.75 kB / 0.5062 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.1843, allocations: 7.125 kB / 0.5062 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.1846, allocations: 91.75 kB / 0.5063 GB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.1846, allocations: 1.375 kB / 0.5063 GB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.1847, allocations: 4 kB / 0.5063 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.1847, allocations: 1.344 kB / 0.5063 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002978/0.185, allocations: 80.7 kB / 0.5064 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005395/0.1855, allocations: 327.6 kB / 0.5067 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/0.1857, allocations: 63.19 kB / 0.5067 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.1859, allocations: 40.34 kB / 0.5068 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.565e-05/0.186, allocations: 2.438 kB / 0.5068 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.186, allocations: 30.56 kB / 0.5068 GB, free: 7.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.573e-06/0.186, allocations: 0.9375 kB / 0.5068 GB, free: 7.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0006097/0.1866, allocations: 142.2 kB / 0.5069 GB, free: 6.973 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.1867, allocations: 51.41 kB / 0.507 GB, free: 6.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.1868, allocations: 119.8 kB / 0.5071 GB, free: 6.797 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.1868, allocations: 25.7 kB / 0.5071 GB, free: 6.766 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.062e-05/0.1869, allocations: 103.3 kB / 0.5072 GB, free: 6.664 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.1869, allocations: 13.14 kB / 0.5072 GB, free: 6.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.014e-05/0.187, allocations: 21.44 kB / 0.5073 GB, free: 6.629 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.706e-05/0.1871, allocations: 312.5 kB / 0.5076 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.1872, allocations: 33.83 kB / 0.5076 GB, free: 6.301 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.1874, allocations: 32.06 kB / 0.5076 GB, free: 6.289 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002742/0.1876, allocations: 84.64 kB / 0.5077 GB, free: 6.238 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1876, allocations: 0 / 0.5077 GB, free: 6.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003409/0.188, allocations: 101.7 kB / 0.5078 GB, free: 6.176 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.188, allocations: 4.156 kB / 0.5078 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.188, allocations: 5.531 kB / 0.5078 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.1881, allocations: 0 / 0.5078 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.1882, allocations: 18.16 kB / 0.5078 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.1882, allocations: 1.438 kB / 0.5078 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.435e-05/0.1883, allocations: 13.61 kB / 0.5078 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.1884, allocations: 1.406 kB / 0.5078 GB, free: 6.156 MB / 382.1 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 7.775e-05/0.1884, allocations: 114 kB / 0.5079 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.1885, allocations: 7.109 kB / 0.5079 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003526/0.1888, allocations: 123.8 kB / 0.5081 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.1888, allocations: 0 / 0.5081 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1889, allocations: 1.062 kB / 0.5081 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.1889, allocations: 7.875 kB / 0.5081 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.189, allocations: 178.2 kB / 0.5082 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.189, allocations: 1.969 kB / 0.5082 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.866e-05/0.1891, allocations: 18.02 kB / 0.5083 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.1891, allocations: 3.984 kB / 0.5083 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.1891, allocations: 5.625 kB / 0.5083 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1892, allocations: 0 / 0.5083 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1892, allocations: 0 / 0.5083 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003251/0.1895, allocations: 207.2 kB / 0.5085 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.641e-05/0.1895, allocations: 82.2 kB / 0.5085 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.1896, allocations: 1.312 kB / 0.5086 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.8e-05/0.1897, allocations: 11.3 kB / 0.5086 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.1897, allocations: 5.188 kB / 0.5086 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.1897, allocations: 9.453 kB / 0.5086 GB, free: 5.418 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.99e-05/0.1898, allocations: 87.75 kB / 0.5087 GB, free: 5.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1898, allocations: 1.5 kB / 0.5087 GB, free: 5.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002287/0.19, allocations: 12.03 kB / 0.5087 GB, free: 5.336 MB / 382.1 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.0001418/0.1902, allocations: 98.36 kB / 0.5088 GB, free: 5.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003364/0.1905, allocations: 71.92 kB / 0.5088 GB, free: 5.219 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1905, allocations: 0 / 0.5088 GB, free: 5.219 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.1907, allocations: 51.27 kB / 0.5089 GB, free: 5.191 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.191, allocations: 8.016 kB / 0.5089 GB, free: 5.188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003854/0.1914, allocations: 160.8 kB / 0.509 GB, free: 5.039 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001698/0.1916, allocations: 0.697 MB / 0.5097 GB, free: 4.328 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.597e-05/0.1916, allocations: 7.578 kB / 0.5097 GB, free: 4.324 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.302e-05/0.1917, allocations: 14.5 kB / 0.5097 GB, free: 4.312 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1917, allocations: 0 / 0.5097 GB, free: 4.312 MB / 382.1 MB Notification: Performance of Templates: time 0.003523/0.1952, allocations: 0.7623 MB / 0.5105 GB, free: 3.637 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.makefile (rm -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.pipe ; mkfifo Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.pipe >> ../files/Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.sim & ./Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.pipe 2>&1)