Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IDEAS.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Average") translateModel(IDEAS.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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.0008344/0.0008344, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.0008781/0.0008781, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.173/1.173, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6651/0.6651, allocations: 132.4 MB / 423.4 MB, free: 2.082 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002594, allocations: 12 kB / 0.5034 GB, free: 4.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.326, allocations: 81.58 MB / 0.5831 GB, free: 3.977 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.001194/0.3272, allocations: 1.237 MB / 0.5843 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002336/0.3275, allocations: 106.5 kB / 0.5844 GB, free: 3 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.362e-05/0.3275, allocations: 1.25 kB / 0.5844 GB, free: 3 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.395e-05/0.3276, allocations: 7.453 kB / 0.5844 GB, free: 2.996 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 1.989e-05/0.3276, allocations: 9.875 kB / 0.5844 GB, free: 2.988 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000163/0.3278, allocations: 30.31 kB / 0.5844 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.105e-05/0.3279, allocations: 51.36 kB / 0.5845 GB, free: 2.949 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.901e-05/0.328, allocations: 17.03 kB / 0.5845 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.231e-05/0.328, allocations: 17 kB / 0.5845 GB, free: 2.941 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.652e-05/0.3281, allocations: 21.75 kB / 0.5845 GB, free: 2.934 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.3281, allocations: 1.969 kB / 0.5845 GB, free: 2.934 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.413e-05/0.3282, allocations: 14.69 kB / 0.5846 GB, free: 2.926 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.574e-05/0.3282, allocations: 10.67 kB / 0.5846 GB, free: 2.922 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.298e-05/0.3282, allocations: 36.7 kB / 0.5846 GB, free: 2.883 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 7.973e-05/0.3283, allocations: 37.36 kB / 0.5846 GB, free: 2.875 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3283, allocations: 0.9375 kB / 0.5846 GB, free: 2.875 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3283, allocations: 0 / 0.5846 GB, free: 2.875 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.3283, allocations: 0 / 0.5846 GB, free: 2.875 MB / 430.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.0003694/0.3287, allocations: 391.9 kB / 0.585 GB, free: 2.496 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.757e-05/0.3287, allocations: 8.75 kB / 0.585 GB, free: 2.496 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.69e-05/0.3288, allocations: 11.73 kB / 0.585 GB, free: 2.488 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.3289, allocations: 175.2 kB / 0.5852 GB, free: 2.289 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.3289, allocations: 5.875 kB / 0.5852 GB, free: 2.285 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.3289, allocations: 11.38 kB / 0.5852 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002374/0.3292, allocations: 94.38 kB / 0.5853 GB, free: 2.234 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.3292, allocations: 1.094 kB / 0.5853 GB, free: 2.234 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.3292, allocations: 4 kB / 0.5853 GB, free: 2.23 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.3292, allocations: 1.062 kB / 0.5853 GB, free: 2.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002761/0.3295, allocations: 104 kB / 0.5854 GB, free: 2.215 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003983/0.3299, allocations: 345.5 kB / 0.5857 GB, free: 1.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001637/0.3301, allocations: 71.75 kB / 0.5858 GB, free: 1.875 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.3302, allocations: 53.16 kB / 0.5859 GB, free: 1.859 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.294e-05/0.3302, allocations: 10.66 kB / 0.5859 GB, free: 1.852 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.306e-05/0.3303, allocations: 32.09 kB / 0.5859 GB, free: 1.812 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3303, allocations: 0 / 0.5859 GB, free: 1.812 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004721/0.3307, allocations: 172.1 kB / 0.5861 GB, free: 1.758 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.094e-05/0.3308, allocations: 55.41 kB / 0.5861 GB, free: 1.691 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.317e-05/0.3308, allocations: 116.9 kB / 0.5862 GB, free: 1.586 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.261e-06/0.3309, allocations: 25.7 kB / 0.5862 GB, free: 1.555 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.634e-05/0.3309, allocations: 97.3 kB / 0.5863 GB, free: 1.461 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.3309, allocations: 14.97 kB / 0.5864 GB, free: 1.449 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-06/0.3309, allocations: 0 / 0.5864 GB, free: 1.449 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.389e-05/0.331, allocations: 318 kB / 0.5867 GB, free: 1.133 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.3311, allocations: 50.19 kB / 0.5867 GB, free: 1.121 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.3312, allocations: 42.5 kB / 0.5867 GB, free: 1.117 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.3313, allocations: 47.52 kB / 0.5868 GB, free: 1.109 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3314, allocations: 0.7969 kB / 0.5868 GB, free: 1.109 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002778/0.3316, allocations: 121.7 kB / 0.5869 GB, free: 1.066 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.3317, allocations: 9.109 kB / 0.5869 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.3317, allocations: 0 / 0.5869 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.3317, allocations: 5.703 kB / 0.5869 GB, free: 1.059 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.3318, allocations: 24.61 kB / 0.5869 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-06/0.3318, allocations: 0.9375 kB / 0.5869 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.897e-05/0.3319, allocations: 19.86 kB / 0.587 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.3319, allocations: 1.719 kB / 0.587 GB, free: 1.051 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.3319, allocations: 112 kB / 0.5871 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.496e-05/0.332, allocations: 18.12 kB / 0.5871 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003135/0.3323, allocations: 142 kB / 0.5872 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3323, allocations: 0 / 0.5872 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.3323, allocations: 0.75 kB / 0.5872 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3323, allocations: 1.422 kB / 0.5872 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.3324, allocations: 173.6 kB / 0.5874 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.3324, allocations: 0.6094 kB / 0.5874 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.785e-05/0.3325, allocations: 20.84 kB / 0.5874 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3325, allocations: 4 kB / 0.5874 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.3326, allocations: 1.578 kB / 0.5874 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3326, allocations: 4.891 kB / 0.5874 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.3326, allocations: 0.5156 kB / 0.5874 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.3329, allocations: 225.6 kB / 0.5876 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.633e-05/0.3329, allocations: 79.7 kB / 0.5877 GB, free: 420 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.3329, allocations: 1.062 kB / 0.5877 GB, free: 420 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.662e-05/0.333, allocations: 24.98 kB / 0.5877 GB, free: 412 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.421e-05/0.3331, allocations: 15.05 kB / 0.5878 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.3331, allocations: 2.781 kB / 0.5878 GB, free: 400 kB / 430.1 MB Notification: Performance of sorting global known variables: time 2.919e-05/0.3331, allocations: 92.78 kB / 0.5878 GB, free: 320 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3331, allocations: 0.6875 kB / 0.5878 GB, free: 320 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002072/0.3333, allocations: 9.812 kB / 0.5879 GB, free: 320 kB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.35e-05/0.3334, allocations: 96.47 kB / 0.5879 GB, free: 228 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003076/0.3337, allocations: 102.9 kB / 0.588 GB, free: 208 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3337, allocations: 4.75 kB / 0.5881 GB, free: 204 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.3339, allocations: 48.42 kB / 0.5881 GB, free: 200 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.3341, allocations: 3.422 kB / 0.5881 GB, free: 200 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002486/0.3344, allocations: 166.2 kB / 0.5883 GB, free: 52 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.3346, allocations: 0.6924 MB / 0.5889 GB, free: 15.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.961e-05/0.3347, allocations: 7.578 kB / 0.5889 GB, free: 15.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.999e-05/0.3347, allocations: 9.75 kB / 0.589 GB, free: 15.34 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3347, allocations: 4 kB / 0.589 GB, free: 15.34 MB / 446.1 MB Notification: Performance of Templates: time 0.002565/0.3373, allocations: 0.6053 MB / 0.5895 GB, free: 15.27 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.Average.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Average.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1)