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.001284/0.001284, allocations: 109.3 kB / 17.75 MB, free: 5.301 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.001198/0.001198, allocations: 184.4 kB / 18.69 MB, free: 4.375 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.276/1.276, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.6e-05/2.6e-05, allocations: 2.281 kB / 351.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004874/0.004909, allocations: 3.616 MB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003019/0.007945, allocations: 1.239 MB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007939/0.008752, allocations: 11.94 kB / 356.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004717/0.009234, allocations: 87 kB / 356.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009499/0.01019, allocations: 146.7 kB / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.01151, allocations: 391.4 kB / 357.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001657/0.01318, allocations: 0.9743 MB / 358.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008265/0.01401, allocations: 410.4 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000695/0.01472, allocations: 326.8 kB / 359.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005307/0.01526, allocations: 342.3 kB / 359.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002251/0.01549, allocations: 96 kB / 359.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.0157, allocations: 96 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001033/0.01674, allocations: 1.151 MB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005622/0.01731, allocations: 0.7079 MB / 361.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002975/0.01762, allocations: 131.6 kB / 361.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001605/0.01778, allocations: 47.62 kB / 361.7 MB, free: 9.492 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.003695/0.02149, allocations: 3.498 MB / 365.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0006656/0.02216, allocations: 456.9 kB / 365.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002416/0.02459, allocations: 1.878 MB / 367.5 MB, free: 3.484 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002934/0.02489, allocations: 155.8 kB / 367.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of Alias: time 0.2093/0.2341, allocations: 3.651 MB / 371.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simplify2: time 0.0003019/0.2345, allocations: 103.1 kB / 371.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006515/0.2352, allocations: 0.5755 MB / 372 MB, free: 18.53 MB / 302.1 MB Notification: Performance of Events: time 0.0006315/0.2358, allocations: 451.5 kB / 372.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007106/0.2365, allocations: 0.6352 MB / 373 MB, free: 18.25 MB / 302.1 MB Notification: Performance of Causalize: time 0.002997/0.2395, allocations: 2.57 MB / 375.6 MB, free: 17.66 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001518/0.2411, allocations: 1.567 MB / 377.2 MB, free: 17.54 MB / 302.1 MB Notification: Performance of Inline: time 0.003015/0.2441, allocations: 2.649 MB / 379.8 MB, free: 16.11 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000234/0.2443, allocations: 167.9 kB / 380 MB, free: 16 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0004195/0.2448, allocations: 316.4 kB / 380.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of Causalize: time 0.01873/0.2635, allocations: 14.73 MB / 395 MB, free: 8.598 MB / 302.1 MB Notification: Performance of Tearing: time 6.227e-05/0.2636, allocations: 0 / 395 MB, free: 8.598 MB / 302.1 MB Notification: Performance of Initialization: time 2.194e-06/0.2636, allocations: 0 / 395 MB, free: 8.598 MB / 302.1 MB Notification: Performance of Tearing: time 4.071e-05/0.2637, allocations: 7.609 kB / 395 MB, free: 8.594 MB / 302.1 MB Notification: Performance of Categorize: time 5.282e-05/0.2637, allocations: 4 kB / 395 MB, free: 8.59 MB / 302.1 MB Notification: Performance of Solve: time 0.001306/0.265, allocations: 0.5233 MB / 395.6 MB, free: 8.145 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0004357/0.2655, allocations: 0.5786 MB / 396.1 MB, free: 7.543 MB / 302.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 9.929e-05/0.2656, allocations: 82.52 kB / 396.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of SimCode: time 0.002556/0.2682, allocations: 3.484 MB / 399.7 MB, free: 4.703 MB / 302.1 MB Notification: Performance of Templates: time 0.01034/0.2785, allocations: 6.745 MB / 406.4 MB, free: 14.17 MB / 318.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)