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.0009547/0.0009548, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.0008309/0.0008311, allocations: 172.7 kB / 15.95 MB, free: 208 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.763/1.763, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0004567/0.0004567, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3585, allocations: 47.58 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004117/0.3627, allocations: 3.035 MB / 329.5 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00251/0.3652, allocations: 1.185 MB / 330.7 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002767/0.3655, allocations: 16.88 kB / 330.7 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000255/0.3658, allocations: 53.83 kB / 330.8 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004374/0.3662, allocations: 100.6 kB / 330.9 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006877/0.3669, allocations: 245.6 kB / 331.1 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009435/0.3679, allocations: 0.743 MB / 331.8 MB, free: 13.25 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005157/0.3684, allocations: 270.8 kB / 332.1 MB, free: 13.1 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003298/0.3687, allocations: 221.4 kB / 332.3 MB, free: 12.97 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003502/0.3691, allocations: 257.8 kB / 332.6 MB, free: 12.79 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.198e-05/0.3692, allocations: 22.66 kB / 332.6 MB, free: 12.79 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.295e-05/0.3693, allocations: 22.62 kB / 332.6 MB, free: 12.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.3694, allocations: 109 kB / 332.7 MB, free: 12.71 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.3696, allocations: 144.1 kB / 332.9 MB, free: 12.6 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008179/0.3704, allocations: 0.7049 MB / 333.6 MB, free: 12.06 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3704, allocations: 0 / 333.6 MB, free: 12.06 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3704, allocations: 0 / 333.6 MB, free: 12.06 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.3704, allocations: 0 / 333.6 MB, free: 12.06 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.001879/0.3723, allocations: 0.9032 MB / 334.5 MB, free: 11.33 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.3724, allocations: 12.78 kB / 334.5 MB, free: 11.33 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.3725, allocations: 81.09 kB / 334.6 MB, free: 11.29 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009874/0.3735, allocations: 0.5883 MB / 335.2 MB, free: 10.7 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.704e-05/0.3736, allocations: 45.31 kB / 335.2 MB, free: 10.65 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-05/0.3737, allocations: 67.98 kB / 335.3 MB, free: 10.59 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.3749, allocations: 0.6443 MB / 335.9 MB, free: 9.926 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.375, allocations: 4 kB / 335.9 MB, free: 9.922 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-05/0.375, allocations: 24 kB / 335.9 MB, free: 9.898 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.3751, allocations: 12 kB / 335.9 MB, free: 9.887 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.3762, allocations: 0.5231 MB / 336.5 MB, free: 9.363 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002962/0.3791, allocations: 1.892 MB / 338.4 MB, free: 7.406 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009855/0.3801, allocations: 0.5167 MB / 338.9 MB, free: 6.879 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004596/0.3806, allocations: 238 kB / 339.1 MB, free: 6.645 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.3807, allocations: 12.36 kB / 339.1 MB, free: 6.633 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007879/0.3815, allocations: 409.1 kB / 339.5 MB, free: 6.219 MB / 270.1 MB Notification: Performance of pre-optimization done (n=53): time 2.595e-06/0.3815, allocations: 3.938 kB / 339.5 MB, free: 6.215 MB / 270.1 MB Notification: Performance of matching and sorting (n=53): time 0.001693/0.3832, allocations: 0.7834 MB / 340.3 MB, free: 5.422 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.3833, allocations: 115.2 kB / 340.4 MB, free: 5.285 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005484/0.3838, allocations: 449.9 kB / 340.9 MB, free: 4.832 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.835e-05/0.3839, allocations: 45.7 kB / 340.9 MB, free: 4.781 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.3842, allocations: 316.4 kB / 341.2 MB, free: 4.469 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.3843, allocations: 157.7 kB / 341.4 MB, free: 4.312 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.3844, allocations: 12 kB / 341.4 MB, free: 4.301 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.3846, allocations: 374.7 kB / 341.7 MB, free: 3.926 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004771/0.385, allocations: 217.2 kB / 342 MB, free: 3.715 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000703/0.3857, allocations: 437 kB / 342.4 MB, free: 3.191 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004936/0.3863, allocations: 258.7 kB / 342.6 MB, free: 2.941 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.3863, allocations: 0 / 342.6 MB, free: 2.941 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001283/0.3876, allocations: 0.7114 MB / 343.3 MB, free: 2.223 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001892/0.3878, allocations: 283.3 kB / 343.6 MB, free: 1.855 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.3878, allocations: 4 kB / 343.6 MB, free: 1.852 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.3878, allocations: 12 kB / 343.6 MB, free: 1.84 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005034/0.3883, allocations: 147.8 kB / 343.8 MB, free: 1.695 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.912e-05/0.3883, allocations: 15.89 kB / 343.8 MB, free: 1.68 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004813/0.3888, allocations: 95.41 kB / 343.9 MB, free: 1.586 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/0.3889, allocations: 31.98 kB / 343.9 MB, free: 1.555 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.372e-06/0.3889, allocations: 4 kB / 343.9 MB, free: 1.551 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009815/0.3899, allocations: 0.5666 MB / 344.5 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3899, allocations: 8 kB / 344.5 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.3899, allocations: 15.94 kB / 344.5 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00043/0.3904, allocations: 132 kB / 344.6 MB, free: 0.832 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.3904, allocations: 15.94 kB / 344.7 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003133/0.3907, allocations: 79.48 kB / 344.7 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.3907, allocations: 31.98 kB / 344.8 MB, free: 0.707 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.0003666/0.3911, allocations: 303.2 kB / 345.1 MB, free: 408 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.997e-05/0.3912, allocations: 67.19 kB / 345.1 MB, free: 340 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.3925, allocations: 0.6219 MB / 345.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.3926, allocations: 8 kB / 345.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3926, allocations: 0 / 345.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3926, allocations: 3.984 kB / 345.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007424/0.3933, allocations: 0.6302 MB / 346.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3934, allocations: 7.938 kB / 346.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004182/0.3938, allocations: 99.86 kB / 346.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3938, allocations: 0 / 346.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.174e-05/0.3938, allocations: 19.94 kB / 346.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.3938, allocations: 7.938 kB / 346.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3939, allocations: 3.984 kB / 346.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.3956, allocations: 0.9371 MB / 347.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.3958, allocations: 128.3 kB / 347.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.673e-05/0.3958, allocations: 20.05 kB / 347.6 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003098/0.3962, allocations: 55.92 kB / 347.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.3963, allocations: 44.48 kB / 347.7 MB, free: 13.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.3963, allocations: 19.98 kB / 347.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003727/0.3967, allocations: 306.9 kB / 348 MB, free: 13.34 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3967, allocations: 0 / 348 MB, free: 13.34 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007764/0.3975, allocations: 239.1 kB / 348.3 MB, free: 13.11 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.0001993/0.3977, allocations: 136.8 kB / 348.4 MB, free: 12.97 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001655/0.3994, allocations: 0.8684 MB / 349.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3994, allocations: 0 / 349.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005327/0.3999, allocations: 296.2 kB / 349.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.4004, allocations: 73.94 kB / 349.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.4027, allocations: 1.356 MB / 351 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004837/0.4032, allocations: 0.8961 MB / 351.9 MB, free: 9.434 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004375/0.4036, allocations: 108.6 kB / 352 MB, free: 9.324 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.4037, allocations: 55.36 kB / 352 MB, free: 9.27 MB / 286.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4038, allocations: 4 kB / 352 MB, free: 9.266 MB / 286.1 MB Notification: Performance of Templates: time 0.01108/0.4148, allocations: 5.332 MB / 357.4 MB, free: 3.926 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)