Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=2000,variableFilter="time|thd1.harmonic.mean1.x|thd1.harmonic.mean2.x|thd1.rootMeanSquare.mean.x|thdRMS.harmonic.mean1.x|thdRMS.harmonic.mean2.x|thdRMS.rootMeanSquare.mean.x",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|thd1.harmonic.mean1.x|thd1.harmonic.mean2.x|thd1.rootMeanSquare.mean.x|thdRMS.harmonic.mean1.x|thdRMS.harmonic.mean2.x|thdRMS.rootMeanSquare.mean.x",fileNamePrefix="Modelica_3.2.3_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.00138/0.00138, allocations: 102.1 kB / 18.41 MB, free: 4.641 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.001472/0.001472, allocations: 191.8 kB / 19.35 MB, free: 3.719 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.461/1.461, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.081e-05/4.104e-05, allocations: 7.062 kB / 329.2 MB, free: 3.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.006529/0.006582, allocations: 3.577 MB / 332.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003416/0.01002, allocations: 1.247 MB / 334 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001183/0.01122, allocations: 15.94 kB / 334 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006867/0.01192, allocations: 82.98 kB / 334.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001235/0.01322, allocations: 146.8 kB / 334.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001443/0.01468, allocations: 391.4 kB / 334.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.01631, allocations: 0.9586 MB / 335.6 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000718/0.01704, allocations: 398.4 kB / 336 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000585/0.01763, allocations: 326.7 kB / 336.3 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005419/0.01819, allocations: 342.3 kB / 336.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002309/0.01843, allocations: 96 kB / 336.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.01861, allocations: 92 kB / 336.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0008934/0.01951, allocations: 1.128 MB / 337.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005076/0.02003, allocations: 0.6925 MB / 338.6 MB, free: 9.832 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002942/0.02033, allocations: 127.6 kB / 338.7 MB, free: 9.707 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0002187/0.02056, allocations: 39.69 kB / 338.8 MB, free: 9.668 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.003322/0.02389, allocations: 3.428 MB / 342.2 MB, free: 6.098 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0004803/0.02437, allocations: 444.2 kB / 342.6 MB, free: 5.652 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001678/0.02606, allocations: 1.831 MB / 344.5 MB, free: 3.785 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001711/0.02624, allocations: 147.8 kB / 344.6 MB, free: 3.641 MB / 286.1 MB Notification: Performance of Alias: time 0.003999/0.03025, allocations: 3.469 MB / 348.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simplify2: time 0.0002049/0.03047, allocations: 99.78 kB / 348.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of Events: time 0.0006419/0.03112, allocations: 454.3 kB / 348.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of Detect States: time 0.0008239/0.03196, allocations: 0.6704 MB / 349.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007323/0.03271, allocations: 0.6373 MB / 349.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of Causalize: time 0.002854/0.03557, allocations: 2.552 MB / 352.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001512/0.0371, allocations: 1.577 MB / 354.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of Inline: time 0.002578/0.03969, allocations: 2.638 MB / 356.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000187/0.03989, allocations: 175.6 kB / 356.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of Cleanup: time 0.000262/0.04016, allocations: 323.4 kB / 357.2 MB, free: 6.363 MB / 302.1 MB Notification: Performance of Causalize: time 0.0164/0.05657, allocations: 14.73 MB / 371.9 MB, free: 7.445 MB / 318.1 MB Notification: Performance of Tearing: time 3.411e-05/0.05665, allocations: 4 kB / 371.9 MB, free: 7.441 MB / 318.1 MB Notification: Performance of Initialization: time 1.443e-06/0.05666, allocations: 0 / 371.9 MB, free: 7.441 MB / 318.1 MB Notification: Performance of Tearing: time 1.938e-05/0.05668, allocations: 3.938 kB / 371.9 MB, free: 7.438 MB / 318.1 MB Notification: Performance of Categorize: time 3.91e-05/0.05673, allocations: 8 kB / 371.9 MB, free: 7.43 MB / 318.1 MB Notification: Performance of Solve: time 0.001154/0.05789, allocations: 0.5168 MB / 372.4 MB, free: 6.902 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0005342/0.05843, allocations: 0.5757 MB / 373 MB, free: 6.289 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.0001286/0.05857, allocations: 95.89 kB / 373.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of SimCode: time 0.003168/0.06174, allocations: 3.41 MB / 376.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of Templates: time 0.2249/0.2866, allocations: 6.741 MB / 383.3 MB, free: 42.48 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)