Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001208/0.001208, allocations: 108.5 kB / 16.42 MB, free: 6.5 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.001141/0.001141, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.331/1.331, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.266e-05, allocations: 6.219 kB / 327.2 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.00386/0.003891, allocations: 2.708 MB / 329.9 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.005288, allocations: 0.7371 MB / 330.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.005456, allocations: 4 kB / 330.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001896/0.005652, allocations: 39.58 kB / 330.7 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.005834, allocations: 83.27 kB / 330.8 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.006228, allocations: 107.7 kB / 330.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005061/0.006762, allocations: 422.5 kB / 331.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.007007, allocations: 80.7 kB / 331.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002514/0.007266, allocations: 147.5 kB / 331.5 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.00753, allocations: 175.3 kB / 331.7 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.237e-05/0.007602, allocations: 36 kB / 331.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.609e-05/0.007664, allocations: 32 kB / 331.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004488/0.008118, allocations: 490.8 kB / 332.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001772/0.008304, allocations: 279.8 kB / 332.5 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.697e-05/0.008377, allocations: 47.81 kB / 332.5 MB, free: 13.96 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.575e-05/0.008418, allocations: 8 kB / 332.5 MB, free: 13.95 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.001465/0.009888, allocations: 1.415 MB / 334 MB, free: 12.43 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001679/0.01006, allocations: 107 kB / 334.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0008285/0.0109, allocations: 0.7805 MB / 334.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of simplify1: time 8.96e-05/0.011, allocations: 71.91 kB / 334.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of Alias: time 0.001356/0.01236, allocations: 1.049 MB / 336 MB, free: 10.27 MB / 286.1 MB Notification: Performance of simplify2: time 7.278e-05/0.01245, allocations: 59.91 kB / 336 MB, free: 10.21 MB / 286.1 MB Notification: Performance of Events: time 0.000236/0.01269, allocations: 176 kB / 336.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003334/0.01303, allocations: 261.7 kB / 336.4 MB, free: 9.773 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002863/0.01333, allocations: 251.5 kB / 336.7 MB, free: 9.512 MB / 286.1 MB Notification: Performance of Causalize: time 0.001363/0.0147, allocations: 1.362 MB / 338 MB, free: 8.141 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006186/0.01533, allocations: 0.7171 MB / 338.8 MB, free: 7.395 MB / 286.1 MB Notification: Performance of Inline: time 0.001067/0.0164, allocations: 1.161 MB / 339.9 MB, free: 6.203 MB / 286.1 MB Notification: Performance of Partitioning: time 6.562e-05/0.01648, allocations: 54.36 kB / 340 MB, free: 6.141 MB / 286.1 MB Notification: Performance of Cleanup: time 5.06e-05/0.01654, allocations: 59.86 kB / 340 MB, free: 6.082 MB / 286.1 MB Notification: Performance of Causalize: time 0.001795/0.01834, allocations: 2.012 MB / 342 MB, free: 4.098 MB / 286.1 MB Notification: Performance of Tearing: time 0.000531/0.01888, allocations: 0.5706 MB / 342.6 MB, free: 3.43 MB / 286.1 MB Notification: Performance of Initialization: time 5.31e-07/0.01889, allocations: 0 / 342.6 MB, free: 3.43 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004279/0.01933, allocations: 0.5863 MB / 343.2 MB, free: 2.746 MB / 286.1 MB Notification: Performance of Categorize: time 1.456e-05/0.01935, allocations: 4.031 kB / 343.2 MB, free: 2.742 MB / 286.1 MB Notification: Performance of Solve: time 0.0002518/0.01961, allocations: 166.1 kB / 343.4 MB, free: 2.578 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0003745/0.01999, allocations: 467.7 kB / 343.8 MB, free: 2.082 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.0001129/0.02011, allocations: 40.92 kB / 343.9 MB, free: 2.047 MB / 286.1 MB Notification: Performance of SimCode: time 0.001271/0.02139, allocations: 1.655 MB / 345.5 MB, free: 384 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.