Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.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.0009634/0.0009635, allocations: 105.8 kB / 16.42 MB, free: 6.512 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.0008989/0.0008991, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.309/1.309, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.181e-05/2.182e-05, allocations: 3.547 kB / 327.2 MB, free: 3.355 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004552/0.004582, allocations: 3.58 MB / 330.8 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002142/0.006743, allocations: 1.255 MB / 332 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002271/0.006982, allocations: 11.94 kB / 332 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002313/0.00722, allocations: 86.98 kB / 332.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003469/0.007591, allocations: 138.7 kB / 332.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006306/0.008231, allocations: 391.5 kB / 332.6 MB, free: 13.87 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008148/0.009053, allocations: 0.9547 MB / 333.6 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000536/0.009598, allocations: 398.4 kB / 334 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003275/0.009934, allocations: 322.7 kB / 334.3 MB, free: 12.19 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003104/0.01026, allocations: 346.3 kB / 334.6 MB, free: 11.85 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.01037, allocations: 92 kB / 334.7 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.01048, allocations: 92 kB / 334.8 MB, free: 11.67 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0006763/0.01117, allocations: 1.124 MB / 335.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003368/0.01151, allocations: 0.7003 MB / 336.6 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.01165, allocations: 131.5 kB / 336.8 MB, free: 9.695 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.957e-05/0.01174, allocations: 35.69 kB / 336.8 MB, free: 9.66 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.002692/0.01444, allocations: 3.428 MB / 340.2 MB, free: 6.09 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0004228/0.01487, allocations: 452.7 kB / 340.7 MB, free: 5.637 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001546/0.01642, allocations: 1.823 MB / 342.5 MB, free: 3.777 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001524/0.01658, allocations: 143.8 kB / 342.6 MB, free: 3.637 MB / 286.1 MB Notification: Performance of Alias: time 0.003159/0.01975, allocations: 3.145 MB / 345.8 MB, free: 116 kB / 286.1 MB Notification: Performance of simplify2: time 0.0001049/0.01987, allocations: 95.86 kB / 345.9 MB, free: 20 kB / 286.1 MB Notification: Performance of Events: time 0.0005122/0.02039, allocations: 459.1 kB / 346.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005728/0.02097, allocations: 0.6627 MB / 347 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006021/0.02158, allocations: 0.645 MB / 347.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of Causalize: time 0.003142/0.02473, allocations: 3.417 MB / 351 MB, free: 10.65 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001434/0.02618, allocations: 1.57 MB / 352.6 MB, free: 9.059 MB / 302.1 MB Notification: Performance of Inline: time 0.002723/0.02891, allocations: 2.643 MB / 355.2 MB, free: 6.355 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002036/0.02913, allocations: 175.6 kB / 355.4 MB, free: 6.168 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003128/0.02945, allocations: 315.5 kB / 355.7 MB, free: 5.852 MB / 302.1 MB Notification: Performance of Causalize: time 0.01448/0.04394, allocations: 16.89 MB / 372.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of Tearing: time 1.668e-05/0.04398, allocations: 0 / 372.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of Initialization: time 1.052e-06/0.04399, allocations: 0 / 372.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of Tearing: time 1.191e-05/0.04401, allocations: 4 kB / 372.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of Categorize: time 3.143e-05/0.04404, allocations: 7.938 kB / 372.6 MB, free: 5.707 MB / 318.1 MB Notification: Performance of Solve: time 0.0009938/0.04504, allocations: 0.5207 MB / 373.1 MB, free: 5.18 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0004708/0.04553, allocations: 0.5661 MB / 373.7 MB, free: 4.578 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.0001018/0.04564, allocations: 99.45 kB / 373.8 MB, free: 4.484 MB / 318.1 MB Notification: Performance of SimCode: time 0.002742/0.04838, allocations: 3.41 MB / 377.2 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of Templates: time 0.1667/0.2151, allocations: 6.602 MB / 383.8 MB, free: 44.27 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)