Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.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) 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(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009897/0.0009898, allocations: 94.83 kB / 16.3 MB, free: 5.996 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.001068/0.001068, allocations: 184 kB / 17.2 MB, free: 5.914 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.507/1.507, allocations: 205.4 MB / 223.4 MB, free: 5.77 MB / 174.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: Performance of FrontEnd - loaded program: time 0.0004628/0.0004629, allocations: 16 kB / 280.1 MB, free: 13.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2775, allocations: 47.58 MB / 327.7 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.00338/0.281, allocations: 2.972 MB / 330.7 MB, free: 15.13 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.2833, allocations: 1.188 MB / 331.8 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002756/0.2836, allocations: 16.62 kB / 331.9 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.2838, allocations: 50.33 kB / 331.9 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003664/0.2841, allocations: 125.2 kB / 332 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007188/0.2849, allocations: 257 kB / 332.3 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008177/0.2857, allocations: 481.3 kB / 332.8 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005629/0.2863, allocations: 262.9 kB / 333 MB, free: 13.34 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004532/0.2867, allocations: 225.1 kB / 333.2 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004032/0.2872, allocations: 254.3 kB / 333.5 MB, free: 13.03 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.925e-05/0.2872, allocations: 23 kB / 333.5 MB, free: 13.03 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.636e-05/0.2873, allocations: 21.69 kB / 333.5 MB, free: 13.03 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.2875, allocations: 110.2 kB / 333.6 MB, free: 12.95 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002105/0.2877, allocations: 147.1 kB / 333.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008481/0.2886, allocations: 0.7037 MB / 334.5 MB, free: 12.3 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2886, allocations: 0 / 334.5 MB, free: 12.3 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.2886, allocations: 0 / 334.5 MB, free: 12.3 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.2886, allocations: 0 / 334.5 MB, free: 12.3 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00193/0.2905, allocations: 0.8982 MB / 335.4 MB, free: 11.57 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.2906, allocations: 8.875 kB / 335.4 MB, free: 11.57 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.2908, allocations: 79.75 kB / 335.5 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.2918, allocations: 0.5942 MB / 336.1 MB, free: 11.03 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.239e-05/0.2918, allocations: 41.94 kB / 336.1 MB, free: 11.02 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.292, allocations: 61.62 kB / 336.2 MB, free: 10.97 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.2932, allocations: 0.6443 MB / 336.8 MB, free: 10.31 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.2932, allocations: 11.92 kB / 336.8 MB, free: 10.3 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.272e-05/0.2933, allocations: 27.98 kB / 336.8 MB, free: 10.27 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.2933, allocations: 12 kB / 336.9 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.2944, allocations: 0.5271 MB / 337.4 MB, free: 9.734 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00307/0.2975, allocations: 1.888 MB / 339.3 MB, free: 7.781 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.2986, allocations: 0.5206 MB / 339.8 MB, free: 7.25 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.425e-05/0.2986, allocations: 16.39 kB / 339.8 MB, free: 7.234 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000791/0.2994, allocations: 397.1 kB / 340.2 MB, free: 6.832 MB / 270.1 MB Notification: Performance of pre-optimization done (n=53): time 2.846e-06/0.2995, allocations: 4 kB / 340.2 MB, free: 6.828 MB / 270.1 MB Notification: Performance of matching and sorting (n=53): time 0.001686/0.3012, allocations: 0.7873 MB / 341 MB, free: 6.039 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.3012, allocations: 115.2 kB / 341.1 MB, free: 5.902 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005172/0.3018, allocations: 449.9 kB / 341.5 MB, free: 5.449 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.833e-05/0.3018, allocations: 45.69 kB / 341.6 MB, free: 5.398 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002187/0.3021, allocations: 316.4 kB / 341.9 MB, free: 5.086 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.3022, allocations: 161.7 kB / 342 MB, free: 4.926 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.3022, allocations: 12 kB / 342.1 MB, free: 4.914 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.3024, allocations: 374.7 kB / 342.4 MB, free: 4.539 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004581/0.3029, allocations: 213.2 kB / 342.6 MB, free: 4.332 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005893/0.3035, allocations: 437 kB / 343.1 MB, free: 3.809 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005312/0.304, allocations: 266.7 kB / 343.3 MB, free: 3.551 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.304, allocations: 3.938 kB / 343.3 MB, free: 3.547 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001297/0.3053, allocations: 0.7075 MB / 344 MB, free: 2.832 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009534/0.3063, allocations: 2.526 MB / 346.6 MB, free: 112 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.3063, allocations: 8 kB / 346.6 MB, free: 104 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.3064, allocations: 8 kB / 346.6 MB, free: 96 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005477/0.3069, allocations: 155.7 kB / 346.7 MB, free: 15.94 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.3069, allocations: 12 kB / 346.7 MB, free: 15.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004665/0.3074, allocations: 95.39 kB / 346.8 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.3075, allocations: 24 kB / 346.9 MB, free: 15.81 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.3075, allocations: 7.953 kB / 346.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009861/0.3085, allocations: 0.5705 MB / 347.4 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3085, allocations: 4 kB / 347.4 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.3085, allocations: 12 kB / 347.4 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004458/0.309, allocations: 140 kB / 347.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.309, allocations: 19.92 kB / 347.6 MB, free: 15.06 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/0.3093, allocations: 71.52 kB / 347.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.473e-05/0.3094, allocations: 27.98 kB / 347.7 MB, free: 14.96 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.rootMeanSquare.mean.y,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid,$PRE.thd1.harmonic.mean1.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean2.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.rootMeanSquare.mean.y,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * 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 0.0004109/0.3098, allocations: 315.1 kB / 348 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.902e-05/0.3099, allocations: 55.25 kB / 348.1 MB, free: 14.59 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.3111, allocations: 0.622 MB / 348.7 MB, free: 13.96 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.3112, allocations: 7.953 kB / 348.7 MB, free: 13.96 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3112, allocations: 0 / 348.7 MB, free: 13.96 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.3112, allocations: 3.984 kB / 348.7 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006932/0.3119, allocations: 0.6302 MB / 349.3 MB, free: 13.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.3119, allocations: 4 kB / 349.3 MB, free: 13.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004224/0.3123, allocations: 103.8 kB / 349.4 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.3123, allocations: 4 kB / 349.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.3124, allocations: 15.98 kB / 349.5 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.3124, allocations: 0 / 349.5 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/0.3124, allocations: 3.953 kB / 349.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.3141, allocations: 0.9371 MB / 350.4 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.3142, allocations: 128.3 kB / 350.5 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.66e-05/0.3143, allocations: 24.05 kB / 350.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003327/0.3146, allocations: 55.95 kB / 350.6 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.3147, allocations: 40.5 kB / 350.6 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.129e-05/0.3148, allocations: 23.94 kB / 350.7 MB, free: 11.9 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003303/0.3151, allocations: 302.9 kB / 351 MB, free: 11.61 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.303e-06/0.3151, allocations: 0 / 351 MB, free: 11.61 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007904/0.3159, allocations: 247 kB / 351.2 MB, free: 11.37 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thd1.harmonic.mean1.x,thd1.harmonic.mean2.x,thd1.rootMeanSquare.mean.x,thdRMS.harmonic.mean1.x,thdRMS.harmonic.mean2.x,thdRMS.rootMeanSquare.mean.x) * Number of discrete variables: 20 ($cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y,thd1.harmonic.mean2.y,thd1.rootMeanSquare.mean.y,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean2.y,thdRMS.rootMeanSquare.mean.y,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid) * Number of discrete states: 6 (thdRMS.rootMeanSquare.mean.x,thdRMS.harmonic.mean2.x,thdRMS.harmonic.mean1.x,thd1.rootMeanSquare.mean.x,thd1.harmonic.mean2.x,thd1.harmonic.mean1.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 0.000172/0.3161, allocations: 129.2 kB / 351.3 MB, free: 11.23 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.3178, allocations: 0.8716 MB / 352.2 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3179, allocations: 0 / 352.2 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005589/0.3184, allocations: 292.2 kB / 352.5 MB, free: 10.08 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.3188, allocations: 65.88 kB / 352.5 MB, free: 10.01 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.321, allocations: 1.356 MB / 353.9 MB, free: 8.629 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004859/0.3215, allocations: 0.9117 MB / 354.8 MB, free: 7.688 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004597/0.322, allocations: 100.6 kB / 354.9 MB, free: 7.586 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.3221, allocations: 51.42 kB / 355 MB, free: 7.535 MB / 286.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3221, allocations: 8 kB / 355 MB, free: 7.527 MB / 286.1 MB Notification: Performance of Templates: time 0.01104/0.3332, allocations: 5.317 MB / 360.3 MB, free: 2.203 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) Environment - environmentSimulation: