Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001287/0.001287, allocations: 106.3 kB / 18.35 MB, free: 4.863 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.001202/0.001202, allocations: 191.5 kB / 19.29 MB, free: 3.93 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.264/1.264, allocations: 205.1 MB / 225.2 MB, free: 12.28 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.114e-05/2.124e-05, allocations: 2.281 kB / 282.1 MB, free: 2.52 MB / 222.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003601/0.003638, allocations: 2.687 MB / 284.7 MB, free: 15.81 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.004792, allocations: 0.7485 MB / 285.5 MB, free: 15.05 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.004911, allocations: 4 kB / 285.5 MB, free: 15.05 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.005043, allocations: 39.58 kB / 285.5 MB, free: 15.01 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001391/0.005189, allocations: 79.27 kB / 285.6 MB, free: 14.93 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.005499, allocations: 111.7 kB / 285.7 MB, free: 14.82 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003728/0.005884, allocations: 426.4 kB / 286.1 MB, free: 14.4 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001763/0.006069, allocations: 76.7 kB / 286.2 MB, free: 14.32 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.006264, allocations: 151.5 kB / 286.4 MB, free: 14.18 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.006438, allocations: 167.4 kB / 286.5 MB, free: 14.01 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 5.265e-05/0.006498, allocations: 32 kB / 286.5 MB, free: 13.98 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.97e-05/0.006553, allocations: 43.88 kB / 286.6 MB, free: 13.94 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0003214/0.00688, allocations: 486.8 kB / 287.1 MB, free: 13.46 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001256/0.007013, allocations: 279.8 kB / 287.3 MB, free: 13.18 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 5.788e-05/0.007076, allocations: 51.81 kB / 287.4 MB, free: 13.13 MB / 238.1 MB Notification: Performance of FrontEnd: time 3.527e-05/0.007116, allocations: 8 kB / 287.4 MB, free: 13.12 MB / 238.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.001163/0.008284, allocations: 1.415 MB / 288.8 MB, free: 11.6 MB / 238.1 MB Notification: Performance of FunctionAlias: time 0.0001389/0.008431, allocations: 110.5 kB / 288.9 MB, free: 11.5 MB / 238.1 MB Notification: Performance of Early Inline: time 0.0006447/0.009084, allocations: 0.7805 MB / 289.7 MB, free: 10.69 MB / 238.1 MB Notification: Performance of simplify1: time 7.906e-05/0.009171, allocations: 79.88 kB / 289.8 MB, free: 10.61 MB / 238.1 MB Notification: Performance of Alias: time 0.001129/0.01031, allocations: 1.041 MB / 290.8 MB, free: 9.449 MB / 238.1 MB Notification: Performance of simplify2: time 5.962e-05/0.01038, allocations: 55.92 kB / 290.9 MB, free: 9.395 MB / 238.1 MB Notification: Performance of Events: time 0.0002145/0.0106, allocations: 160.2 kB / 291 MB, free: 9.238 MB / 238.1 MB Notification: Performance of Detect States: time 0.000282/0.01089, allocations: 278.7 kB / 291.3 MB, free: 8.949 MB / 238.1 MB Notification: Performance of Partitioning: time 0.0002555/0.01116, allocations: 259.5 kB / 291.6 MB, free: 8.68 MB / 238.1 MB Notification: Performance of Causalize: time 0.001295/0.01246, allocations: 1.359 MB / 292.9 MB, free: 7.309 MB / 238.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006799/0.01315, allocations: 0.7132 MB / 293.6 MB, free: 6.566 MB / 238.1 MB Notification: Performance of Inline: time 0.001029/0.01419, allocations: 1.134 MB / 294.8 MB, free: 5.398 MB / 238.1 MB Notification: Performance of Partitioning: time 6.003e-05/0.01426, allocations: 50.38 kB / 294.8 MB, free: 5.34 MB / 238.1 MB Notification: Performance of Cleanup: time 5.059e-05/0.01431, allocations: 51.94 kB / 294.9 MB, free: 5.289 MB / 238.1 MB Notification: Performance of Causalize: time 0.00174/0.01606, allocations: 2.022 MB / 296.9 MB, free: 3.297 MB / 238.1 MB Notification: Performance of Tearing: time 0.0005112/0.01658, allocations: 0.5666 MB / 297.5 MB, free: 2.633 MB / 238.1 MB Notification: Performance of Initialization: time 5.51e-07/0.0166, allocations: 7.969 kB / 297.5 MB, free: 2.625 MB / 238.1 MB Notification: Performance of Tearing: time 0.0004094/0.01701, allocations: 0.5785 MB / 298 MB, free: 1.949 MB / 238.1 MB Notification: Performance of Categorize: time 1.223e-05/0.01703, allocations: 0 / 298 MB, free: 1.949 MB / 238.1 MB Notification: Performance of Solve: time 0.0003051/0.01735, allocations: 166.3 kB / 298.2 MB, free: 1.785 MB / 238.1 MB Notification: Performance of Jacobian: time 0.0003882/0.01774, allocations: 471.7 kB / 298.7 MB, free: 1.289 MB / 238.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 0.000134/0.01788, allocations: 39.12 kB / 298.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of SimCode: time 0.001348/0.01924, allocations: 1.665 MB / 300.4 MB, free: 15.57 MB / 254.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.