Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001458/0.001458, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001715/0.001715, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.679/1.679, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004863/0.0004864, allocations: 12 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2778, allocations: 47.58 MB / 326.4 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004658/0.2825, allocations: 2.97 MB / 329.4 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003623/0.2862, allocations: 1.186 MB / 330.6 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006386/0.2869, allocations: 12.12 kB / 330.6 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003355/0.2872, allocations: 61.53 kB / 330.7 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006121/0.2878, allocations: 117.6 kB / 330.8 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.289, allocations: 249.2 kB / 331 MB, free: 13.8 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009563/0.2899, allocations: 485.3 kB / 331.5 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006693/0.2906, allocations: 275.3 kB / 331.8 MB, free: 13.31 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003873/0.291, allocations: 216.6 kB / 332 MB, free: 13.18 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003528/0.2914, allocations: 250 kB / 332.2 MB, free: 13.01 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.463e-05/0.2915, allocations: 22.88 kB / 332.2 MB, free: 13.01 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.698e-05/0.2916, allocations: 22.84 kB / 332.3 MB, free: 13.01 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.2917, allocations: 113 kB / 332.4 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.2919, allocations: 147.4 kB / 332.5 MB, free: 12.82 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007572/0.2926, allocations: 0.708 MB / 333.2 MB, free: 12.27 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2926, allocations: 0 / 333.2 MB, free: 12.27 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.2927, allocations: 0 / 333.2 MB, free: 12.27 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.2927, allocations: 0 / 333.2 MB, free: 12.27 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.002046/0.2947, allocations: 0.8982 MB / 334.1 MB, free: 11.55 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.2948, allocations: 8.75 kB / 334.1 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002097/0.295, allocations: 80.12 kB / 334.2 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009646/0.296, allocations: 0.5903 MB / 334.8 MB, free: 11.01 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.501e-05/0.296, allocations: 41.69 kB / 334.8 MB, free: 10.99 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.714e-05/0.2961, allocations: 67.08 kB / 334.9 MB, free: 10.93 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.2973, allocations: 0.6443 MB / 335.6 MB, free: 10.27 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.2973, allocations: 0 / 335.6 MB, free: 10.27 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.688e-05/0.2974, allocations: 31.98 kB / 335.6 MB, free: 10.24 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.2974, allocations: 12 kB / 335.6 MB, free: 10.23 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.2985, allocations: 0.527 MB / 336.1 MB, free: 9.699 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002899/0.3014, allocations: 1.888 MB / 338 MB, free: 7.746 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.3025, allocations: 0.5245 MB / 338.5 MB, free: 7.211 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.967e-05/0.3025, allocations: 12.42 kB / 338.6 MB, free: 7.199 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007258/0.3033, allocations: 405.1 kB / 338.9 MB, free: 6.789 MB / 270.1 MB Notification: Performance of pre-optimization done (n=53): time 1.903e-06/0.3033, allocations: 0 / 338.9 MB, free: 6.789 MB / 270.1 MB Notification: Performance of matching and sorting (n=53): time 0.00171/0.305, allocations: 0.7834 MB / 339.7 MB, free: 6.004 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.964e-05/0.3051, allocations: 115.2 kB / 339.8 MB, free: 5.867 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005282/0.3056, allocations: 449.9 kB / 340.3 MB, free: 5.414 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.739e-05/0.3057, allocations: 41.7 kB / 340.3 MB, free: 5.367 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.3059, allocations: 316.4 kB / 340.6 MB, free: 5.055 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.3061, allocations: 165.6 kB / 340.8 MB, free: 4.891 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-05/0.3061, allocations: 12 kB / 340.8 MB, free: 4.879 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3063, allocations: 370.7 kB / 341.2 MB, free: 4.508 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004851/0.3068, allocations: 217.2 kB / 341.4 MB, free: 4.297 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006316/0.3074, allocations: 437 kB / 341.8 MB, free: 3.773 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005544/0.308, allocations: 262.3 kB / 342.1 MB, free: 3.52 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.308, allocations: 4 kB / 342.1 MB, free: 3.516 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001337/0.3094, allocations: 0.7036 MB / 342.8 MB, free: 2.805 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001272/0.3106, allocations: 2.531 MB / 345.3 MB, free: 80 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.3107, allocations: 11.94 kB / 345.3 MB, free: 68 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/0.3107, allocations: 12 kB / 345.3 MB, free: 56 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/0.3113, allocations: 143.8 kB / 345.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.621e-05/0.3113, allocations: 15.92 kB / 345.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005105/0.3119, allocations: 95.41 kB / 345.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.698e-05/0.3119, allocations: 31.98 kB / 345.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.3119, allocations: 7.953 kB / 345.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00099/0.3129, allocations: 0.5666 MB / 346.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.313, allocations: 8 kB / 346.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.313, allocations: 12 kB / 346.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004717/0.3135, allocations: 140 kB / 346.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.3135, allocations: 15.94 kB / 346.4 MB, free: 15.03 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003512/0.3138, allocations: 71.5 kB / 346.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.755e-05/0.3139, allocations: 28 kB / 346.4 MB, free: 14.93 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.0004069/0.3143, allocations: 315.1 kB / 346.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.508e-05/0.3144, allocations: 63.23 kB / 346.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.3158, allocations: 0.6181 MB / 347.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/0.3158, allocations: 11.95 kB / 347.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.3158, allocations: 0 / 347.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3158, allocations: 0 / 347.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007771/0.3166, allocations: 0.6302 MB / 348.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3166, allocations: 4 kB / 348.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004324/0.3171, allocations: 95.88 kB / 348.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.3171, allocations: 3.984 kB / 348.2 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.898e-05/0.3171, allocations: 15.94 kB / 348.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.045e-06/0.3171, allocations: 11.98 kB / 348.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.3172, allocations: 3.953 kB / 348.2 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/0.319, allocations: 0.9293 MB / 349.1 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.3192, allocations: 132.3 kB / 349.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.994e-05/0.3193, allocations: 16.06 kB / 349.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003349/0.3196, allocations: 55.95 kB / 349.3 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.3197, allocations: 44.5 kB / 349.4 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-05/0.3198, allocations: 23.94 kB / 349.4 MB, free: 11.87 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003413/0.3201, allocations: 302.9 kB / 349.7 MB, free: 11.57 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3202, allocations: 4 kB / 349.7 MB, free: 11.57 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007731/0.3209, allocations: 235.1 kB / 349.9 MB, free: 11.34 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.0001854/0.3211, allocations: 141.1 kB / 350.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.3229, allocations: 0.8716 MB / 350.9 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.3229, allocations: 0 / 350.9 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005457/0.3235, allocations: 300.2 kB / 351.2 MB, free: 10.03 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.3239, allocations: 65.88 kB / 351.3 MB, free: 9.965 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00217/0.3261, allocations: 1.344 MB / 352.6 MB, free: 8.594 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.3266, allocations: 0.9117 MB / 353.6 MB, free: 7.652 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004176/0.3271, allocations: 112.6 kB / 353.7 MB, free: 7.539 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.3272, allocations: 51.42 kB / 353.7 MB, free: 7.488 MB / 286.1 MB Notification: Performance of SimCode: time 1.273e-06/0.3272, allocations: 4 kB / 353.7 MB, free: 7.484 MB / 286.1 MB Notification: Performance of Templates: time 0.009939/0.3372, allocations: 5.309 MB / 359 MB, free: 2.168 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) Environment - environmentSimulation: