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.008243/0.008243, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001375/0.001375, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.614/1.614, allocations: 205.1 MB / 222.5 MB, free: 4.398 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.421/0.421, allocations: 54.95 MB / 324.9 MB, free: 80 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.001567/0.001567, allocations: 64.73 kB / 456.2 MB, free: 38.66 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1618, allocations: 59.59 MB / 0.5037 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.Average): time 0.002656/0.1646, allocations: 1.504 MB / 0.5052 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003216/0.1649, allocations: 99.8 kB / 0.5053 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.651e-05/0.165, allocations: 5.062 kB / 0.5053 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.1652, allocations: 9.359 kB / 0.5053 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.697e-05/0.1652, allocations: 12.95 kB / 0.5053 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002641/0.1655, allocations: 23.81 kB / 0.5054 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001109/0.1656, allocations: 57.84 kB / 0.5054 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.1657, allocations: 20.95 kB / 0.5054 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.332e-05/0.1658, allocations: 25.83 kB / 0.5055 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.083e-05/0.1659, allocations: 37.17 kB / 0.5055 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.1659, allocations: 3.781 kB / 0.5055 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.185e-05/0.166, allocations: 15.98 kB / 0.5055 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.386e-05/0.166, allocations: 13.11 kB / 0.5055 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.366e-05/0.1661, allocations: 24.25 kB / 0.5055 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.1662, allocations: 61.33 kB / 0.5056 GB, free: 8.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1662, allocations: 0 / 0.5056 GB, free: 8.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1662, allocations: 0 / 0.5056 GB, free: 8.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1663, allocations: 0 / 0.5056 GB, free: 8.324 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.0005576/0.1668, allocations: 380.3 kB / 0.506 GB, free: 7.934 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.1669, allocations: 14.44 kB / 0.506 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.274e-05/0.1669, allocations: 6.781 kB / 0.506 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.1671, allocations: 188.7 kB / 0.5062 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.1671, allocations: 5.469 kB / 0.5062 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.1671, allocations: 2.562 kB / 0.5062 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.1675, allocations: 89.23 kB / 0.5063 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1675, allocations: 0 / 0.5063 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.1675, allocations: 0 / 0.5063 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1675, allocations: 13.44 kB / 0.5063 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003189/0.1678, allocations: 86.25 kB / 0.5064 GB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005317/0.1684, allocations: 323.3 kB / 0.5067 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.1686, allocations: 65.84 kB / 0.5067 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.1688, allocations: 36.17 kB / 0.5068 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.1688, allocations: 6.734 kB / 0.5068 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.1688, allocations: 31.94 kB / 0.5068 GB, free: 7.156 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.303e-06/0.1688, allocations: 0 / 0.5068 GB, free: 7.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005897/0.1694, allocations: 142 kB / 0.5069 GB, free: 7.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.1695, allocations: 51.41 kB / 0.507 GB, free: 7.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.52e-05/0.1696, allocations: 119.5 kB / 0.5071 GB, free: 6.895 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.1696, allocations: 29.7 kB / 0.5071 GB, free: 6.859 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.49e-05/0.1696, allocations: 98.78 kB / 0.5072 GB, free: 6.762 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.26e-05/0.1697, allocations: 10.59 kB / 0.5072 GB, free: 6.754 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.666e-05/0.1697, allocations: 16.47 kB / 0.5072 GB, free: 6.734 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.946e-05/0.1698, allocations: 316.2 kB / 0.5075 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.17, allocations: 29.84 kB / 0.5076 GB, free: 6.406 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.1701, allocations: 35.2 kB / 0.5076 GB, free: 6.391 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.1704, allocations: 77.91 kB / 0.5077 GB, free: 6.348 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.1704, allocations: 1.375 kB / 0.5077 GB, free: 6.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003166/0.1707, allocations: 108.1 kB / 0.5078 GB, free: 6.277 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1707, allocations: 5.5 kB / 0.5078 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1708, allocations: 4 kB / 0.5078 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.1708, allocations: 0 / 0.5078 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.1709, allocations: 14.98 kB / 0.5078 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1709, allocations: 0 / 0.5078 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.838e-05/0.171, allocations: 14.8 kB / 0.5078 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.171, allocations: 1.375 kB / 0.5078 GB, free: 6.262 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.021e-05/0.1711, allocations: 118 kB / 0.5079 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-05/0.1712, allocations: 6.75 kB / 0.5079 GB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003777/0.1715, allocations: 116 kB / 0.5081 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1716, allocations: 3.984 kB / 0.5081 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1716, allocations: 5.312 kB / 0.5081 GB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1716, allocations: 7.938 kB / 0.5081 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.1717, allocations: 178.2 kB / 0.5082 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1717, allocations: 0 / 0.5082 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.349e-05/0.1719, allocations: 19.27 kB / 0.5083 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1719, allocations: 0 / 0.5083 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.1719, allocations: 1.375 kB / 0.5083 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1719, allocations: 0 / 0.5083 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1719, allocations: 0 / 0.5083 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003414/0.1722, allocations: 207.6 kB / 0.5085 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.433e-05/0.1723, allocations: 87.55 kB / 0.5085 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.1723, allocations: 0 / 0.5085 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.1724, allocations: 10.52 kB / 0.5086 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.151e-05/0.1725, allocations: 14.45 kB / 0.5086 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.178e-06/0.1725, allocations: 1.188 kB / 0.5086 GB, free: 5.523 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.998e-05/0.1725, allocations: 96.02 kB / 0.5087 GB, free: 5.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1725, allocations: 0 / 0.5087 GB, free: 5.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.1728, allocations: 13.22 kB / 0.5087 GB, free: 5.434 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.0001272/0.1729, allocations: 98.77 kB / 0.5088 GB, free: 5.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000366/0.1733, allocations: 78.91 kB / 0.5088 GB, free: 5.309 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1733, allocations: 1.156 kB / 0.5088 GB, free: 5.309 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.1734, allocations: 38.91 kB / 0.5089 GB, free: 5.293 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.1738, allocations: 6.609 kB / 0.5089 GB, free: 5.289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003315/0.1741, allocations: 169.4 kB / 0.509 GB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001505/0.1743, allocations: 0.6899 MB / 0.5097 GB, free: 4.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.635e-05/0.1743, allocations: 7.578 kB / 0.5097 GB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.755e-05/0.1743, allocations: 13.31 kB / 0.5097 GB, free: 4.414 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1744, allocations: 0 / 0.5097 GB, free: 4.414 MB / 382.1 MB Notification: Performance of Templates: time 0.003112/0.1775, allocations: 0.7569 MB / 0.5105 GB, free: 3.746 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)