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.001154/0.001154, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.01318/0.01318, allocations: 169 kB / 16.26 MB, free: 6.652 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.709/1.709, allocations: 205.4 MB / 222.4 MB, free: 5.793 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.0005429/0.000543, allocations: 12 kB / 279.4 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3386, allocations: 47.59 MB / 327 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.003853/0.3425, allocations: 3.184 MB / 330.2 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003375/0.3459, allocations: 1.216 MB / 331.4 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000724/0.3467, allocations: 13.81 kB / 331.4 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003373/0.347, allocations: 56.64 kB / 331.5 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005077/0.3476, allocations: 104.9 kB / 331.6 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001119/0.3487, allocations: 347.2 kB / 331.9 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001208/0.3499, allocations: 0.7768 MB / 332.7 MB, free: 12.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006291/0.3506, allocations: 360.2 kB / 333.1 MB, free: 12.76 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003379/0.3509, allocations: 223.6 kB / 333.3 MB, free: 12.63 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003581/0.3513, allocations: 269.7 kB / 333.5 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.567e-05/0.3514, allocations: 27.53 kB / 333.6 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.032e-05/0.3514, allocations: 22.25 kB / 333.6 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.3516, allocations: 113.6 kB / 333.7 MB, free: 12.35 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002949/0.3519, allocations: 319.6 kB / 334 MB, free: 12.1 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008543/0.3527, allocations: 0.8625 MB / 334.9 MB, free: 11.43 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3527, allocations: 0 / 334.9 MB, free: 11.43 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3528, allocations: 0 / 334.9 MB, free: 11.43 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.3528, allocations: 0 / 334.9 MB, free: 11.43 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.002193/0.355, allocations: 0.8873 MB / 335.8 MB, free: 10.57 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.355, allocations: 8.031 kB / 335.8 MB, free: 10.56 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001678/0.3552, allocations: 83.98 kB / 335.9 MB, free: 10.48 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.3563, allocations: 0.6043 MB / 336.5 MB, free: 9.832 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.888e-05/0.3563, allocations: 45.69 kB / 336.5 MB, free: 9.789 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.3564, allocations: 60.28 kB / 336.6 MB, free: 9.73 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.3578, allocations: 0.6717 MB / 337.2 MB, free: 9.039 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.256e-05/0.3579, allocations: 0 / 337.2 MB, free: 9.039 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.259e-05/0.3579, allocations: 23.94 kB / 337.3 MB, free: 9.016 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.324e-05/0.358, allocations: 16 kB / 337.3 MB, free: 9 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.3592, allocations: 0.5231 MB / 337.8 MB, free: 8.477 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003232/0.3625, allocations: 1.896 MB / 339.7 MB, free: 6.512 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.3636, allocations: 0.5134 MB / 340.2 MB, free: 5.988 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004975/0.3641, allocations: 234.1 kB / 340.4 MB, free: 5.758 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.8e-05/0.3642, allocations: 16.41 kB / 340.5 MB, free: 5.742 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008191/0.365, allocations: 405.1 kB / 340.8 MB, free: 5.332 MB / 270.1 MB Notification: Performance of pre-optimization done (n=53): time 2.826e-06/0.365, allocations: 0 / 340.8 MB, free: 5.332 MB / 270.1 MB Notification: Performance of matching and sorting (n=53): time 0.001778/0.3668, allocations: 0.7873 MB / 341.6 MB, free: 4.539 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.3669, allocations: 115.2 kB / 341.7 MB, free: 4.398 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005592/0.3675, allocations: 453.9 kB / 342.2 MB, free: 3.941 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.23e-05/0.3676, allocations: 49.69 kB / 342.2 MB, free: 3.887 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000281/0.3679, allocations: 312.4 kB / 342.5 MB, free: 3.574 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.368, allocations: 157.7 kB / 342.7 MB, free: 3.418 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-05/0.3681, allocations: 73.67 kB / 342.8 MB, free: 3.34 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.3684, allocations: 370.7 kB / 343.1 MB, free: 2.969 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005255/0.3689, allocations: 221.2 kB / 343.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006716/0.3696, allocations: 445 kB / 343.8 MB, free: 2.223 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.3708, allocations: 0.6593 MB / 344.4 MB, free: 1.477 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.3708, allocations: 4 kB / 344.4 MB, free: 1.473 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00143/0.3722, allocations: 0.7251 MB / 345.2 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001893/0.3724, allocations: 277.2 kB / 345.4 MB, free: 388 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.3724, allocations: 4 kB / 345.4 MB, free: 384 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.834e-05/0.3725, allocations: 12 kB / 345.5 MB, free: 372 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005627/0.373, allocations: 151.7 kB / 345.6 MB, free: 220 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.982e-05/0.3731, allocations: 11.94 kB / 345.6 MB, free: 208 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004638/0.3735, allocations: 99.42 kB / 345.7 MB, free: 108 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.957e-05/0.3736, allocations: 28 kB / 345.7 MB, free: 80 kB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.286e-06/0.3736, allocations: 4 kB / 345.7 MB, free: 76 kB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001057/0.3747, allocations: 0.589 MB / 346.3 MB, free: 15.49 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3747, allocations: 8 kB / 346.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.766e-06/0.3747, allocations: 8 kB / 346.4 MB, free: 15.47 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004462/0.3752, allocations: 136 kB / 346.5 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.3752, allocations: 15.92 kB / 346.5 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.3756, allocations: 75.56 kB / 346.6 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.316e-05/0.3756, allocations: 28 kB / 346.6 MB, free: 15.22 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.0004693/0.3761, allocations: 315 kB / 346.9 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.261e-05/0.3762, allocations: 55.34 kB / 347 MB, free: 14.85 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001423/0.3776, allocations: 0.6219 MB / 347.6 MB, free: 14.22 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.3776, allocations: 4 kB / 347.6 MB, free: 14.22 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3777, allocations: 4 kB / 347.6 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.3777, allocations: 7.984 kB / 347.6 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007263/0.3784, allocations: 0.638 MB / 348.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3784, allocations: 4 kB / 348.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004295/0.3789, allocations: 87.88 kB / 348.3 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.3789, allocations: 4 kB / 348.3 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-05/0.3789, allocations: 15.98 kB / 348.3 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.3789, allocations: 11.94 kB / 348.4 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3789, allocations: 0 / 348.4 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.3807, allocations: 0.9332 MB / 349.3 MB, free: 12.44 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.3808, allocations: 136.4 kB / 349.4 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.878e-05/0.3809, allocations: 16 kB / 349.4 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/0.3812, allocations: 51.95 kB / 349.5 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.3814, allocations: 48.48 kB / 349.5 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.723e-05/0.3814, allocations: 19.98 kB / 349.6 MB, free: 12.16 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003933/0.3818, allocations: 310.9 kB / 349.9 MB, free: 11.86 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3819, allocations: 4 kB / 349.9 MB, free: 11.85 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008214/0.3827, allocations: 243 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.0002259/0.3829, allocations: 141.2 kB / 350.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.3847, allocations: 0.8724 MB / 351.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3847, allocations: 0 / 351.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005515/0.3853, allocations: 288.2 kB / 351.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.3858, allocations: 81.86 kB / 351.5 MB, free: 10.24 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/0.388, 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.0004629/0.3885, allocations: 0.8961 MB / 353.8 MB, free: 7.852 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004377/0.3889, 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.0001382/0.3891, allocations: 51.42 kB / 354 MB, free: 7.695 MB / 286.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3891, allocations: 0 / 354 MB, free: 7.695 MB / 286.1 MB Notification: Performance of Templates: time 0.01128/0.4004, allocations: 5.479 MB / 359.4 MB, free: 2.211 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (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)