Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001197/0.001197, allocations: 98.95 kB / 16.42 MB, free: 6.516 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.001221/0.001221, allocations: 192.2 kB / 17.35 MB, free: 5.758 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.335/1.335, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.927e-05/1.928e-05, allocations: 2.281 kB / 327.2 MB, free: 3.352 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.00315/0.003177, allocations: 2.693 MB / 329.9 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.004252, allocations: 0.7371 MB / 330.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.84e-05/0.004363, allocations: 8 kB / 330.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.004495, allocations: 43.56 kB / 330.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001483/0.004649, allocations: 87.25 kB / 330.8 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002628/0.004929, allocations: 95.75 kB / 330.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003797/0.005319, allocations: 430.5 kB / 331.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.005489, allocations: 76.72 kB / 331.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.005689, allocations: 151.5 kB / 331.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.005873, allocations: 163.4 kB / 331.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.709e-05/0.00593, allocations: 40 kB / 331.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.73e-05/0.005982, allocations: 32 kB / 331.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003356/0.006323, allocations: 490.8 kB / 332.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001452/0.006474, allocations: 283.7 kB / 332.5 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.286e-05/0.006534, allocations: 47.81 kB / 332.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.485e-05/0.006565, allocations: 8 kB / 332.5 MB, free: 13.97 MB / 286.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.001292/0.007861, allocations: 1.419 MB / 333.9 MB, free: 12.44 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002033/0.008075, allocations: 107 kB / 334.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0008605/0.00895, allocations: 0.7843 MB / 334.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of simplify1: time 9.092e-05/0.009053, allocations: 71.91 kB / 334.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of Alias: time 0.001252/0.01031, allocations: 1.041 MB / 335.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of simplify2: time 6.702e-05/0.0104, allocations: 63.86 kB / 336 MB, free: 10.23 MB / 286.1 MB Notification: Performance of Events: time 0.0002388/0.01064, allocations: 176.8 kB / 336.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002948/0.01094, allocations: 259.1 kB / 336.4 MB, free: 9.789 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002649/0.01122, allocations: 259.4 kB / 336.7 MB, free: 9.52 MB / 286.1 MB Notification: Performance of Causalize: time 0.001512/0.01274, allocations: 1.354 MB / 338 MB, free: 8.156 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006379/0.01339, allocations: 0.7171 MB / 338.8 MB, free: 7.41 MB / 286.1 MB Notification: Performance of Inline: time 0.001115/0.01451, allocations: 1.163 MB / 339.9 MB, free: 6.215 MB / 286.1 MB Notification: Performance of Partitioning: time 5.913e-05/0.01458, allocations: 50.38 kB / 340 MB, free: 6.156 MB / 286.1 MB Notification: Performance of Cleanup: time 5.49e-05/0.01464, allocations: 59.92 kB / 340 MB, free: 6.098 MB / 286.1 MB Notification: Performance of Causalize: time 0.001765/0.01641, allocations: 2.018 MB / 342 MB, free: 4.105 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005298/0.01695, allocations: 0.5705 MB / 342.6 MB, free: 3.438 MB / 286.1 MB Notification: Performance of Initialization: time 5.41e-07/0.01697, allocations: 0 / 342.6 MB, free: 3.438 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004026/0.01737, allocations: 0.5825 MB / 343.2 MB, free: 2.758 MB / 286.1 MB Notification: Performance of Categorize: time 9.889e-06/0.0174, allocations: 8.094 kB / 343.2 MB, free: 2.75 MB / 286.1 MB Notification: Performance of Solve: time 0.0002391/0.01764, allocations: 158.1 kB / 343.4 MB, free: 2.594 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0003835/0.01803, allocations: 471.7 kB / 343.8 MB, free: 2.094 MB / 286.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.0001122/0.01815, allocations: 38.11 kB / 343.9 MB, free: 2.062 MB / 286.1 MB Notification: Performance of SimCode: time 0.001192/0.01935, allocations: 1.666 MB / 345.5 MB, free: 388 kB / 286.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.