Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001155/0.001155, allocations: 115.9 kB / 18.47 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 202.8 kB / 19.42 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 247.6 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.509e-05/3.509e-05, allocations: 2.281 kB / 359.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.005134/0.005179, allocations: 3.724 MB / 363.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003261/0.008459, allocations: 1.398 MB / 364.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004418/0.008923, allocations: 15.88 kB / 364.5 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002985/0.00923, allocations: 90.92 kB / 364.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004214/0.009697, allocations: 138.7 kB / 364.7 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000917/0.01062, allocations: 459.3 kB / 365.1 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009567/0.01159, allocations: 1.017 MB / 366.2 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005627/0.01216, allocations: 414.5 kB / 366.6 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004691/0.01264, allocations: 350.6 kB / 366.9 MB, free: 5.383 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003539/0.013, allocations: 354.3 kB / 367.3 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.01312, allocations: 96 kB / 367.3 MB, free: 4.941 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.01332, allocations: 124 kB / 367.5 MB, free: 4.82 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008474/0.01417, allocations: 1.208 MB / 368.7 MB, free: 3.598 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004916/0.01467, allocations: 0.7579 MB / 369.4 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.01486, allocations: 139.6 kB / 369.6 MB, free: 2.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001806/0.01505, allocations: 47.62 kB / 369.6 MB, free: 2.645 MB / 302.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.213/0.228, allocations: 3.662 MB / 373.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0004047/0.2285, allocations: 344.9 kB / 373.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002028/0.2305, allocations: 2.189 MB / 375.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001847/0.2307, allocations: 146.8 kB / 375.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of Alias: time 0.003932/0.2346, allocations: 3.647 MB / 379.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001478/0.2348, allocations: 104.9 kB / 379.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of Events: time 0.0005241/0.2353, allocations: 452.8 kB / 380.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006527/0.236, allocations: 0.6686 MB / 380.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000655/0.2366, allocations: 0.624 MB / 381.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of Causalize: time 0.002893/0.2395, allocations: 2.469 MB / 383.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001615/0.2412, allocations: 1.562 MB / 385.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of Inline: time 0.003388/0.2446, allocations: 3.046 MB / 388.5 MB, free: 6.371 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002078/0.2448, allocations: 173.9 kB / 388.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003539/0.2452, allocations: 315.8 kB / 389 MB, free: 6.066 MB / 302.1 MB Notification: Performance of Causalize: time 0.01749/0.2626, allocations: 14.98 MB / 404 MB, free: 12.83 MB / 318.1 MB Notification: Performance of Tearing: time 2.623e-05/0.2627, allocations: 0 / 404 MB, free: 12.83 MB / 318.1 MB Notification: Performance of Initialization: time 1.654e-06/0.2627, allocations: 0 / 404 MB, free: 12.83 MB / 318.1 MB Notification: Performance of Tearing: time 2.38e-05/0.2627, allocations: 8 kB / 404 MB, free: 12.82 MB / 318.1 MB Notification: Performance of Categorize: time 4.146e-05/0.2628, allocations: 6.953 kB / 404 MB, free: 12.82 MB / 318.1 MB Notification: Performance of Solve: time 0.00118/0.264, allocations: 0.539 MB / 404.5 MB, free: 12.36 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0005546/0.2645, allocations: 0.5509 MB / 405.1 MB, free: 11.79 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_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: ........... 90 (scalar:90, 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.0001208/0.2647, allocations: 96.45 kB / 405.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of SimCode: time 0.003227/0.2679, allocations: 3.53 MB / 408.7 MB, free: 8.184 MB / 318.1 MB Notification: Performance of Templates: time 0.01235/0.2803, allocations: 7.078 MB / 415.8 MB, free: 1.125 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)