Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.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_4.0.0_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_4.0.0_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.0013/0.001301, allocations: 115.4 kB / 17.75 MB, free: 5.18 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.001255/0.001255, allocations: 192.6 kB / 18.68 MB, free: 4.254 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.314/1.314, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.41e-05/2.411e-05, allocations: 2.281 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic): time 0.005251/0.005284, allocations: 3.714 MB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002659/0.00797, allocations: 1.146 MB / 356.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003172/0.008305, allocations: 15.94 kB / 356.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.00859, allocations: 83.16 kB / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004566/0.009102, allocations: 115 kB / 357.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000592/0.009705, allocations: 239.6 kB / 357.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008921/0.01061, allocations: 0.8537 MB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005041/0.01112, allocations: 315.8 kB / 358.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003651/0.01149, allocations: 247.2 kB / 358.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.01182, allocations: 262.8 kB / 358.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.948e-05/0.0119, allocations: 60 kB / 359 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000149/0.01206, allocations: 63.94 kB / 359.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0006044/0.01268, allocations: 0.8422 MB / 359.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002957/0.01298, allocations: 0.5119 MB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.01309, allocations: 95.69 kB / 360.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.00013/0.01323, allocations: 23.86 kB / 360.5 MB, free: 10.61 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: 104 (104) * Number of variables: 104 (103) Notification: Performance of Bindings: time 0.002426/0.01566, allocations: 2.523 MB / 363.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001716/0.01584, allocations: 115.8 kB / 363.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001293/0.01715, allocations: 1.202 MB / 364.4 MB, free: 6.629 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001433/0.0173, allocations: 103.8 kB / 364.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of Alias: time 0.002683/0.01999, allocations: 2.148 MB / 366.6 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001044/0.02011, allocations: 71.89 kB / 366.7 MB, free: 4.086 MB / 302.1 MB Notification: Performance of Events: time 0.0004017/0.02052, allocations: 289 kB / 367 MB, free: 3.809 MB / 302.1 MB Notification: Performance of Detect States: time 0.0004874/0.02102, allocations: 472.1 kB / 367.4 MB, free: 3.336 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0005463/0.02158, allocations: 0.5224 MB / 368 MB, free: 2.734 MB / 302.1 MB Notification: Performance of Causalize: time 0.002282/0.02387, allocations: 2.092 MB / 370.1 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.1916/0.2154, allocations: 1.07 MB / 371.1 MB, free: 18.44 MB / 302.1 MB Notification: Performance of Inline: time 0.002083/0.2175, allocations: 1.801 MB / 372.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001555/0.2177, allocations: 117 kB / 373 MB, free: 18.28 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002191/0.2179, allocations: 213.6 kB / 373.2 MB, free: 18.27 MB / 302.1 MB Notification: Performance of Causalize: time 0.01197/0.2299, allocations: 10.04 MB / 383.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006102/0.2306, allocations: 0.7237 MB / 384 MB, free: 15.21 MB / 302.1 MB Notification: Performance of Initialization: time 1.352e-06/0.2306, allocations: 0 / 384 MB, free: 15.21 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002753/0.2309, allocations: 375.9 kB / 384.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of Categorize: time 2.75e-05/0.2309, allocations: 6.719 kB / 384.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of Solve: time 0.0009148/0.2318, allocations: 427.8 kB / 384.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0007393/0.2326, allocations: 0.8306 MB / 385.6 MB, free: 14.3 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: ......... 9 * 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_last, meanVoltage.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 32 (32) {pulse2.twoPulse.positiveThreshold.y, pulse2.twoPulse.negativeThreshold.y, pulse2.twoPulse.timerPositive.u, pulse2.twoPulse.timerNegative.u, pulse2.twoPulse.greaterPositive.y, pulse2.twoPulse.greaterNegative.y, pulse2.twoPulse.fire_p, pulse2.twoPulse.fire_n, pulse2.fire_p, pulse2.fire_n, idealthyristor.off, $SEV_9, $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: ........... 67 (scalar:56, array:11, 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: ........... 114 (scalar:103, array:11, 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: ........... 114 (scalar:103, array:11, 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 7.781e-05/0.2326, allocations: 74.03 kB / 385.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of SimCode: time 0.002654/0.2353, allocations: 2.997 MB / 388.7 MB, free: 12.66 MB / 302.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.