Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001191/0.001191, allocations: 109.5 kB / 17.7 MB, free: 5.379 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.001173/0.001173, allocations: 192.7 kB / 18.64 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.506e-05/2.537e-05, allocations: 6.219 kB / 302 MB, free: 5.211 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004454/0.004495, allocations: 3.611 MB / 305.6 MB, free: 1.59 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001701/0.006214, allocations: 1.244 MB / 306.9 MB, free: 352 kB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001883/0.006413, allocations: 11.94 kB / 306.9 MB, free: 340 kB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001979/0.006619, allocations: 94.92 kB / 307 MB, free: 244 kB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002975/0.006924, allocations: 126.8 kB / 307.1 MB, free: 116 kB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005901/0.007538, allocations: 395.5 kB / 307.5 MB, free: 15.73 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007374/0.008283, allocations: 0.9664 MB / 308.5 MB, free: 14.76 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004675/0.008758, allocations: 406.4 kB / 308.9 MB, free: 14.35 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000285/0.009051, allocations: 326.7 kB / 309.2 MB, free: 14.03 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002703/0.00933, allocations: 350.3 kB / 309.5 MB, free: 13.68 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 9.867e-05/0.009435, allocations: 96 kB / 309.6 MB, free: 13.59 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.283e-05/0.009534, allocations: 92 kB / 309.7 MB, free: 13.5 MB / 254.1 MB Notification: Performance of combineBinaries: time 0.0006466/0.01019, allocations: 1.147 MB / 310.8 MB, free: 12.34 MB / 254.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003322/0.01053, allocations: 0.708 MB / 311.6 MB, free: 11.62 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.01065, allocations: 131.6 kB / 311.7 MB, free: 11.49 MB / 254.1 MB Notification: Performance of FrontEnd: time 6.306e-05/0.01072, allocations: 39.69 kB / 311.7 MB, free: 11.45 MB / 254.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 141 (141) * Number of variables: 141 (135) Notification: Performance of Bindings: time 0.002635/0.01336, allocations: 3.509 MB / 315.2 MB, free: 7.801 MB / 254.1 MB Notification: Performance of FunctionAlias: time 0.0004161/0.01378, allocations: 453.7 kB / 315.7 MB, free: 7.348 MB / 254.1 MB Notification: Performance of Early Inline: time 0.001571/0.01536, allocations: 1.874 MB / 317.5 MB, free: 5.43 MB / 254.1 MB Notification: Performance of simplify1: time 0.0001364/0.01551, allocations: 151.8 kB / 317.7 MB, free: 5.281 MB / 254.1 MB Notification: Performance of Alias: time 0.003238/0.01875, allocations: 3.294 MB / 321 MB, free: 1.617 MB / 254.1 MB Notification: Performance of simplify2: time 9.847e-05/0.01886, allocations: 107.8 kB / 321.1 MB, free: 1.512 MB / 254.1 MB Notification: Performance of Events: time 0.0004896/0.01936, allocations: 455.7 kB / 321.5 MB, free: 1.074 MB / 254.1 MB Notification: Performance of Detect States: time 0.0005869/0.01995, allocations: 0.664 MB / 322.2 MB, free: 404 kB / 254.1 MB Notification: Performance of Partitioning: time 0.0006041/0.02057, allocations: 0.6334 MB / 322.8 MB, free: 15.67 MB / 270.1 MB Notification: Performance of Causalize: time 0.003102/0.02368, allocations: 3.405 MB / 326.2 MB, free: 12.2 MB / 270.1 MB Notification: Performance of After Index Reduction Inline: time 0.001338/0.02503, allocations: 1.565 MB / 327.8 MB, free: 10.61 MB / 270.1 MB Notification: Performance of Inline: time 0.002346/0.02738, allocations: 2.574 MB / 330.4 MB, free: 7.969 MB / 270.1 MB Notification: Performance of Partitioning: time 0.0001752/0.02757, allocations: 171.6 kB / 330.5 MB, free: 7.785 MB / 270.1 MB Notification: Performance of Cleanup: time 0.0002527/0.02783, allocations: 327.4 kB / 330.9 MB, free: 7.457 MB / 270.1 MB Notification: Performance of Causalize: time 0.01415/0.04198, allocations: 16.74 MB / 347.6 MB, free: 7.477 MB / 286.1 MB Notification: Performance of Tearing: time 1.878e-05/0.04204, allocations: 4 kB / 347.6 MB, free: 7.473 MB / 286.1 MB Notification: Performance of Initialization: time 1.162e-06/0.04204, allocations: 0 / 347.6 MB, free: 7.473 MB / 286.1 MB Notification: Performance of Tearing: time 1.067e-05/0.04206, allocations: 0 / 347.6 MB, free: 7.473 MB / 286.1 MB Notification: Performance of Categorize: time 3.054e-05/0.0421, allocations: 11.94 kB / 347.6 MB, free: 7.461 MB / 286.1 MB Notification: Performance of Solve: time 0.001036/0.04314, allocations: 0.5676 MB / 348.2 MB, free: 6.887 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0005306/0.04368, allocations: 0.5678 MB / 348.8 MB, free: 6.277 MB / 286.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_last, thdRMS.harmonic.mean2.y_last, thdRMS.harmonic.mean1.y_last, thd1.rootMeanSquare.mean.y_last, thd1.harmonic.mean2.y_last, thd1.harmonic.mean1.y_last} * 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 8.972e-05/0.04377, allocations: 105.9 kB / 348.9 MB, free: 6.188 MB / 286.1 MB Notification: Performance of SimCode: time 0.00276/0.04654, allocations: 3.43 MB / 352.3 MB, free: 2.68 MB / 286.1 MB Notification: Performance of Templates: time 0.0108/0.05735, allocations: 6.619 MB / 358.9 MB, free: 12.07 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)