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.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001154, allocations: 108.7 kB / 16.42 MB, free: 6.449 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.001246/0.001246, allocations: 192.3 kB / 17.36 MB, free: 5.699 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.274/1.274, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.282e-05/2.282e-05, allocations: 2.281 kB / 327.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R): time 0.004655/0.004686, allocations: 3.586 MB / 330.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002106/0.006806, allocations: 1.146 MB / 332 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004181/0.007235, allocations: 11.94 kB / 332 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003033/0.007546, allocations: 79.17 kB / 332.1 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004718/0.008025, allocations: 115 kB / 332.2 MB, free: 14.33 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005451/0.008597, allocations: 219.6 kB / 332.4 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008996/0.009506, allocations: 0.764 MB / 333.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004541/0.00997, allocations: 295 kB / 333.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003535/0.01033, allocations: 223.2 kB / 333.7 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003227/0.01066, allocations: 234.9 kB / 333.9 MB, free: 12.6 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.01078, allocations: 56 kB / 333.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.668e-05/0.01088, allocations: 52 kB / 334 MB, free: 12.5 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005516/0.01144, allocations: 0.7648 MB / 334.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002977/0.01175, allocations: 484.8 kB / 335.2 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.01189, allocations: 79.75 kB / 335.3 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.024e-05/0.01199, allocations: 27.81 kB / 335.3 MB, free: 11.14 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: 95 (95) * Number of variables: 95 (94) Notification: Performance of Bindings: time 0.002153/0.01415, allocations: 2.302 MB / 337.6 MB, free: 8.719 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002121/0.01437, allocations: 111.8 kB / 337.7 MB, free: 8.609 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001204/0.01558, allocations: 1.1 MB / 338.8 MB, free: 7.48 MB / 286.1 MB Notification: Performance of simplify1: time 0.000152/0.01574, allocations: 87.88 kB / 338.9 MB, free: 7.395 MB / 286.1 MB Notification: Performance of Alias: time 0.00213/0.01788, allocations: 1.807 MB / 340.7 MB, free: 5.379 MB / 286.1 MB Notification: Performance of simplify2: time 0.000112/0.018, allocations: 63.89 kB / 340.8 MB, free: 5.316 MB / 286.1 MB Notification: Performance of Events: time 0.0003299/0.01834, allocations: 254.4 kB / 341 MB, free: 5.066 MB / 286.1 MB Notification: Performance of Detect States: time 0.0005192/0.01887, allocations: 438 kB / 341.5 MB, free: 4.629 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004841/0.01936, allocations: 459 kB / 341.9 MB, free: 4.109 MB / 286.1 MB Notification: Performance of Causalize: time 0.002376/0.02174, allocations: 2.479 MB / 344.4 MB, free: 1.582 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008839/0.02264, allocations: 0.9441 MB / 345.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of Inline: time 0.001774/0.02442, allocations: 1.674 MB / 347 MB, free: 14.9 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001324/0.02456, allocations: 123.5 kB / 347.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002891/0.02486, allocations: 195.6 kB / 347.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of Causalize: time 0.01052/0.03539, allocations: 10.94 MB / 358.3 MB, free: 4.012 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006292/0.03604, allocations: 0.7233 MB / 359 MB, free: 3.191 MB / 302.1 MB Notification: Performance of Initialization: time 1.443e-06/0.03606, allocations: 3.938 kB / 359 MB, free: 3.188 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002785/0.03634, allocations: 370.1 kB / 359.4 MB, free: 2.777 MB / 302.1 MB Notification: Performance of Categorize: time 3.091e-05/0.03638, allocations: 12.19 kB / 359.4 MB, free: 2.766 MB / 302.1 MB Notification: Performance of Solve: time 0.0006427/0.03703, allocations: 363.9 kB / 359.7 MB, free: 2.41 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0007311/0.03777, allocations: 0.7462 MB / 360.5 MB, free: 1.617 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: ................. 29 (29) {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_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: ........... 59 (scalar:50, 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: ........... 109 (scalar:100, 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: ........... 109 (scalar:100, 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.0001619/0.03794, allocations: 88.8 kB / 360.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of SimCode: time 0.002493/0.04044, allocations: 2.779 MB / 363.3 MB, free: 14.7 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.