Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.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.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001213/0.001213, allocations: 111.8 kB / 18.47 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001112/0.001112, allocations: 214.8 kB / 19.42 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.556e-05/2.556e-05, allocations: 4.953 kB / 359.3 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003711/0.003745, allocations: 2.759 MB / 362.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.004978, allocations: 0.7634 MB / 362.9 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.005107, allocations: 8 kB / 362.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.005252, allocations: 35.58 kB / 362.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.005421, allocations: 91.19 kB / 363 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003242/0.005764, allocations: 111.7 kB / 363.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004516/0.006226, allocations: 430.4 kB / 363.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.006431, allocations: 84.69 kB / 363.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002641/0.006702, allocations: 147.5 kB / 363.8 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.006913, allocations: 171.3 kB / 363.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.164e-05/0.006974, allocations: 40 kB / 364 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.089e-05/0.007071, allocations: 40 kB / 364 MB, free: 8.309 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003914/0.007468, allocations: 494.7 kB / 364.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001754/0.007651, allocations: 291.7 kB / 364.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.701e-05/0.007734, allocations: 51.81 kB / 364.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.158e-05/0.007782, allocations: 8 kB / 364.8 MB, free: 7.473 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.001422/0.00921, allocations: 1.427 MB / 366.3 MB, free: 5.938 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001328/0.00935, allocations: 87.73 kB / 366.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0008633/0.01022, allocations: 0.9131 MB / 367.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simplify1: time 8.162e-05/0.01031, allocations: 79.89 kB / 367.3 MB, free: 4.832 MB / 302.1 MB Notification: Performance of Alias: time 0.001479/0.0118, allocations: 1.161 MB / 368.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of simplify2: time 6.187e-05/0.01187, allocations: 51.92 kB / 368.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of Events: time 0.0002542/0.01213, allocations: 172 kB / 368.7 MB, free: 3.328 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003195/0.01246, allocations: 268.9 kB / 369 MB, free: 3.051 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002835/0.01275, allocations: 251.4 kB / 369.2 MB, free: 2.789 MB / 302.1 MB Notification: Performance of Causalize: time 0.001114/0.01387, allocations: 0.9233 MB / 370.1 MB, free: 1.848 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007028/0.01459, allocations: 0.7092 MB / 370.8 MB, free: 1.109 MB / 302.1 MB Notification: Performance of Inline: time 0.2171/0.2317, allocations: 1.328 MB / 372.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001225/0.2318, allocations: 60.67 kB / 372.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Cleanup: time 9.357e-05/0.2319, allocations: 52.5 kB / 372.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Causalize: time 0.001984/0.2339, allocations: 1.541 MB / 373.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005068/0.2344, allocations: 0.5743 MB / 374.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of Initialization: time 9.62e-07/0.2345, allocations: 0 / 374.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003684/0.2348, allocations: 0.5786 MB / 375 MB, free: 14.54 MB / 302.1 MB Notification: Performance of Categorize: time 1.516e-05/0.2349, allocations: 1.594 kB / 375 MB, free: 14.54 MB / 302.1 MB Notification: Performance of Solve: time 0.0003132/0.2352, allocations: 167.2 kB / 375.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0003524/0.2355, allocations: 481.6 kB / 375.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: ......... 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: ........... 32 (scalar:32, 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: ........... 51 (scalar:51, 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 0.0001211/0.2357, allocations: 37.55 kB / 375.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of SimCode: time 0.001584/0.2373, allocations: 1.671 MB / 377.3 MB, free: 13.36 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.