Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001931/0.001931, allocations: 99.59 kB / 21.2 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002997/0.002997, allocations: 215 kB / 24.49 MB, free: 3.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.416e-05/2.416e-05, allocations: 2.281 kB / 378.9 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.191/0.191, allocations: 3.394 MB / 382.3 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00245/0.1935, allocations: 1.356 MB / 383.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002615/0.1938, allocations: 18 kB / 383.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002512/0.194, allocations: 87.98 kB / 383.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004107/0.1944, allocations: 152.9 kB / 383.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000876/0.1953, allocations: 468.7 kB / 384.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.1965, allocations: 1.187 MB / 385.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004873/0.1969, allocations: 262.6 kB / 385.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005842/0.1975, allocations: 449.2 kB / 386.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003706/0.1979, allocations: 355.2 kB / 386.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001413/0.198, allocations: 98.38 kB / 386.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.1982, allocations: 114.5 kB / 386.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008366/0.1991, allocations: 1.523 MB / 388.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004531/0.1995, allocations: 0.9485 MB / 389.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.1996, allocations: 51.09 kB / 389.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001264/0.1998, allocations: 42.97 kB / 389.4 MB, free: 9.469 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 [SIM] Bindings: time 0.002946/0.2027, allocations: 3.504 MB / 392.9 MB, free: 6.949 MB / 302.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.0005329/0.2032, allocations: 499.8 kB / 393.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of [SIM] Early Inline: time 0.002118/0.2054, allocations: 2.259 MB / 395.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of [SIM] Simplify 1: time 0.0005758/0.2059, allocations: 384.9 kB / 396 MB, free: 4.949 MB / 302.1 MB Notification: Performance of [SIM] Alias: time 0.004238/0.2102, allocations: 3.249 MB / 399.3 MB, free: 2.93 MB / 302.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0003704/0.2105, allocations: 262 kB / 399.5 MB, free: 2.766 MB / 302.1 MB Notification: Performance of [SIM] Remove Stream: time 0.0001973/0.2107, allocations: 193.9 kB / 399.7 MB, free: 2.613 MB / 302.1 MB Notification: Performance of [SIM] Detect States: time 0.0005603/0.2113, allocations: 0.5252 MB / 400.2 MB, free: 2.219 MB / 302.1 MB Notification: Performance of [SIM] Events: time 0.0004758/0.2118, allocations: 382.8 kB / 400.6 MB, free: 2.02 MB / 302.1 MB Notification: Performance of [SIM] Partitioning: time 0.0007894/0.2126, allocations: 0.7942 MB / 401.4 MB, free: 1.512 MB / 302.1 MB Notification: Performance of [SIM] Causalize: time 0.002061/0.2146, allocations: 1.593 MB / 403 MB, free: 1 MB / 302.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.001307/0.2159, allocations: 1.542 MB / 404.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of [INI] Simplify: time 0.001969/0.2179, allocations: 1.094 MB / 405.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of [INI] Inline: time 0.002671/0.2206, allocations: 2.514 MB / 408.1 MB, free: 13.08 MB / 318.1 MB Notification: Performance of [INI] Partitioning: time 0.0001633/0.2207, allocations: 59.81 kB / 408.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of [INI] Cleanup: time 0.0006304/0.2214, allocations: 0.5791 MB / 408.8 MB, free: 12.54 MB / 318.1 MB Notification: Performance of [INI] Causalize: time 0.01389/0.2353, allocations: 9.168 MB / 418 MB, free: 5.062 MB / 318.1 MB Notification: Performance of [INI] Tearing: time 0.0001438/0.2354, allocations: 175.9 kB / 418.1 MB, free: 4.891 MB / 318.1 MB Notification: Performance of [SIM] Initialization: time 6.101e-06/0.2354, allocations: 4 kB / 418.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of [SIM] Remove Dummies: time 2.999e-05/0.2354, allocations: 0 / 418.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of [SIM] Tearing: time 4.699e-05/0.2355, allocations: 56 kB / 418.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of [SIM] Categorize: time 4.651e-05/0.2355, allocations: 7.938 kB / 418.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of [SIM] Solve: time 0.002107/0.2376, allocations: 1.142 MB / 419.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of [SIM] Jacobian: time 0.0004985/0.2381, allocations: 384.7 kB / 419.7 MB, free: 3.262 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) {} * Number of discrete variables: ................. 38 (38) {thd1.greaterThreshold.y, thd1.valid, thd1.pythagoras.valid, thdRMS.greaterThreshold.y, thdRMS.valid, thdRMS.pythagoras.valid, $SEV_13, $SEV_12, $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 clocks: ............................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 92 (scalar:92, 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 (resizable: 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: ........... 170 (scalar:170, 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 (resizable: 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: ........... 170 (scalar:170, 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 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 0.0001385/0.2383, allocations: 111.5 kB / 419.8 MB, free: 3.164 MB / 318.1 MB Notification: Performance of SimCode: time 0.003799/0.2421, allocations: 2.953 MB / 422.8 MB, free: 144 kB / 318.1 MB Notification: Performance of Templates: time 0.01586/0.2579, allocations: 7.716 MB / 430.5 MB, free: 8.453 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 4.8497946206480265] Failed to read output from testmodel.py, exit status != 0: ['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'] 0.26634725695475936 0.28305405899999997 0.080110148 Calling exit ...