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.001085/0.001085, allocations: 86.92 kB / 16.31 MB, free: 6.457 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.001063/0.001063, allocations: 184 kB / 17.21 MB, free: 6.328 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.715/1.715, allocations: 205.4 MB / 223.4 MB, free: 5.789 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.0004889/0.0004889, allocations: 19.98 kB / 280.1 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3023, allocations: 47.58 MB / 327.7 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.003854/0.3062, allocations: 3.031 MB / 330.8 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002775/0.309, allocations: 1.189 MB / 331.9 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000357/0.3094, allocations: 17 kB / 332 MB, free: 14.06 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002258/0.3097, allocations: 49.92 kB / 332 MB, free: 14.01 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003922/0.3101, allocations: 104 kB / 332.1 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007772/0.3109, allocations: 250 kB / 332.4 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008847/0.3117, allocations: 0.7388 MB / 333.1 MB, free: 13.27 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004846/0.3122, allocations: 271.1 kB / 333.4 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000297/0.3125, allocations: 212.5 kB / 333.6 MB, free: 13 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003435/0.3129, allocations: 258.4 kB / 333.8 MB, free: 12.82 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.042e-05/0.313, allocations: 23.12 kB / 333.8 MB, free: 12.82 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.408e-05/0.3131, allocations: 25.94 kB / 333.9 MB, free: 12.81 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.3132, allocations: 109.9 kB / 334 MB, free: 12.73 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.3134, allocations: 147.3 kB / 334.1 MB, free: 12.62 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007527/0.3141, allocations: 0.7084 MB / 334.8 MB, free: 12.08 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3141, allocations: 4 kB / 334.8 MB, free: 12.07 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3142, allocations: 1.281 kB / 334.8 MB, free: 12.07 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.3142, allocations: 0 / 334.8 MB, free: 12.07 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.001969/0.3161, allocations: 0.8992 MB / 335.7 MB, free: 11.35 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.3162, allocations: 8.75 kB / 335.7 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.3164, allocations: 79.25 kB / 335.8 MB, free: 11.31 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.3174, allocations: 0.5885 MB / 336.4 MB, free: 10.74 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.824e-05/0.3175, allocations: 45.31 kB / 336.5 MB, free: 10.7 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.3176, allocations: 63.98 kB / 336.5 MB, free: 10.64 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.3189, allocations: 0.6482 MB / 337.2 MB, free: 9.973 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.3189, allocations: 3.938 kB / 337.2 MB, free: 9.969 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6e-05/0.319, allocations: 24 kB / 337.2 MB, free: 9.945 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/0.319, allocations: 16 kB / 337.2 MB, free: 9.93 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.3201, allocations: 0.5192 MB / 337.7 MB, free: 9.41 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/0.3231, allocations: 1.9 MB / 339.6 MB, free: 7.445 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009844/0.3241, allocations: 0.5167 MB / 340.1 MB, free: 6.918 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004595/0.3246, allocations: 234.1 kB / 340.4 MB, free: 6.688 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.96e-05/0.3246, allocations: 8.438 kB / 340.4 MB, free: 6.68 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008084/0.3254, allocations: 409.1 kB / 340.8 MB, free: 6.266 MB / 270.1 MB Notification: Performance of pre-optimization done (n=53): time 2.574e-06/0.3255, allocations: 4 kB / 340.8 MB, free: 6.262 MB / 270.1 MB Notification: Performance of matching and sorting (n=53): time 0.001729/0.3272, allocations: 0.7795 MB / 341.6 MB, free: 5.473 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.3273, allocations: 123.2 kB / 341.7 MB, free: 5.328 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006062/0.3279, allocations: 449.9 kB / 342.1 MB, free: 4.875 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.023e-05/0.328, allocations: 45.7 kB / 342.2 MB, free: 4.824 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002776/0.3283, allocations: 308.4 kB / 342.5 MB, free: 4.52 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.3284, allocations: 157.7 kB / 342.6 MB, free: 4.363 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.185e-05/0.3285, allocations: 16 kB / 342.6 MB, free: 4.348 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000264/0.3288, allocations: 370.7 kB / 343 MB, free: 3.977 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004815/0.3292, allocations: 221.2 kB / 343.2 MB, free: 3.762 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006307/0.3299, allocations: 433 kB / 343.6 MB, free: 3.242 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005499/0.3304, allocations: 258.4 kB / 343.9 MB, free: 2.992 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.3305, allocations: 4 kB / 343.9 MB, free: 2.988 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001353/0.3318, allocations: 0.7113 MB / 344.6 MB, free: 2.27 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002621/0.3321, allocations: 279.9 kB / 344.9 MB, free: 1.906 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.3321, allocations: 8 kB / 344.9 MB, free: 1.898 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.509e-05/0.3322, allocations: 8 kB / 344.9 MB, free: 1.891 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005606/0.3327, allocations: 143.8 kB / 345 MB, free: 1.75 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.6e-05/0.3328, allocations: 27.81 kB / 345.1 MB, free: 1.723 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004415/0.3332, allocations: 95.41 kB / 345.2 MB, free: 1.629 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.3333, allocations: 27.98 kB / 345.2 MB, free: 1.602 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.905e-06/0.3333, allocations: 7.938 kB / 345.2 MB, free: 1.594 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001041/0.3343, allocations: 0.5743 MB / 345.8 MB, free: 1.02 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3343, allocations: 4 kB / 345.8 MB, free: 1.016 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.3344, allocations: 12.31 kB / 345.8 MB, free: 1.004 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004328/0.3348, allocations: 135.8 kB / 345.9 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.999e-05/0.3348, allocations: 15.94 kB / 345.9 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003544/0.3352, allocations: 79.5 kB / 346 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/0.3352, allocations: 24 kB / 346 MB, free: 0.7539 MB / 270.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.0004602/0.3357, allocations: 315.1 kB / 346.3 MB, free: 444 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.3358, allocations: 63.19 kB / 346.4 MB, free: 380 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001313/0.3371, allocations: 0.622 MB / 347 MB, free: 15.75 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.3372, allocations: 4 kB / 347 MB, free: 15.74 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.3372, allocations: 4 kB / 347 MB, free: 15.74 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.046e-06/0.3372, allocations: 0 / 347 MB, free: 15.74 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000765/0.338, allocations: 0.6341 MB / 347.7 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.338, allocations: 0 / 347.7 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004194/0.3384, allocations: 103.9 kB / 347.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3384, allocations: 8 kB / 347.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.439e-05/0.3385, allocations: 19.94 kB / 347.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3385, allocations: 3.938 kB / 347.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3385, allocations: 0 / 347.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/0.3402, allocations: 0.9255 MB / 348.7 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.3403, allocations: 128.3 kB / 348.8 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.742e-05/0.3404, allocations: 24.05 kB / 348.9 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003076/0.3407, allocations: 55.92 kB / 348.9 MB, free: 13.75 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.3409, allocations: 44.48 kB / 349 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-05/0.3409, allocations: 19.98 kB / 349 MB, free: 13.69 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003681/0.3413, allocations: 302.9 kB / 349.3 MB, free: 13.4 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3413, allocations: 0 / 349.3 MB, free: 13.4 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007985/0.3421, allocations: 239.1 kB / 349.5 MB, free: 13.16 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.0001971/0.3423, allocations: 140.8 kB / 349.7 MB, free: 13.02 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.344, allocations: 0.8722 MB / 350.5 MB, free: 12.15 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.344, allocations: 1.125 kB / 350.5 MB, free: 12.15 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005276/0.3445, allocations: 291.1 kB / 350.8 MB, free: 11.87 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004836/0.345, allocations: 73.92 kB / 350.9 MB, free: 11.79 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.3471, allocations: 1.364 MB / 352.2 MB, free: 10.4 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.3476, allocations: 0.9 MB / 353.1 MB, free: 9.473 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004247/0.3481, allocations: 112.6 kB / 353.3 MB, free: 9.359 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.3482, allocations: 51.41 kB / 353.3 MB, free: 9.309 MB / 286.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3482, allocations: 0 / 353.3 MB, free: 9.309 MB / 286.1 MB Notification: Performance of Templates: time 0.01078/0.359, allocations: 5.321 MB / 358.6 MB, free: 3.98 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (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)