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.001012/0.001013, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008553/0.008553, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.767/1.767, allocations: 205.4 MB / 222.5 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4631/0.4631, allocations: 55.01 MB / 325.7 MB, free: 0.5859 MB / 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.0005748/0.0005749, allocations: 12 kB / 397.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4417/0.4423, allocations: 60.72 MB / 458 MB, free: 38.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.Average): time 0.001556/0.4439, allocations: 1.229 MB / 459.2 MB, free: 38.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002756/0.4442, allocations: 95.7 kB / 459.3 MB, free: 38.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.631e-05/0.4442, allocations: 2.594 kB / 459.3 MB, free: 38.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.71e-05/0.4443, allocations: 7.641 kB / 459.3 MB, free: 38.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.157e-05/0.4444, allocations: 4.844 kB / 459.3 MB, free: 38.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001693/0.4445, allocations: 23.06 kB / 459.3 MB, free: 38.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.296e-05/0.4446, allocations: 53 kB / 459.4 MB, free: 38.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.785e-05/0.4447, allocations: 33.52 kB / 459.4 MB, free: 38.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.114e-05/0.4448, allocations: 15.66 kB / 459.4 MB, free: 38.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.569e-05/0.4448, allocations: 28.08 kB / 459.5 MB, free: 38.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.4449, allocations: 2.406 kB / 459.5 MB, free: 38.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.495e-05/0.4449, allocations: 5.375 kB / 459.5 MB, free: 38.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.297e-05/0.445, allocations: 14.8 kB / 459.5 MB, free: 38.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.443e-05/0.445, allocations: 46.41 kB / 459.5 MB, free: 38.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.357e-05/0.4451, allocations: 53.75 kB / 459.6 MB, free: 38.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4451, allocations: 1.406 kB / 459.6 MB, free: 38.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4451, allocations: 0 / 459.6 MB, free: 38.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.4451, allocations: 0 / 459.6 MB, free: 38.39 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.0004374/0.4456, allocations: 380.1 kB / 460 MB, free: 38.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.4456, allocations: 14.5 kB / 460 MB, free: 38.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.4456, allocations: 7.812 kB / 460 MB, free: 38.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.4458, allocations: 188.7 kB / 460.2 MB, free: 37.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.4458, allocations: 7.094 kB / 460.2 MB, free: 37.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.046e-05/0.4458, allocations: 3.219 kB / 460.2 MB, free: 37.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.4461, allocations: 103 kB / 460.3 MB, free: 37.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.4461, allocations: 0.7812 kB / 460.3 MB, free: 37.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.4461, allocations: 0.5625 kB / 460.3 MB, free: 37.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.4461, allocations: 3.469 kB / 460.3 MB, free: 37.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000305/0.4464, allocations: 106.5 kB / 460.4 MB, free: 37.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004323/0.4469, allocations: 335.2 kB / 460.7 MB, free: 37.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001914/0.4471, allocations: 77.5 kB / 460.8 MB, free: 37.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.4472, allocations: 56.16 kB / 460.8 MB, free: 37.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.4473, allocations: 0.6875 kB / 460.8 MB, free: 37.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/0.4473, allocations: 31.69 kB / 460.9 MB, free: 37.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.4473, allocations: 4.344 kB / 460.9 MB, free: 37.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005294/0.4478, allocations: 163.2 kB / 461 MB, free: 37.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.503e-05/0.4479, allocations: 54.47 kB / 461.1 MB, free: 37.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.434e-05/0.4479, allocations: 121.9 kB / 461.2 MB, free: 37.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.147e-06/0.448, allocations: 26.73 kB / 461.2 MB, free: 37.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.407e-05/0.448, allocations: 97.61 kB / 461.3 MB, free: 37.13 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.448, allocations: 10.94 kB / 461.3 MB, free: 37.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.909e-05/0.448, allocations: 13.66 kB / 461.3 MB, free: 37.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.063e-05/0.4481, allocations: 325 kB / 461.7 MB, free: 36.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.4483, allocations: 42.41 kB / 461.7 MB, free: 36.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.4484, allocations: 47.53 kB / 461.8 MB, free: 36.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/0.4487, allocations: 104.6 kB / 461.9 MB, free: 36.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4487, allocations: 0 / 461.9 MB, free: 36.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003147/0.449, allocations: 129.2 kB / 462 MB, free: 36.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.449, allocations: 5.875 kB / 462 MB, free: 36.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.449, allocations: 1.125 kB / 462 MB, free: 36.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.4491, allocations: 0 / 462 MB, free: 36.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.4492, allocations: 25.05 kB / 462 MB, free: 36.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.4492, allocations: 3.469 kB / 462 MB, free: 36.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.68e-05/0.4493, allocations: 24.92 kB / 462 MB, free: 36.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.4493, allocations: 1.016 kB / 462 MB, free: 36.71 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 5.485e-05/0.4494, allocations: 112 kB / 462.2 MB, free: 36.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.435e-05/0.4494, allocations: 10.42 kB / 462.2 MB, free: 36.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003542/0.4498, allocations: 131.8 kB / 462.3 MB, free: 36.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.4498, allocations: 0 / 462.3 MB, free: 36.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4498, allocations: 0.6094 kB / 462.3 MB, free: 36.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.4498, allocations: 10.72 kB / 462.3 MB, free: 36.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.4499, allocations: 179.2 kB / 462.5 MB, free: 36.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.4499, allocations: 0 / 462.5 MB, free: 36.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.845e-05/0.45, allocations: 19.47 kB / 462.5 MB, free: 36.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.45, allocations: 0 / 462.5 MB, free: 36.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.45, allocations: 7.969 kB / 462.5 MB, free: 36.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.45, allocations: 0 / 462.5 MB, free: 36.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4501, allocations: 3.422 kB / 462.5 MB, free: 36.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.4504, allocations: 226.9 kB / 462.7 MB, free: 36.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.188e-05/0.4504, allocations: 83.08 kB / 462.8 MB, free: 36.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.4504, allocations: 2.875 kB / 462.8 MB, free: 36.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.4505, allocations: 15.23 kB / 462.8 MB, free: 36.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-05/0.4506, allocations: 7.5 kB / 462.8 MB, free: 36.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.4506, allocations: 7.438 kB / 462.8 MB, free: 36.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.11e-05/0.4506, allocations: 93.92 kB / 462.9 MB, free: 36.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4506, allocations: 0 / 462.9 MB, free: 36.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002109/0.4509, allocations: 9.594 kB / 462.9 MB, free: 36.04 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 9.976e-05/0.451, allocations: 105.3 kB / 463 MB, free: 35.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003429/0.4513, allocations: 102.5 kB / 463.1 MB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4513, allocations: 0 / 463.1 MB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.4515, allocations: 53.66 kB / 463.2 MB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.4518, allocations: 2.906 kB / 463.2 MB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003023/0.4521, allocations: 174.4 kB / 463.4 MB, free: 35.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001193/0.4522, allocations: 0.6899 MB / 464.1 MB, free: 35.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.793e-05/0.4523, allocations: 9.969 kB / 464.1 MB, free: 35.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.304e-05/0.4523, allocations: 10.31 kB / 464.1 MB, free: 35.09 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4523, allocations: 0 / 464.1 MB, free: 35.09 MB / 382.1 MB Notification: Performance of Templates: time 0.00246/0.4548, allocations: 0.6298 MB / 464.7 MB, free: 35.04 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: