Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001039/0.001038, allocations: 109.5 kB / 17.75 MB, free: 5.352 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.000992/0.000992, allocations: 188.2 kB / 18.68 MB, free: 4.426 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.283/1.283, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.364e-05/2.364e-05, allocations: 3.125 kB / 328.5 MB, free: 3.359 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004405/0.004437, allocations: 3.57 MB / 332.1 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.006466, allocations: 1.263 MB / 333.3 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000224/0.006702, allocations: 11.94 kB / 333.3 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.006937, allocations: 86.98 kB / 333.4 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003475/0.007319, allocations: 130.8 kB / 333.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006759/0.008004, allocations: 403.4 kB / 333.9 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008197/0.008832, allocations: 0.9469 MB / 334.9 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005097/0.009349, allocations: 398.4 kB / 335.3 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003237/0.00968, allocations: 330.7 kB / 335.6 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003063/0.009997, allocations: 338.3 kB / 335.9 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.0101, allocations: 92 kB / 336 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.437e-05/0.01021, allocations: 92 kB / 336.1 MB, free: 11.68 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0006867/0.0109, allocations: 1.131 MB / 337.2 MB, free: 10.54 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003441/0.01125, allocations: 0.6964 MB / 337.9 MB, free: 9.832 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.01138, allocations: 131.5 kB / 338.1 MB, free: 9.703 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.116e-05/0.01147, allocations: 39.69 kB / 338.1 MB, free: 9.664 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 (135) * Number of variables: 135 (129) Notification: Performance of Bindings: time 0.002793/0.01427, allocations: 3.42 MB / 341.5 MB, free: 6.102 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0004423/0.01472, allocations: 448.6 kB / 342 MB, free: 5.652 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001628/0.01636, allocations: 1.834 MB / 343.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001473/0.01651, allocations: 139.8 kB / 343.9 MB, free: 3.645 MB / 286.1 MB Notification: Performance of Alias: time 0.003203/0.01973, allocations: 3.149 MB / 347.1 MB, free: 120 kB / 286.1 MB Notification: Performance of simplify2: time 0.0001096/0.01985, allocations: 95.86 kB / 347.2 MB, free: 24 kB / 286.1 MB Notification: Performance of Events: time 0.0005243/0.02038, allocations: 454.5 kB / 347.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of Detect States: time 0.0007862/0.02118, allocations: 0.6705 MB / 348.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006302/0.02182, allocations: 0.6334 MB / 348.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of Causalize: time 0.003167/0.02499, allocations: 3.417 MB / 352.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001412/0.02642, allocations: 1.573 MB / 353.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of Inline: time 0.002558/0.02898, allocations: 2.644 MB / 356.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001807/0.02917, allocations: 175.6 kB / 356.7 MB, free: 6.176 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002649/0.02944, allocations: 315.5 kB / 357 MB, free: 5.859 MB / 302.1 MB Notification: Performance of Causalize: time 0.01499/0.04444, allocations: 16.88 MB / 373.9 MB, free: 5.738 MB / 318.1 MB Notification: Performance of Tearing: time 2.98e-05/0.04451, allocations: 4 kB / 373.9 MB, free: 5.734 MB / 318.1 MB Notification: Performance of Initialization: time 1.122e-06/0.04452, allocations: 0 / 373.9 MB, free: 5.734 MB / 318.1 MB Notification: Performance of Tearing: time 1.342e-05/0.04453, allocations: 0 / 373.9 MB, free: 5.734 MB / 318.1 MB Notification: Performance of Categorize: time 3.261e-05/0.04457, allocations: 8.719 kB / 373.9 MB, free: 5.727 MB / 318.1 MB Notification: Performance of Solve: time 0.001013/0.04559, allocations: 0.5285 MB / 374.5 MB, free: 5.191 MB / 318.1 MB Notification: Performance of Jacobian: time 0.000537/0.04614, allocations: 0.5662 MB / 375 MB, free: 4.586 MB / 318.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 1 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 10 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 6 (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 states: .................... 6 (6) {thdRMS.rootMeanSquare.mean.y, thdRMS.harmonic.mean2.y, thdRMS.harmonic.mean1.y, thd1.rootMeanSquare.mean.y, thd1.harmonic.mean2.y, thd1.harmonic.mean1.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 36 (36) {thd1.greaterThreshold.y, thd1.pythagoras.valid, thd1.andValid.y, thdRMS.greaterThreshold.y, thdRMS.pythagoras.valid, thdRMS.andValid.y, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_17, $TEV_16, $TEV_15, $TEV_14, $TEV_13, $TEV_12, $TEV_11, $TEV_10, $TEV_9, $TEV_8, $TEV_7, $TEV_6, $TEV_5, $TEV_4, $TEV_3, $TEV_2, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 96 (scalar:96, array:0, record:0) * Number of multi strong components: ............ 6 (algorithm:0, when:6, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 168 (scalar:168, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 168 (scalar:168, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 0.000105/0.04625, allocations: 99.45 kB / 375.1 MB, free: 4.492 MB / 318.1 MB Notification: Performance of SimCode: time 0.002981/0.04924, allocations: 3.414 MB / 378.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of Templates: time 0.1716/0.2209, allocations: 6.606 MB / 385.1 MB, free: 43.63 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)