Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.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.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|idealthyristor.off|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|idealthyristor.off|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 109.8 kB / 18.41 MB, free: 4.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.001256/0.001256, allocations: 191 kB / 19.35 MB, free: 3.59 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.438/1.438, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.306e-05/2.307e-05, allocations: 2.5 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic): time 0.004813/0.004845, allocations: 3.624 MB / 332.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002105/0.006968, allocations: 1.158 MB / 334 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.007225, allocations: 11.94 kB / 334 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002636/0.007496, allocations: 87.16 kB / 334.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003621/0.007866, allocations: 119 kB / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004663/0.008377, allocations: 219.6 kB / 334.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008792/0.009265, allocations: 0.7757 MB / 335.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004881/0.009763, allocations: 299.1 kB / 335.5 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002818/0.01005, allocations: 231.2 kB / 335.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003198/0.01038, allocations: 238.9 kB / 335.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.364e-05/0.01049, allocations: 60 kB / 336 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.347e-05/0.01058, allocations: 56 kB / 336.1 MB, free: 12.42 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.000541/0.01112, allocations: 0.7802 MB / 336.8 MB, free: 11.63 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002624/0.01139, allocations: 496.6 kB / 337.3 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.0115, allocations: 95.69 kB / 337.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.503e-05/0.0116, allocations: 19.88 kB / 337.4 MB, free: 11.02 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: 97 (97) * Number of variables: 97 (96) Notification: Performance of Bindings: time 0.002141/0.01375, allocations: 2.34 MB / 339.8 MB, free: 8.566 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001576/0.01391, allocations: 131 kB / 339.9 MB, free: 8.441 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001012/0.01493, allocations: 1.128 MB / 341 MB, free: 7.285 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001069/0.01505, allocations: 91.88 kB / 341.1 MB, free: 7.195 MB / 286.1 MB Notification: Performance of Alias: time 0.002417/0.01747, allocations: 2.028 MB / 343.1 MB, free: 4.961 MB / 286.1 MB Notification: Performance of simplify2: time 7.404e-05/0.01756, allocations: 63.91 kB / 343.2 MB, free: 4.898 MB / 286.1 MB Notification: Performance of Events: time 0.0003283/0.01789, allocations: 281.5 kB / 343.5 MB, free: 4.621 MB / 286.1 MB Notification: Performance of Detect States: time 0.0005296/0.01843, allocations: 444.6 kB / 343.9 MB, free: 4.172 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0005635/0.019, allocations: 492.2 kB / 344.4 MB, free: 3.617 MB / 286.1 MB Notification: Performance of Causalize: time 0.002089/0.0211, allocations: 1.942 MB / 346.3 MB, free: 1.602 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009705/0.02208, allocations: 1.01 MB / 347.4 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of Inline: time 0.001691/0.02378, allocations: 1.666 MB / 349 MB, free: 14.86 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001243/0.02392, allocations: 111.6 kB / 349.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001944/0.02412, allocations: 207.5 kB / 349.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of Causalize: time 0.01071/0.03484, allocations: 9.289 MB / 358.6 MB, free: 5.199 MB / 302.1 MB Notification: Performance of Tearing: time 0.0007163/0.03559, allocations: 0.7149 MB / 359.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of Initialization: time 1.192e-06/0.0356, allocations: 0 / 359.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003396/0.03595, allocations: 378.4 kB / 359.7 MB, free: 3.969 MB / 302.1 MB Notification: Performance of Categorize: time 2.419e-05/0.03598, allocations: 3.938 kB / 359.7 MB, free: 3.965 MB / 302.1 MB Notification: Performance of Solve: time 0.0006751/0.03666, allocations: 364 kB / 360.1 MB, free: 3.609 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0008246/0.03749, allocations: 0.7749 MB / 360.8 MB, free: 2.789 MB / 302.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 8 * 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: ............................. 3 (3) {meanVoltage.x, rootMeanSquareVoltage.mean.x, meanCurrent.x} * Number of discrete states: .................... 5 (5) {pulse2.twoPulse.timerNegative.entryTime, pulse2.twoPulse.timerPositive.entryTime, meanCurrent.y, rootMeanSquareVoltage.mean.y, meanVoltage.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 31 (31) {pulse2.twoPulse.positiveThreshold.y, pulse2.twoPulse.negativeThreshold.y, pulse2.twoPulse.timerPositive.u, pulse2.twoPulse.timerNegative.u, pulse2.twoPulse.greaterPositive.y, pulse2.twoPulse.negativeEqual.y, pulse2.twoPulse.fire_p, pulse2.twoPulse.fire_n, pulse2.fire_p, pulse2.fire_n, idealthyristor.off, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $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: ........... 62 (scalar:53, array:9, record:0) * Number of multi strong components: ............ 5 (algorithm:0, when:5, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 107 (scalar:98, array:9, 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 107 (scalar:98, array:9, 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: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 0.0001874/0.03769, allocations: 79.06 kB / 360.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of SimCode: time 0.002681/0.04038, allocations: 2.806 MB / 363.7 MB, free: 15.85 MB / 318.1 MB Error: Template error: A template call failed (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so: (null)). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SerializeModelInfo.mo:116:9-116:84:writable] Error: Internal error SerializeModelInfo.serialize failed [CodegenCFunctions.tpl:5962:14-5962:14:writable] Error: Template error: daeExpLbinary:ERR.