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.001107/0.001108, allocations: 100 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.001107/0.001107, 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.57/1.57, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.000487/0.000487, allocations: 12 kB / 278.9 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3183, allocations: 47.59 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.006245/0.3246, allocations: 2.967 MB / 329.4 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003946/0.3286, allocations: 1.185 MB / 330.6 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005307/0.3292, allocations: 13.09 kB / 330.6 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.3295, allocations: 57.45 kB / 330.7 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005707/0.3301, allocations: 125 kB / 330.8 MB, free: 14 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.3312, allocations: 248.9 kB / 331 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.3324, allocations: 486 kB / 331.5 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008242/0.3332, allocations: 267.5 kB / 331.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005906/0.3338, allocations: 220.8 kB / 332 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000724/0.3346, allocations: 254 kB / 332.2 MB, free: 13.02 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.3347, allocations: 22.5 kB / 332.2 MB, free: 13.02 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.3348, allocations: 22.16 kB / 332.3 MB, free: 13.02 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.3351, allocations: 110 kB / 332.4 MB, free: 12.94 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003073/0.3354, allocations: 151.8 kB / 332.5 MB, free: 12.82 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.3367, allocations: 0.7029 MB / 333.2 MB, free: 12.29 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3367, allocations: 0 / 333.2 MB, free: 12.29 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3367, allocations: 0 / 333.2 MB, free: 12.29 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.3367, allocations: 0 / 333.2 MB, free: 12.29 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.003179/0.3399, allocations: 0.8986 MB / 334.1 MB, free: 11.56 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.986e-05/0.34, allocations: 8.625 kB / 334.1 MB, free: 11.56 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002891/0.3403, allocations: 79.69 kB / 334.2 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001878/0.3422, allocations: 0.5906 MB / 334.8 MB, free: 11.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.3424, allocations: 48.08 kB / 334.9 MB, free: 11 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001709/0.3425, allocations: 60 kB / 334.9 MB, free: 10.94 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002257/0.3448, allocations: 0.6443 MB / 335.6 MB, free: 10.28 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.705e-05/0.3449, allocations: 0 / 335.6 MB, free: 10.28 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.345, allocations: 31.98 kB / 335.6 MB, free: 10.25 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.347e-05/0.345, allocations: 12 kB / 335.6 MB, free: 10.23 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.3469, allocations: 0.527 MB / 336.1 MB, free: 9.707 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005102/0.352, allocations: 1.892 MB / 338 MB, free: 7.75 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001943/0.354, allocations: 0.5245 MB / 338.5 MB, free: 7.215 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.427e-05/0.3541, allocations: 8.422 kB / 338.5 MB, free: 7.207 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001148/0.3552, allocations: 405.1 kB / 338.9 MB, free: 6.797 MB / 270.1 MB Notification: Performance of pre-optimization done (n=53): time 3.116e-06/0.3553, allocations: 0 / 338.9 MB, free: 6.797 MB / 270.1 MB Notification: Performance of matching and sorting (n=53): time 0.002682/0.358, allocations: 0.7834 MB / 339.7 MB, free: 6.012 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.3581, allocations: 115.2 kB / 339.8 MB, free: 5.875 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007271/0.3588, allocations: 449.9 kB / 340.3 MB, free: 5.422 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.766e-05/0.3589, allocations: 45.7 kB / 340.3 MB, free: 5.371 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003894/0.3593, allocations: 312.4 kB / 340.6 MB, free: 5.062 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.3595, allocations: 169.6 kB / 340.8 MB, free: 4.895 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.146e-05/0.3596, allocations: 12 kB / 340.8 MB, free: 4.883 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002225/0.3598, allocations: 366.7 kB / 341.2 MB, free: 4.516 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006586/0.3605, allocations: 221.2 kB / 341.4 MB, free: 4.301 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009213/0.3614, allocations: 437 kB / 341.8 MB, free: 3.777 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007973/0.3622, allocations: 262.7 kB / 342.1 MB, free: 3.523 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.3623, allocations: 0 / 342.1 MB, free: 3.523 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002002/0.3643, allocations: 0.7113 MB / 342.8 MB, free: 2.805 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001548/0.3658, allocations: 2.53 MB / 345.3 MB, free: 80 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.3659, allocations: 4 kB / 345.3 MB, free: 76 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.76e-05/0.3659, allocations: 12 kB / 345.3 MB, free: 64 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008368/0.3668, allocations: 147.8 kB / 345.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.148e-05/0.3668, allocations: 15.92 kB / 345.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007613/0.3676, allocations: 91.41 kB / 345.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.952e-05/0.3677, allocations: 31.98 kB / 345.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.3677, allocations: 7.953 kB / 345.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001832/0.3695, allocations: 0.5666 MB / 346.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.3696, allocations: 8 kB / 346.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.3696, allocations: 12 kB / 346.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007281/0.3703, allocations: 140 kB / 346.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.203e-05/0.3704, allocations: 15.94 kB / 346.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006172/0.371, allocations: 71.5 kB / 346.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-05/0.3711, allocations: 28 kB / 346.4 MB, free: 14.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,$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.0006965/0.3718, allocations: 315.1 kB / 346.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.372, allocations: 63.23 kB / 346.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/0.3738, allocations: 0.6181 MB / 347.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.3739, allocations: 11.95 kB / 347.4 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.3739, allocations: 0 / 347.4 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.3739, allocations: 0 / 347.4 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.3749, allocations: 0.6302 MB / 348.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.375, allocations: 4 kB / 348.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006384/0.3756, allocations: 99.86 kB / 348.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.3756, allocations: 0 / 348.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.178e-05/0.3757, allocations: 23.98 kB / 348.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.3757, allocations: 3.938 kB / 348.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.3757, allocations: 3.953 kB / 348.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002691/0.3784, allocations: 0.9332 MB / 349.1 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.3786, allocations: 128.3 kB / 349.3 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.3788, allocations: 20.05 kB / 349.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005068/0.3793, allocations: 51.97 kB / 349.3 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.3795, allocations: 44.5 kB / 349.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.148e-05/0.3796, allocations: 27.92 kB / 349.4 MB, free: 11.87 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005284/0.3801, allocations: 302.9 kB / 349.7 MB, free: 11.58 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3801, allocations: 0 / 349.7 MB, free: 11.58 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.001559/0.3817, allocations: 235.1 kB / 349.9 MB, free: 11.35 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.0003515/0.382, allocations: 141.1 kB / 350.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.003208/0.3853, allocations: 0.8716 MB / 350.9 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/0.3853, allocations: 4 kB / 350.9 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008965/0.3862, allocations: 292.2 kB / 351.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006795/0.3869, allocations: 65.88 kB / 351.3 MB, free: 9.977 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.3908, allocations: 1.352 MB / 352.6 MB, free: 8.598 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/0.3919, allocations: 0.9078 MB / 353.6 MB, free: 7.66 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0007389/0.3927, allocations: 104.6 kB / 353.7 MB, free: 7.555 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.3929, allocations: 55.41 kB / 353.7 MB, free: 7.5 MB / 286.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3929, allocations: 4 kB / 353.7 MB, free: 7.496 MB / 286.1 MB Notification: Performance of Templates: time 0.01824/0.4112, allocations: 5.316 MB / 359 MB, free: 2.172 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: