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.0008296/0.0008298, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.006356/0.006357, allocations: 173.9 kB / 16.27 MB, free: 6.676 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.551/1.551, allocations: 205.4 MB / 222.5 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.0004728/0.0004728, allocations: 22.59 kB / 279.4 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3106, allocations: 47.58 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004016/0.3147, allocations: 3.192 MB / 330.2 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002763/0.3175, allocations: 1.209 MB / 331.4 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000415/0.3179, allocations: 16.09 kB / 331.4 MB, free: 13.87 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002292/0.3181, allocations: 53.45 kB / 331.5 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004204/0.3186, allocations: 113.7 kB / 331.6 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008643/0.3194, allocations: 350.7 kB / 331.9 MB, free: 13.43 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009009/0.3204, allocations: 0.7727 MB / 332.7 MB, free: 12.97 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005951/0.321, allocations: 355.6 kB / 333.1 MB, free: 12.75 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003813/0.3214, allocations: 229 kB / 333.3 MB, free: 12.62 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003562/0.3217, allocations: 265.4 kB / 333.5 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.361e-05/0.3218, allocations: 23.06 kB / 333.6 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.835e-05/0.3219, allocations: 21.78 kB / 333.6 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.322, allocations: 122.2 kB / 333.7 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003123/0.3223, allocations: 312.1 kB / 334 MB, free: 12.09 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008638/0.3232, allocations: 0.8689 MB / 334.9 MB, free: 11.42 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3232, allocations: 1.312 kB / 334.9 MB, free: 11.42 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3232, allocations: 0 / 334.9 MB, free: 11.42 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.3233, allocations: 0 / 334.9 MB, free: 11.42 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.001953/0.3252, allocations: 0.8867 MB / 335.8 MB, free: 10.55 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.3253, allocations: 8.031 kB / 335.8 MB, free: 10.55 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.3254, allocations: 84 kB / 335.9 MB, free: 10.46 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009618/0.3264, allocations: 0.6004 MB / 336.5 MB, free: 9.824 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.508e-05/0.3265, allocations: 41.69 kB / 336.5 MB, free: 9.785 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.3266, allocations: 68.27 kB / 336.6 MB, free: 9.719 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.328, allocations: 0.6639 MB / 337.2 MB, free: 9.035 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-05/0.328, allocations: 0 / 337.2 MB, free: 9.035 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.066e-05/0.3281, allocations: 31.86 kB / 337.3 MB, free: 9.004 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.3281, allocations: 16 kB / 337.3 MB, free: 8.988 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.3293, allocations: 0.5231 MB / 337.8 MB, free: 8.465 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003301/0.3326, allocations: 1.888 MB / 339.7 MB, free: 6.508 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.3337, allocations: 0.5251 MB / 340.2 MB, free: 5.973 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004849/0.3342, allocations: 234.1 kB / 340.4 MB, free: 5.742 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.954e-05/0.3342, allocations: 8.438 kB / 340.5 MB, free: 5.734 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008127/0.3351, allocations: 413.1 kB / 340.9 MB, free: 5.316 MB / 270.1 MB Notification: Performance of pre-optimization done (n=53): time 3.166e-06/0.3351, allocations: 0 / 340.9 MB, free: 5.316 MB / 270.1 MB Notification: Performance of matching and sorting (n=53): time 0.001788/0.3369, allocations: 0.7873 MB / 341.6 MB, free: 4.523 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.516e-05/0.337, allocations: 115.2 kB / 341.8 MB, free: 4.383 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000505/0.3375, allocations: 453.9 kB / 342.2 MB, free: 3.926 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.319e-05/0.3375, allocations: 45.7 kB / 342.2 MB, free: 3.875 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002192/0.3378, allocations: 312.4 kB / 342.6 MB, free: 3.562 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.3379, allocations: 165.7 kB / 342.7 MB, free: 3.398 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.056e-05/0.338, allocations: 65.69 kB / 342.8 MB, free: 3.328 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.3382, allocations: 370.7 kB / 343.1 MB, free: 2.957 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004772/0.3387, allocations: 221.2 kB / 343.4 MB, free: 2.742 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006515/0.3394, allocations: 441 kB / 343.8 MB, free: 2.215 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.3405, allocations: 0.6592 MB / 344.4 MB, free: 1.469 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3405, allocations: 4 kB / 344.4 MB, free: 1.465 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001321/0.3419, allocations: 0.7213 MB / 345.2 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001819/0.3421, allocations: 281.2 kB / 345.4 MB, free: 380 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.3421, allocations: 4 kB / 345.4 MB, free: 376 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.3421, allocations: 12 kB / 345.5 MB, free: 364 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005365/0.3427, allocations: 151.7 kB / 345.6 MB, free: 212 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/0.3427, allocations: 11.94 kB / 345.6 MB, free: 200 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004346/0.3431, allocations: 95.44 kB / 345.7 MB, free: 104 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-05/0.3432, allocations: 31.98 kB / 345.7 MB, free: 72 kB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.347e-06/0.3432, allocations: 4 kB / 345.7 MB, free: 68 kB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001087/0.3443, allocations: 0.5813 MB / 346.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.3443, allocations: 8 kB / 346.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.3443, allocations: 8.281 kB / 346.3 MB, free: 15.47 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004854/0.3448, allocations: 143.7 kB / 346.5 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/0.3449, allocations: 11.94 kB / 346.5 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003804/0.3453, allocations: 75.56 kB / 346.6 MB, free: 15.24 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.3453, allocations: 35.98 kB / 346.6 MB, free: 15.21 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.0005689/0.3459, allocations: 311.1 kB / 346.9 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.285e-05/0.346, allocations: 55.34 kB / 347 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.3474, allocations: 0.6258 MB / 347.6 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.3474, allocations: 4 kB / 347.6 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.3474, allocations: 8 kB / 347.6 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.3474, allocations: 3.984 kB / 347.6 MB, free: 14.19 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007204/0.3482, allocations: 0.6263 MB / 348.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3482, allocations: 0 / 348.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004145/0.3486, allocations: 95.86 kB / 348.3 MB, free: 13.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.3486, allocations: 8 kB / 348.3 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.085e-05/0.3487, allocations: 15.98 kB / 348.3 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.3487, allocations: 4 kB / 348.4 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3487, allocations: 0 / 348.4 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/0.3504, allocations: 0.941 MB / 349.3 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.3505, allocations: 132.4 kB / 349.4 MB, free: 12.28 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.824e-05/0.3506, allocations: 15.98 kB / 349.4 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003339/0.351, allocations: 51.97 kB / 349.5 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.3511, allocations: 48.48 kB / 349.5 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.734e-05/0.3511, allocations: 19.98 kB / 349.6 MB, free: 12.15 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003747/0.3515, allocations: 310.9 kB / 349.9 MB, free: 11.85 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3515, allocations: 0 / 349.9 MB, free: 11.85 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007795/0.3523, allocations: 239.1 kB / 350.1 MB, free: 11.61 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.0001841/0.3525, allocations: 141.1 kB / 350.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.3542, allocations: 0.8725 MB / 351.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3542, allocations: 1.125 kB / 351.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005508/0.3548, allocations: 295 kB / 351.4 MB, free: 10.31 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005247/0.3553, allocations: 77.92 kB / 351.5 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.3575, allocations: 1.43 MB / 352.9 MB, free: 8.777 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.358, allocations: 0.896 MB / 353.8 MB, free: 7.852 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004233/0.3584, allocations: 112.6 kB / 353.9 MB, free: 7.742 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.3586, allocations: 55.41 kB / 354 MB, free: 7.691 MB / 286.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3586, allocations: 0 / 354 MB, free: 7.691 MB / 286.1 MB Notification: Performance of Templates: time 0.0112/0.3698, allocations: 5.479 MB / 359.4 MB, free: 2.207 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)