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.001342/0.001342, allocations: 108 kB / 15.6 MB, free: 132 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.001417/0.001418, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.596/1.596, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4231/0.4231, allocations: 54.95 MB / 324.7 MB, free: 15.94 MB / 270.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.001582/0.001582, allocations: 75.88 kB / 395.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1518, allocations: 59.59 MB / 454.9 MB, free: 148 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.Average): time 0.2574/0.4093, allocations: 1.49 MB / 456.4 MB, free: 39.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002838/0.4096, allocations: 99.2 kB / 456.5 MB, free: 39.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.752e-05/0.4097, allocations: 1.125 kB / 456.5 MB, free: 39.51 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.4098, allocations: 17.73 kB / 456.5 MB, free: 39.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.317e-05/0.4099, allocations: 7.875 kB / 456.5 MB, free: 39.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.4101, allocations: 26.19 kB / 456.6 MB, free: 39.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.94e-05/0.4102, allocations: 57.7 kB / 456.6 MB, free: 39.51 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.4103, allocations: 30.5 kB / 456.6 MB, free: 39.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.209e-05/0.4104, allocations: 24.62 kB / 456.7 MB, free: 39.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.698e-05/0.4104, allocations: 28.27 kB / 456.7 MB, free: 39.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.4105, allocations: 5.031 kB / 456.7 MB, free: 39.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.703e-05/0.4105, allocations: 9.312 kB / 456.7 MB, free: 39.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.965e-05/0.4106, allocations: 16.55 kB / 456.7 MB, free: 39.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.789e-05/0.4106, allocations: 22.92 kB / 456.8 MB, free: 39.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.4107, allocations: 63.42 kB / 456.8 MB, free: 39.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4108, allocations: 0.5938 kB / 456.8 MB, free: 39.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4108, allocations: 0.9062 kB / 456.8 MB, free: 39.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.4108, allocations: 0 / 456.8 MB, free: 39.48 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.0004436/0.4112, allocations: 383.3 kB / 457.2 MB, free: 39.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.4113, allocations: 10.28 kB / 457.2 MB, free: 39.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.677e-05/0.4113, allocations: 3.906 kB / 457.2 MB, free: 39.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.4114, allocations: 186.9 kB / 457.4 MB, free: 38.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.4114, allocations: 3.25 kB / 457.4 MB, free: 38.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.4115, allocations: 4.5 kB / 457.4 MB, free: 38.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002557/0.4117, allocations: 92.77 kB / 457.5 MB, free: 38.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.4117, allocations: 4.656 kB / 457.5 MB, free: 38.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.4118, allocations: 4.828 kB / 457.5 MB, free: 38.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.4118, allocations: 0 / 457.5 MB, free: 38.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002868/0.4121, allocations: 75.33 kB / 457.6 MB, free: 38.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004798/0.4125, allocations: 330.2 kB / 457.9 MB, free: 38.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/0.4128, allocations: 61.14 kB / 457.9 MB, free: 38.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.4129, allocations: 37.97 kB / 458 MB, free: 38.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.413, allocations: 3.375 kB / 458 MB, free: 38.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.413, allocations: 42.8 kB / 458 MB, free: 38.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.413, allocations: 0 / 458 MB, free: 38.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005357/0.4135, allocations: 137.4 kB / 458.2 MB, free: 38.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.4136, allocations: 52.06 kB / 458.2 MB, free: 38.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.763e-05/0.4137, allocations: 118.8 kB / 458.3 MB, free: 38.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.4137, allocations: 26.36 kB / 458.4 MB, free: 38.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.867e-05/0.4137, allocations: 94.98 kB / 458.5 MB, free: 38.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.4138, allocations: 15.73 kB / 458.5 MB, free: 38.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.251e-05/0.4138, allocations: 16.38 kB / 458.5 MB, free: 38.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.731e-05/0.4139, allocations: 322.3 kB / 458.8 MB, free: 37.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.414, allocations: 36.66 kB / 458.8 MB, free: 37.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.4142, allocations: 33.33 kB / 458.9 MB, free: 37.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/0.4145, allocations: 75.89 kB / 458.9 MB, free: 37.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4145, allocations: 3.234 kB / 458.9 MB, free: 37.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003135/0.4148, allocations: 106.3 kB / 459 MB, free: 37.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.4148, allocations: 3.75 kB / 459.1 MB, free: 37.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.4148, allocations: 2.688 kB / 459.1 MB, free: 37.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.4148, allocations: 0 / 459.1 MB, free: 37.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.415, allocations: 22.5 kB / 459.1 MB, free: 37.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.415, allocations: 0.9375 kB / 459.1 MB, free: 37.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.976e-05/0.4151, allocations: 18.81 kB / 459.1 MB, free: 37.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.4151, allocations: 1.969 kB / 459.1 MB, free: 37.84 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.313e-05/0.4152, allocations: 116.2 kB / 459.2 MB, free: 37.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.636e-05/0.4152, allocations: 8.719 kB / 459.2 MB, free: 37.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000358/0.4156, allocations: 113 kB / 459.3 MB, free: 37.69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.4156, allocations: 3.719 kB / 459.3 MB, free: 37.69 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4156, allocations: 0 / 459.3 MB, free: 37.69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.4156, allocations: 5.281 kB / 459.3 MB, free: 37.69 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.4158, allocations: 177.9 kB / 459.5 MB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4158, allocations: 0 / 459.5 MB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.958e-05/0.4159, allocations: 18.3 kB / 459.5 MB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.4159, allocations: 0 / 459.5 MB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.4159, allocations: 3.531 kB / 459.5 MB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-06/0.4159, allocations: 0 / 459.5 MB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4159, allocations: 2.594 kB / 459.5 MB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.4162, allocations: 203.8 kB / 459.7 MB, free: 37.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.271e-05/0.4163, allocations: 80.98 kB / 459.8 MB, free: 37.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.4163, allocations: 5.188 kB / 459.8 MB, free: 37.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.4164, allocations: 10.16 kB / 459.8 MB, free: 37.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.261e-05/0.4165, allocations: 10.78 kB / 459.8 MB, free: 37.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-06/0.4165, allocations: 8.406 kB / 459.8 MB, free: 37.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.24e-05/0.4165, allocations: 91.19 kB / 459.9 MB, free: 37.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4165, allocations: 1.312 kB / 459.9 MB, free: 37.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002284/0.4167, allocations: 15.09 kB / 460 MB, free: 37.19 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.0001162/0.4169, allocations: 100.5 kB / 460 MB, free: 37.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003214/0.4172, allocations: 79.77 kB / 460.1 MB, free: 37.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4172, allocations: 4.594 kB / 460.1 MB, free: 37.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.4174, allocations: 43.06 kB / 460.2 MB, free: 37.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.4177, allocations: 6.562 kB / 460.2 MB, free: 37.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003032/0.418, allocations: 151.5 kB / 460.3 MB, free: 36.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.4181, allocations: 0.6915 MB / 461 MB, free: 36.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.794e-05/0.4182, allocations: 9.094 kB / 461 MB, free: 36.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.342e-05/0.4182, allocations: 11.56 kB / 461 MB, free: 36.27 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4182, allocations: 0 / 461 MB, free: 36.27 MB / 382.1 MB Notification: Performance of Templates: time 0.002953/0.4212, allocations: 0.7614 MB / 461.8 MB, free: 36.23 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)