Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001288, allocations: 119.5 kB / 17.75 MB, free: 5.172 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.001211/0.001211, allocations: 184.7 kB / 18.68 MB, free: 4.25 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.319/1.319, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.946e-05/1.947e-05, allocations: 2.281 kB / 351.9 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004525/0.004552, allocations: 3.942 MB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002219/0.006785, allocations: 1.437 MB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000211/0.007007, allocations: 7.938 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007193/0.007735, allocations: 251.4 kB / 357.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004891/0.008234, allocations: 252.4 kB / 357.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006005/0.008862, allocations: 298.2 kB / 358.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007097/0.009581, allocations: 0.7827 MB / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.009867, allocations: 180.8 kB / 359.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002899/0.01017, allocations: 279 kB / 359.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000307/0.01048, allocations: 306.7 kB / 359.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.161e-05/0.01056, allocations: 52 kB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001933/0.01076, allocations: 95.97 kB / 359.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0006276/0.0114, allocations: 0.9235 MB / 360.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003099/0.01172, allocations: 0.5504 MB / 361.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.01183, allocations: 99.69 kB / 361.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.552e-05/0.01191, allocations: 31.92 kB / 361.4 MB, free: 9.77 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: 98 (98) * Number of variables: 98 (98) Notification: Performance of Bindings: time 0.002062/0.01398, allocations: 2.463 MB / 363.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001405/0.01412, allocations: 112.4 kB / 364 MB, free: 7.074 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0009548/0.01509, allocations: 1.104 MB / 365.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001038/0.0152, allocations: 103.9 kB / 365.2 MB, free: 5.84 MB / 302.1 MB Notification: Performance of Alias: time 0.002265/0.01747, allocations: 2.136 MB / 367.3 MB, free: 3.484 MB / 302.1 MB Notification: Performance of simplify2: time 7.206e-05/0.01755, allocations: 79.84 kB / 367.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of Events: time 0.0002599/0.01782, allocations: 194.2 kB / 367.6 MB, free: 3.219 MB / 302.1 MB Notification: Performance of Detect States: time 0.000323/0.01815, allocations: 339.2 kB / 367.9 MB, free: 2.875 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003725/0.01854, allocations: 382.2 kB / 368.3 MB, free: 2.457 MB / 302.1 MB Notification: Performance of Causalize: time 0.001581/0.02013, allocations: 1.465 MB / 369.7 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007313/0.02087, allocations: 0.8807 MB / 370.6 MB, free: 32 kB / 302.1 MB Notification: Performance of Inline: time 0.2132/0.2341, allocations: 1.653 MB / 372.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001442/0.2343, allocations: 91.22 kB / 372.4 MB, free: 18 MB / 302.1 MB Notification: Performance of Cleanup: time 9.691e-05/0.2344, allocations: 74.91 kB / 372.4 MB, free: 17.99 MB / 302.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) IdealGTOThyristor2.off = $START.IdealGTOThyristor2.off ($RES_SRT_125) slice: {}; [SCAL] (1) IdealGTOThyristor1.off = $START.IdealGTOThyristor1.off ($RES_SRT_123) slice: {}; Notification: Performance of Causalize: time 0.005369/0.2397, allocations: 4.227 MB / 376.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of Tearing: time 0.001016/0.2408, allocations: 1.359 MB / 378 MB, free: 16.25 MB / 302.1 MB Notification: Performance of Initialization: time 1.293e-06/0.2408, allocations: 0 / 378 MB, free: 16.25 MB / 302.1 MB Notification: Performance of Tearing: time 0.0008937/0.2417, allocations: 1.348 MB / 379.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of Categorize: time 2.606e-05/0.2417, allocations: 8.906 kB / 379.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of Solve: time 0.0003964/0.2421, allocations: 200 kB / 379.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of Jacobian: time 2.795e-06/0.2421, allocations: 0 / 379.6 MB, free: 15.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: ............... 0 * Number of algebraic event partitions: ......... 6 * 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: ............................. 0 (0) {} * Number of discrete states: .................... 3 (3) {booleanPulse.pulseStart, booleanStep1.combiTimeTable.nextTimeEvent, booleanStep1.combiTimeTable.nextTimeEventScaled} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 21 (21) {IdealThyristor1.off, IdealGTOThyristor1.off, IdealGTOThyristor1.fire, IdealThyristor2.off, IdealGTOThyristor2.off, IdealGTOThyristor2.fire, $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_2, $TEV_1, $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: ............ 3 (algorithm:0, when:3, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 4 (linear: 0, nonlinear:4) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 65 (scalar:63, array:1, record:1) * Number of multi strong components: ............ 2 (algorithm:2, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 4 (linear: 0, nonlinear:4) Notification: Performance of backend: time 0.00013/0.2423, allocations: 59.02 kB / 379.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of SimCode: time 0.003612/0.2459, allocations: 2.991 MB / 382.6 MB, free: 14 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.