Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS.Utilities.Math.Examples.Average") translateModel(IDEAS.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001658/0.001658, allocations: 106.1 kB / 16.36 MB, free: 6.34 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.002005/0.002004, allocations: 191.7 kB / 17.29 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8149/0.8149, allocations: 135.1 MB / 426.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001257, allocations: 63.89 kB / 0.5067 GB, free: 7.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.376, allocations: 80.91 MB / 0.5857 GB, free: 25.51 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002953/0.379, allocations: 1.535 MB / 0.5872 GB, free: 24.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000381/0.3794, allocations: 115.9 kB / 0.5874 GB, free: 24.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.765e-05/0.3795, allocations: 1.188 kB / 0.5874 GB, free: 24.23 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.3796, allocations: 6.062 kB / 0.5874 GB, free: 24.22 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.96e-05/0.3797, allocations: 17.44 kB / 0.5874 GB, free: 24.21 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002624/0.38, allocations: 24.59 kB / 0.5874 GB, free: 24.19 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.3801, allocations: 54.88 kB / 0.5875 GB, free: 24.16 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.3802, allocations: 23.64 kB / 0.5875 GB, free: 24.15 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.635e-05/0.3803, allocations: 25.11 kB / 0.5875 GB, free: 24.14 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.433e-05/0.3804, allocations: 36.86 kB / 0.5875 GB, free: 24.11 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.3804, allocations: 5.5 kB / 0.5875 GB, free: 24.11 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.005e-05/0.3805, allocations: 7.844 kB / 0.5876 GB, free: 24.11 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.172e-05/0.3805, allocations: 17.64 kB / 0.5876 GB, free: 24.1 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.858e-05/0.3806, allocations: 25.11 kB / 0.5876 GB, free: 24.08 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.3807, allocations: 59.92 kB / 0.5877 GB, free: 24.04 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3807, allocations: 5.938 kB / 0.5877 GB, free: 24.03 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3807, allocations: 0 / 0.5877 GB, free: 24.03 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.3807, allocations: 0.7812 kB / 0.5877 GB, free: 24.03 MB / 446.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.0004579/0.3812, allocations: 380.1 kB / 0.588 GB, free: 23.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.3812, allocations: 10.61 kB / 0.588 GB, free: 23.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.846e-05/0.3813, allocations: 9.188 kB / 0.588 GB, free: 23.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.3814, allocations: 189.4 kB / 0.5882 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.948e-06/0.3814, allocations: 1.875 kB / 0.5882 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.3815, allocations: 10.41 kB / 0.5882 GB, free: 23.42 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.3817, allocations: 90.38 kB / 0.5883 GB, free: 23.36 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.3817, allocations: 192 / 0.5883 GB, free: 23.36 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.3817, allocations: 6.25 kB / 0.5883 GB, free: 23.35 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.3817, allocations: 1.281 kB / 0.5883 GB, free: 23.35 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002734/0.382, allocations: 83.11 kB / 0.5884 GB, free: 23.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004555/0.3825, allocations: 325.3 kB / 0.5887 GB, free: 22.99 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001887/0.3827, allocations: 65.12 kB / 0.5888 GB, free: 22.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.3828, allocations: 40.78 kB / 0.5888 GB, free: 22.92 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/0.3829, allocations: 2.406 kB / 0.5888 GB, free: 22.92 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.512e-05/0.3829, allocations: 31.66 kB / 0.5888 GB, free: 22.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.223e-06/0.3829, allocations: 1.875 kB / 0.5888 GB, free: 22.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.000497/0.3834, allocations: 136 kB / 0.589 GB, free: 22.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.263e-05/0.3834, allocations: 60.58 kB / 0.589 GB, free: 22.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.185e-05/0.3835, allocations: 111.4 kB / 0.5891 GB, free: 22.63 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.845e-06/0.3835, allocations: 29.7 kB / 0.5892 GB, free: 22.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.845e-05/0.3836, allocations: 91.73 kB / 0.5893 GB, free: 22.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.3836, allocations: 13.23 kB / 0.5893 GB, free: 22.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.3836, allocations: 19.38 kB / 0.5893 GB, free: 22.47 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.702e-05/0.3837, allocations: 316.1 kB / 0.5896 GB, free: 22.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.3838, allocations: 35.77 kB / 0.5896 GB, free: 22.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.3839, allocations: 35.67 kB / 0.5897 GB, free: 22.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.3842, allocations: 77.84 kB / 0.5897 GB, free: 22.09 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3842, allocations: 0 / 0.5897 GB, free: 22.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002874/0.3845, allocations: 101 kB / 0.5898 GB, free: 22.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.3845, allocations: 10.03 kB / 0.5898 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3845, allocations: 4 kB / 0.5898 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3845, allocations: 0.5625 kB / 0.5898 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.3847, allocations: 23.72 kB / 0.5899 GB, free: 22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3847, allocations: 0 / 0.5899 GB, free: 22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.735e-05/0.3848, allocations: 13.45 kB / 0.5899 GB, free: 22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.3848, allocations: 1.281 kB / 0.5899 GB, free: 22 MB / 446.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 6.365e-05/0.3849, allocations: 124.4 kB / 0.59 GB, free: 21.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.021e-05/0.3849, allocations: 10.61 kB / 0.59 GB, free: 21.87 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003344/0.3853, allocations: 108.3 kB / 0.5901 GB, free: 21.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3853, allocations: 1.125 kB / 0.5901 GB, free: 21.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3853, allocations: 0 / 0.5901 GB, free: 21.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.3853, allocations: 2.906 kB / 0.5901 GB, free: 21.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001334/0.3854, allocations: 186.1 kB / 0.5903 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3854, allocations: 3.938 kB / 0.5903 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.224e-05/0.3855, allocations: 20.97 kB / 0.5903 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3855, allocations: 0 / 0.5903 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.3856, allocations: 1.625 kB / 0.5903 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.3856, allocations: 0 / 0.5903 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3856, allocations: 0 / 0.5903 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/0.3859, allocations: 203.9 kB / 0.5905 GB, free: 21.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.849e-05/0.3859, allocations: 82.42 kB / 0.5906 GB, free: 21.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.3859, allocations: 0 / 0.5906 GB, free: 21.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.873e-05/0.386, allocations: 11.98 kB / 0.5906 GB, free: 21.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.63e-05/0.3861, allocations: 16.89 kB / 0.5906 GB, free: 21.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.3861, allocations: 0 / 0.5906 GB, free: 21.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.918e-05/0.3861, allocations: 90.09 kB / 0.5907 GB, free: 21.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3861, allocations: 0 / 0.5907 GB, free: 21.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.3864, allocations: 17.42 kB / 0.5907 GB, free: 21.14 MB / 446.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.431e-05/0.3865, allocations: 103.1 kB / 0.5908 GB, free: 21.03 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003011/0.3868, allocations: 73.67 kB / 0.5909 GB, free: 20.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3868, allocations: 6.219 kB / 0.5909 GB, free: 20.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3869, allocations: 35.95 kB / 0.5909 GB, free: 20.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.3872, allocations: 4 kB / 0.5909 GB, free: 20.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002994/0.3875, allocations: 155 kB / 0.5911 GB, free: 20.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.699e-05/0.3876, allocations: 0.6973 MB / 0.5918 GB, free: 20.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.936e-05/0.3877, allocations: 11.98 kB / 0.5918 GB, free: 20.01 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.449e-05/0.3877, allocations: 9.938 kB / 0.5918 GB, free: 20 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3877, allocations: 3.938 kB / 0.5918 GB, free: 20 MB / 446.1 MB Notification: Performance of Templates: time 0.002731/0.3904, allocations: 0.7605 MB / 0.5925 GB, free: 19.27 MB / 446.1 MB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1)