Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.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.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 111.8 kB / 17.75 MB, free: 5.348 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.0011/0.0011, allocations: 185.8 kB / 18.68 MB, free: 4.426 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.206/1.206, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.746e-05/2.747e-05, allocations: 2.281 kB / 351.9 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003739/0.003775, allocations: 2.729 MB / 354.7 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.005068, allocations: 0.6973 MB / 355.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.005251, allocations: 7.938 kB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.005426, allocations: 39.58 kB / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.005608, allocations: 87.2 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.005964, allocations: 107.8 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004224/0.006395, allocations: 426.5 kB / 356 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.006596, allocations: 76.58 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002053/0.006808, allocations: 159.4 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/0.007015, allocations: 163.3 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.687e-05/0.007079, allocations: 32 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.49e-05/0.007141, allocations: 36 kB / 356.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003671/0.007514, allocations: 486.8 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001482/0.007669, allocations: 283.8 kB / 357.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.523e-05/0.00774, allocations: 51.81 kB / 357.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.371e-05/0.007779, allocations: 8 kB / 357.3 MB, free: 13.89 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: 48 (48) * Number of variables: 48 (48) Notification: Performance of Bindings: time 0.001239/0.009023, allocations: 1.423 MB / 358.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000122/0.009154, allocations: 91.8 kB / 358.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006893/0.00985, allocations: 0.7766 MB / 359.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simplify1: time 7.949e-05/0.009937, allocations: 75.89 kB / 359.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Alias: time 0.001284/0.01123, allocations: 1.161 MB / 360.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simplify2: time 6.114e-05/0.0113, allocations: 55.92 kB / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of Events: time 0.0002174/0.01152, allocations: 164.6 kB / 361 MB, free: 9.895 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003023/0.01183, allocations: 265 kB / 361.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000265/0.01211, allocations: 255.5 kB / 361.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of Causalize: time 0.001015/0.01313, allocations: 0.9372 MB / 362.5 MB, free: 8.398 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006072/0.01375, allocations: 0.7053 MB / 363.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of Inline: time 0.001058/0.01481, allocations: 1.17 MB / 364.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of Partitioning: time 5.519e-05/0.01488, allocations: 54.31 kB / 364.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of Cleanup: time 4.874e-05/0.01493, allocations: 51.92 kB / 364.4 MB, free: 6.352 MB / 302.1 MB Notification: Performance of Causalize: time 0.001654/0.01659, allocations: 1.558 MB / 366 MB, free: 4.777 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004682/0.01707, allocations: 0.5745 MB / 366.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of Initialization: time 5.91e-07/0.01709, allocations: 0 / 366.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003855/0.01748, allocations: 0.5706 MB / 367.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of Categorize: time 7.644e-06/0.01749, allocations: 0 / 367.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of Solve: time 0.0002429/0.01774, allocations: 178.2 kB / 367.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0003691/0.01812, allocations: 483.6 kB / 367.8 MB, free: 2.754 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: ......... 1 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 2 (2) {thyristor_v4_1.vControl, inductor.i} * Number of discrete states: .................... 2 (2) {pulseCurrent.signalSource.T_start, pulseCurrent.signalSource.count} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 13 (13) {$SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 33 (scalar:33, array:0, record:0) * Number of multi strong components: ............ 2 (algorithm:0, when:2, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 52 (scalar:52, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 8.599e-05/0.01821, allocations: 30.67 kB / 367.8 MB, free: 2.734 MB / 302.1 MB Notification: Performance of SimCode: time 0.001107/0.01932, allocations: 1.659 MB / 369.5 MB, free: 1.047 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.