Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001362/0.001362, allocations: 114.6 kB / 18.47 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00153/0.00153, allocations: 204 kB / 19.42 MB, free: 3.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.115e-05/2.116e-05, allocations: 2.281 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R): time 0.004798/0.004828, allocations: 3.728 MB / 363.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.007031, allocations: 1.188 MB / 364.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002626/0.007308, allocations: 8 kB / 364.3 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002562/0.007571, allocations: 95.03 kB / 364.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003494/0.007928, allocations: 115 kB / 364.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005285/0.008495, allocations: 239.6 kB / 364.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008077/0.009311, allocations: 0.8538 MB / 365.6 MB, free: 6.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004064/0.009727, allocations: 303.8 kB / 365.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003027/0.01004, allocations: 263 kB / 366.2 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002574/0.0103, allocations: 246.9 kB / 366.4 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.611e-05/0.01039, allocations: 60 kB / 366.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.0105, allocations: 64 kB / 366.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0005128/0.01102, allocations: 0.8344 MB / 367.4 MB, free: 4.887 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002556/0.01129, allocations: 0.5196 MB / 367.9 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.963e-05/0.01138, allocations: 95.69 kB / 368 MB, free: 4.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001017/0.01149, allocations: 19.88 kB / 368 MB, free: 4.246 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: 102 (102) * Number of variables: 102 (101) Notification: Performance of Bindings: time 0.002057/0.01355, allocations: 2.511 MB / 370.5 MB, free: 1.617 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000121/0.01368, allocations: 111.8 kB / 370.6 MB, free: 1.508 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001145/0.01483, allocations: 1.346 MB / 372 MB, free: 136 kB / 302.1 MB Notification: Performance of simplify1: time 0.0001169/0.01496, allocations: 95.86 kB / 372 MB, free: 40 kB / 302.1 MB Notification: Performance of Alias: time 0.2083/0.2233, allocations: 2.118 MB / 374.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001151/0.2234, allocations: 66.22 kB / 374.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of Events: time 0.000348/0.2238, allocations: 275.4 kB / 374.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Detect States: time 0.0004493/0.2242, allocations: 451.6 kB / 374.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0005447/0.2248, allocations: 0.4896 MB / 375.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of Causalize: time 0.002219/0.227, allocations: 1.984 MB / 377.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009585/0.228, allocations: 1.037 MB / 378.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Inline: time 0.001987/0.23, allocations: 2.028 MB / 380.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001282/0.2301, allocations: 124.7 kB / 380.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001841/0.2303, allocations: 209.7 kB / 380.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Causalize: time 0.01194/0.2423, allocations: 10.32 MB / 391.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005743/0.2429, allocations: 0.7253 MB / 391.9 MB, free: 6.742 MB / 302.1 MB Notification: Performance of Initialization: time 1.453e-06/0.2429, allocations: 0 / 391.9 MB, free: 6.742 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002193/0.2431, allocations: 372.8 kB / 392.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of Categorize: time 3.03e-05/0.2431, allocations: 3.938 kB / 392.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of Solve: time 0.0007929/0.2439, allocations: 427.6 kB / 392.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0006452/0.2446, allocations: 0.8163 MB / 393.5 MB, free: 5.824 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: ................. 30 (30) {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_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: ........... 63 (scalar:52, 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: ........... 116 (scalar:105, 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: ........... 116 (scalar:105, 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 0.0001574/0.2448, allocations: 86.55 kB / 393.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of SimCode: time 0.002568/0.2473, allocations: 2.993 MB / 396.5 MB, free: 4.074 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.