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.001441/0.001441, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001985/0.001985, allocations: 197.3 kB / 16.26 MB, free: 6.621 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.548/1.548, allocations: 205.1 MB / 222.1 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4094/0.4094, allocations: 54.92 MB / 324.4 MB, free: 128 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.00145/0.00145, allocations: 67.91 kB / 394.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1433, allocations: 59.58 MB / 454.5 MB, free: 496 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.Average): time 0.2363/0.3796, allocations: 1.57 MB / 456.1 MB, free: 38.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000316/0.38, allocations: 93.64 kB / 456.1 MB, free: 38.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.182e-05/0.38, allocations: 0 / 456.1 MB, free: 38.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.3803, allocations: 5.469 kB / 456.2 MB, free: 38.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.78e-05/0.3803, allocations: 7.922 kB / 456.2 MB, free: 38.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002493/0.3806, allocations: 26.83 kB / 456.2 MB, free: 38.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.611e-05/0.3807, allocations: 51.83 kB / 456.2 MB, free: 38.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.3808, allocations: 25.11 kB / 456.3 MB, free: 38.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.302e-05/0.3809, allocations: 26.23 kB / 456.3 MB, free: 38.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.139e-05/0.3809, allocations: 36.27 kB / 456.3 MB, free: 38.83 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.3809, allocations: 2.906 kB / 456.3 MB, free: 38.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.181e-05/0.381, allocations: 15.84 kB / 456.3 MB, free: 38.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.202e-05/0.3811, allocations: 17.66 kB / 456.4 MB, free: 38.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.675e-05/0.3811, allocations: 24.19 kB / 456.4 MB, free: 38.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.3812, allocations: 54.08 kB / 456.4 MB, free: 38.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3812, allocations: 0 / 456.4 MB, free: 38.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3813, allocations: 0.5938 kB / 456.4 MB, free: 38.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.3813, allocations: 2.25 kB / 456.4 MB, free: 38.81 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.0005434/0.3818, allocations: 388.4 kB / 456.8 MB, free: 38.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.3819, allocations: 7.906 kB / 456.8 MB, free: 38.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.374e-05/0.3819, allocations: 4.125 kB / 456.8 MB, free: 38.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.3821, allocations: 186.7 kB / 457 MB, free: 38.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.3821, allocations: 3.625 kB / 457 MB, free: 38.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.3821, allocations: 8.625 kB / 457 MB, free: 38.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/0.3824, allocations: 89.78 kB / 457.1 MB, free: 38.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.3824, allocations: 0.7812 kB / 457.1 MB, free: 38.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.3825, allocations: 3.125 kB / 457.1 MB, free: 38.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.3825, allocations: 3.812 kB / 457.1 MB, free: 38.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002832/0.3828, allocations: 81.39 kB / 457.2 MB, free: 38.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004898/0.3833, allocations: 326.5 kB / 457.5 MB, free: 37.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001922/0.3835, allocations: 59.2 kB / 457.6 MB, free: 37.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.3836, allocations: 49.84 kB / 457.6 MB, free: 37.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.213e-05/0.3837, allocations: 0.5 kB / 457.6 MB, free: 37.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.3837, allocations: 34.78 kB / 457.7 MB, free: 37.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.3837, allocations: 1.969 kB / 457.7 MB, free: 37.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.000525/0.3842, allocations: 140.7 kB / 457.8 MB, free: 37.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.3843, allocations: 52.44 kB / 457.8 MB, free: 37.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.034e-05/0.3843, allocations: 117.2 kB / 458 MB, free: 37.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.3844, allocations: 26.52 kB / 458 MB, free: 37.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.459e-05/0.3844, allocations: 94.86 kB / 458.1 MB, free: 37.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.3844, allocations: 15.08 kB / 458.1 MB, free: 37.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.3845, allocations: 20.19 kB / 458.1 MB, free: 37.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.246e-05/0.3846, allocations: 318.6 kB / 458.4 MB, free: 37.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.3847, allocations: 32.86 kB / 458.5 MB, free: 37.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.3848, allocations: 39.61 kB / 458.5 MB, free: 37.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002537/0.3851, allocations: 72.41 kB / 458.6 MB, free: 37.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3851, allocations: 0 / 458.6 MB, free: 37.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002816/0.3854, allocations: 105.4 kB / 458.7 MB, free: 37.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.3854, allocations: 7.125 kB / 458.7 MB, free: 37.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.3854, allocations: 0 / 458.7 MB, free: 37.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3854, allocations: 0 / 458.7 MB, free: 37.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.3856, allocations: 19.7 kB / 458.7 MB, free: 37.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.3856, allocations: 2.688 kB / 458.7 MB, free: 37.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.161e-05/0.3857, allocations: 12.88 kB / 458.7 MB, free: 37.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.3857, allocations: 2.906 kB / 458.7 MB, free: 37.17 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.583e-05/0.3858, allocations: 120 kB / 458.8 MB, free: 37.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.681e-05/0.3858, allocations: 8.609 kB / 458.8 MB, free: 37.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003434/0.3862, allocations: 113.5 kB / 459 MB, free: 37.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3862, allocations: 0 / 459 MB, free: 37.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3862, allocations: 0 / 459 MB, free: 37.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3862, allocations: 3.938 kB / 459 MB, free: 37.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.3863, allocations: 186.9 kB / 459.1 MB, free: 36.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3863, allocations: 0 / 459.1 MB, free: 36.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.458e-05/0.3864, allocations: 17.02 kB / 459.2 MB, free: 36.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3864, allocations: 0 / 459.2 MB, free: 36.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.3865, allocations: 1.781 kB / 459.2 MB, free: 36.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3865, allocations: 0.9062 kB / 459.2 MB, free: 36.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3865, allocations: 0 / 459.2 MB, free: 36.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003123/0.3868, allocations: 211.2 kB / 459.4 MB, free: 36.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.542e-05/0.3868, allocations: 80.44 kB / 459.4 MB, free: 36.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.63e-05/0.3868, allocations: 3 kB / 459.4 MB, free: 36.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.915e-05/0.3869, allocations: 12.78 kB / 459.5 MB, free: 36.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.387, allocations: 6.25 kB / 459.5 MB, free: 36.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.387, allocations: 3.938 kB / 459.5 MB, free: 36.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.78e-05/0.3871, allocations: 101.3 kB / 459.6 MB, free: 36.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.714e-06/0.3871, allocations: 0 / 459.6 MB, free: 36.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002222/0.3873, allocations: 15.62 kB / 459.6 MB, free: 36.51 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.0001252/0.3874, allocations: 100.3 kB / 459.7 MB, free: 36.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003344/0.3878, allocations: 79.98 kB / 459.8 MB, free: 36.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3878, allocations: 4 kB / 459.8 MB, free: 36.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.3879, allocations: 38.31 kB / 459.8 MB, free: 36.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.3882, allocations: 6.344 kB / 459.8 MB, free: 36.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003287/0.3885, allocations: 168.6 kB / 460 MB, free: 36.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001323/0.3887, allocations: 0.6977 MB / 460.7 MB, free: 35.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.051e-05/0.3887, allocations: 6.234 kB / 460.7 MB, free: 35.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.94e-05/0.3888, allocations: 10.25 kB / 460.7 MB, free: 35.58 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3888, allocations: 0 / 460.7 MB, free: 35.58 MB / 382.1 MB Notification: Performance of Templates: time 0.003103/0.3919, allocations: 0.6521 MB / 461.3 MB, free: 35.54 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)