Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.001477/0.001477, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001836/0.001836, allocations: 190.8 kB / 16.25 MB, free: 6.625 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.691/1.691, allocations: 205.1 MB / 222.1 MB, free: 4.684 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.001431/0.001431, allocations: 43.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3115, allocations: 46.63 MB / 324.8 MB, free: 1.969 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.005732/0.3173, allocations: 3.6 MB / 328.4 MB, free: 15.13 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003167/0.3205, allocations: 1.224 MB / 329.7 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005146/0.321, allocations: 12.94 kB / 329.7 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003474/0.3215, allocations: 57.42 kB / 329.7 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000542/0.322, allocations: 109 kB / 329.8 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.3231, allocations: 355.1 kB / 330.2 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.3243, allocations: 0.8444 MB / 331 MB, free: 13.17 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007412/0.3251, allocations: 374.1 kB / 331.4 MB, free: 12.95 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005153/0.3256, allocations: 324 kB / 331.7 MB, free: 12.74 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004723/0.3261, allocations: 351.6 kB / 332.1 MB, free: 12.47 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001945/0.3263, allocations: 93.88 kB / 332.1 MB, free: 12.47 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.3265, allocations: 97.81 kB / 332.2 MB, free: 12.47 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.3267, allocations: 201.8 kB / 332.4 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000406/0.3271, allocations: 382.8 kB / 332.8 MB, free: 12 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.3282, allocations: 0.9518 MB / 333.8 MB, free: 11.17 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3282, allocations: 0 / 333.8 MB, free: 11.17 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.115e-06/0.3282, allocations: 0 / 333.8 MB, free: 11.17 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.3282, allocations: 0 / 333.8 MB, free: 11.17 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.002236/0.3304, allocations: 1.013 MB / 334.8 MB, free: 10.11 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.3305, allocations: 8.031 kB / 334.8 MB, free: 10.1 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.3307, allocations: 80 kB / 334.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009519/0.3316, allocations: 0.5887 MB / 335.4 MB, free: 9.391 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.773e-05/0.3317, allocations: 45.69 kB / 335.5 MB, free: 9.348 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.3318, allocations: 60.38 kB / 335.6 MB, free: 9.289 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.333, allocations: 0.6443 MB / 336.2 MB, free: 8.625 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.094e-05/0.333, allocations: 11.92 kB / 336.2 MB, free: 8.613 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.01e-05/0.3331, allocations: 24 kB / 336.2 MB, free: 8.59 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.3331, allocations: 12 kB / 336.2 MB, free: 8.578 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.3342, allocations: 499.6 kB / 336.7 MB, free: 8.09 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002909/0.3371, allocations: 1.865 MB / 338.6 MB, free: 6.156 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009392/0.3381, allocations: 489.8 kB / 339.1 MB, free: 5.668 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004379/0.3385, allocations: 218 kB / 339.3 MB, free: 5.453 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.015e-05/0.3386, allocations: 8.422 kB / 339.3 MB, free: 5.445 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007431/0.3393, allocations: 385.1 kB / 339.7 MB, free: 5.055 MB / 270.1 MB Notification: Performance of pre-optimization done (n=53): time 2.925e-06/0.3394, allocations: 0 / 339.7 MB, free: 5.055 MB / 270.1 MB Notification: Performance of matching and sorting (n=53): time 0.001629/0.341, allocations: 0.721 MB / 340.4 MB, free: 4.328 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/0.3411, allocations: 123.2 kB / 340.5 MB, free: 4.18 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005383/0.3416, allocations: 457.8 kB / 341 MB, free: 3.719 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.712e-05/0.3417, allocations: 41.7 kB / 341 MB, free: 3.672 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003158/0.342, allocations: 320.4 kB / 341.3 MB, free: 3.352 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.3422, allocations: 153.8 kB / 341.5 MB, free: 3.199 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.3424, allocations: 126.2 kB / 341.6 MB, free: 3.07 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.3427, allocations: 374.7 kB / 342 MB, free: 2.695 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004692/0.3431, allocations: 207.4 kB / 342.2 MB, free: 2.492 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006182/0.3438, allocations: 417 kB / 342.6 MB, free: 1.988 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.3448, allocations: 0.6165 MB / 343.2 MB, free: 1.285 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3448, allocations: 0 / 343.2 MB, free: 1.285 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00124/0.346, allocations: 0.6747 MB / 343.9 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.3461, allocations: 11.94 kB / 343.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.3461, allocations: 11.94 kB / 343.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.3461, allocations: 8 kB / 343.9 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005314/0.3467, allocations: 135.8 kB / 344 MB, free: 452 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.3467, allocations: 11.94 kB / 344 MB, free: 440 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004252/0.3471, allocations: 91.58 kB / 344.1 MB, free: 348 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.3472, allocations: 31.94 kB / 344.1 MB, free: 316 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000616/0.3478, allocations: 333.3 kB / 344.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007073/0.3485, allocations: 401 kB / 344.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001221/0.3498, allocations: 0.5709 MB / 345.4 MB, free: 14.84 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.36e-06/0.3498, allocations: 4 kB / 345.4 MB, free: 14.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001567/0.3513, allocations: 0.629 MB / 346.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.3514, allocations: 9.406 kB / 346.1 MB, free: 14.19 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.3514, allocations: 8 kB / 346.1 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3514, allocations: 12 kB / 346.1 MB, free: 14.17 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006302/0.3521, allocations: 127.8 kB / 346.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/0.3521, allocations: 15.94 kB / 346.2 MB, free: 14.03 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005268/0.3526, allocations: 59.56 kB / 346.3 MB, free: 13.97 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.479e-05/0.3527, allocations: 31.94 kB / 346.3 MB, free: 13.94 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,thdRMS.pythagoras.valid,thdRMS.valid,thdRMS.greaterThreshold.y,thdRMS.rootMeanSquare.mean.y,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean1.y,thd1.pythagoras.valid,thd1.valid,thd1.greaterThreshold.y,thd1.rootMeanSquare.mean.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.harmonic.mean2.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean1.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003654/0.3531, allocations: 246.2 kB / 346.6 MB, free: 13.69 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.3532, allocations: 55.34 kB / 346.6 MB, free: 13.63 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.3549, allocations: 0.579 MB / 347.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.3549, allocations: 8 kB / 347.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3549, allocations: 0 / 347.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.3549, allocations: 7.969 kB / 347.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009853/0.3559, allocations: 0.6302 MB / 347.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.356, allocations: 4 kB / 347.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005602/0.3565, allocations: 91.8 kB / 347.9 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.3565, allocations: 4 kB / 347.9 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.544e-05/0.3566, allocations: 19.98 kB / 348 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.3566, allocations: 0 / 348 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3566, allocations: 0 / 348 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/0.3588, allocations: 0.8746 MB / 348.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001492/0.359, allocations: 132.4 kB / 349 MB, free: 11.19 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.3591, allocations: 16 kB / 349 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004262/0.3596, allocations: 43.95 kB / 349 MB, free: 11.13 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.3597, allocations: 40.45 kB / 349.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.297e-05/0.3598, allocations: 23.97 kB / 349.1 MB, free: 11.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004585/0.3603, allocations: 314.8 kB / 349.4 MB, free: 10.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3603, allocations: 3.938 kB / 349.4 MB, free: 10.76 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.001083/0.3614, allocations: 239.1 kB / 349.6 MB, free: 10.53 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002446/0.3616, allocations: 132.9 kB / 349.8 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002718/0.3643, allocations: 0.8619 MB / 350.6 MB, free: 9.535 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.3644, allocations: 3.906 kB / 350.6 MB, free: 9.531 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007206/0.3651, allocations: 271.2 kB / 350.9 MB, free: 9.266 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006796/0.3658, allocations: 93.95 kB / 351 MB, free: 9.172 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.369, allocations: 1.386 MB / 352.4 MB, free: 7.758 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006257/0.3696, allocations: 0.8919 MB / 353.3 MB, free: 6.836 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0006572/0.3703, allocations: 108.6 kB / 353.4 MB, free: 6.73 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.3705, allocations: 55.41 kB / 353.4 MB, free: 6.68 MB / 286.1 MB Notification: Performance of SimCode: time 1.031e-06/0.3705, allocations: 3.938 kB / 353.4 MB, free: 6.676 MB / 286.1 MB Notification: Performance of Templates: time 0.01521/0.3857, allocations: 5.777 MB / 359.2 MB, free: 0.8906 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)