Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001224/0.001224, allocations: 107.1 kB / 16.42 MB, free: 6.465 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.001207/0.001207, allocations: 191.7 kB / 17.36 MB, free: 5.707 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.27/1.27, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.135e-05/2.136e-05, allocations: 2.5 kB / 327.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic): time 0.004398/0.004429, allocations: 3.625 MB / 330.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.006264, allocations: 1.158 MB / 332 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/0.006467, allocations: 11.94 kB / 332 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.006679, allocations: 91.16 kB / 332.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002846/0.006981, allocations: 115 kB / 332.2 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.007382, allocations: 219.6 kB / 332.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000717/0.008107, allocations: 0.7757 MB / 333.2 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003956/0.008515, allocations: 295.1 kB / 333.5 MB, free: 12.97 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002468/0.008771, allocations: 235.2 kB / 333.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002377/0.009017, allocations: 242.9 kB / 334 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.75e-05/0.009092, allocations: 56 kB / 334 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.484e-05/0.009172, allocations: 56 kB / 334.1 MB, free: 12.39 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004973/0.009675, allocations: 0.7764 MB / 334.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000239/0.009921, allocations: 496.6 kB / 335.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.989e-05/0.01002, allocations: 95.69 kB / 335.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.685e-05/0.01008, allocations: 19.88 kB / 335.4 MB, free: 11 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.001873/0.01196, allocations: 2.348 MB / 337.8 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001391/0.0121, allocations: 122.9 kB / 337.9 MB, free: 8.422 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009819/0.01309, allocations: 1.136 MB / 339.1 MB, free: 7.258 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001283/0.01323, allocations: 95.86 kB / 339.1 MB, free: 7.164 MB / 286.1 MB Notification: Performance of Alias: time 0.001846/0.01509, allocations: 1.818 MB / 341 MB, free: 5.141 MB / 286.1 MB Notification: Performance of simplify2: time 6.601e-05/0.01516, allocations: 71.91 kB / 341 MB, free: 5.07 MB / 286.1 MB Notification: Performance of Events: time 0.0003079/0.01548, allocations: 278.2 kB / 341.3 MB, free: 4.797 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004224/0.01591, allocations: 445.3 kB / 341.7 MB, free: 4.348 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004773/0.01639, allocations: 488.3 kB / 342.2 MB, free: 3.797 MB / 286.1 MB Notification: Performance of Causalize: time 0.002405/0.01881, allocations: 2.594 MB / 344.8 MB, free: 1.164 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008837/0.0197, allocations: 1.01 MB / 345.8 MB, free: 128 kB / 286.1 MB Notification: Performance of Inline: time 0.001564/0.02128, allocations: 1.661 MB / 347.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001239/0.02141, allocations: 123.5 kB / 347.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of Cleanup: time 0.00017/0.02159, allocations: 199.6 kB / 347.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of Causalize: time 0.009886/0.03148, allocations: 10.66 MB / 358.5 MB, free: 3.812 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006337/0.03214, allocations: 0.7227 MB / 359.2 MB, free: 2.992 MB / 302.1 MB Notification: Performance of Initialization: time 7.02e-07/0.03215, allocations: 0 / 359.2 MB, free: 2.992 MB / 302.1 MB Notification: Performance of Tearing: time 0.000226/0.03238, allocations: 366 kB / 359.5 MB, free: 2.586 MB / 302.1 MB Notification: Performance of Categorize: time 2.173e-05/0.03242, allocations: 11.94 kB / 359.5 MB, free: 2.574 MB / 302.1 MB Notification: Performance of Solve: time 0.0005413/0.03296, allocations: 359.9 kB / 359.9 MB, free: 2.219 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0006915/0.03366, allocations: 0.7876 MB / 360.7 MB, free: 1.391 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.0001454/0.03382, allocations: 84.89 kB / 360.8 MB, free: 1.316 MB / 302.1 MB Notification: Performance of SimCode: time 0.00226/0.03608, allocations: 2.794 MB / 363.6 MB, free: 14.46 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.