Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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 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.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001317/0.001317, allocations: 107.4 kB / 16.42 MB, free: 6.484 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.001427/0.001427, 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.334/1.334, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.762e-05/2.762e-05, allocations: 2.281 kB / 327.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00489/0.004926, allocations: 3.916 MB / 331.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002518/0.007466, allocations: 1.357 MB / 332.5 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004337/0.007916, allocations: 11.94 kB / 332.5 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008086/0.008733, allocations: 242.8 kB / 332.7 MB, free: 13.78 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.000743/0.009487, allocations: 250.4 kB / 333 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006658/0.01016, allocations: 263.5 kB / 333.2 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008619/0.01104, allocations: 0.7905 MB / 334 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002827/0.01133, allocations: 172.8 kB / 334.2 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003239/0.01166, allocations: 275 kB / 334.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002862/0.01196, allocations: 298.8 kB / 334.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.257e-05/0.01204, allocations: 56 kB / 334.8 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001966/0.01225, allocations: 104 kB / 334.9 MB, free: 11.59 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0006134/0.01287, allocations: 0.9234 MB / 335.8 MB, free: 10.65 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003004/0.01318, allocations: 0.5504 MB / 336.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.01328, allocations: 99.69 kB / 336.5 MB, free: 9.996 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.627e-05/0.01337, allocations: 23.94 kB / 336.5 MB, free: 9.973 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: 98 (98) * Number of variables: 98 (98) Notification: Performance of Bindings: time 0.002247/0.01562, allocations: 2.463 MB / 338.9 MB, free: 7.391 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001225/0.01575, allocations: 103 kB / 339 MB, free: 7.293 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009858/0.01675, allocations: 1.1 MB / 340.1 MB, free: 6.164 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001169/0.01687, allocations: 111.8 kB / 340.3 MB, free: 6.055 MB / 286.1 MB Notification: Performance of Alias: time 0.002178/0.01906, allocations: 1.905 MB / 342.2 MB, free: 3.934 MB / 286.1 MB Notification: Performance of simplify2: time 7.593e-05/0.01914, allocations: 79.91 kB / 342.2 MB, free: 3.855 MB / 286.1 MB Notification: Performance of Events: time 0.0002839/0.01944, allocations: 202 kB / 342.4 MB, free: 3.656 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003716/0.01982, allocations: 320.6 kB / 342.7 MB, free: 3.328 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003945/0.02022, allocations: 390.2 kB / 343.1 MB, free: 2.902 MB / 286.1 MB Notification: Performance of Causalize: time 0.001867/0.02209, allocations: 2.006 MB / 345.1 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007956/0.0229, allocations: 0.8613 MB / 346 MB, free: 15.99 MB / 302.1 MB Notification: Performance of Inline: time 0.001616/0.02453, allocations: 1.664 MB / 347.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Partitioning: time 9.51e-05/0.02463, allocations: 95.55 kB / 347.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of Cleanup: time 6.757e-05/0.02471, allocations: 71.91 kB / 347.8 MB, free: 14.12 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) $SEV_9 = IdealGTOThyristor1.s < 0.0 or not IdealGTOThyristor1.fire ($RES_EVT_118) slice: {}; [SCAL] (1) $SEV_2 = IdealGTOThyristor2.s < 0.0 or not IdealGTOThyristor2.fire ($RES_EVT_111) slice: {}; Notification: Performance of Causalize: time 0.004327/0.02904, allocations: 4.866 MB / 352.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of Tearing: time 0.001011/0.03006, allocations: 1.297 MB / 354 MB, free: 7.883 MB / 302.1 MB Notification: Performance of Initialization: time 7.21e-07/0.03007, allocations: 0 / 354 MB, free: 7.883 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009507/0.03103, allocations: 1.352 MB / 355.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of Categorize: time 1.932e-05/0.03106, allocations: 3.938 kB / 355.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of Solve: time 0.0003143/0.03138, allocations: 206.5 kB / 355.5 MB, free: 6.133 MB / 302.1 MB Notification: Performance of Jacobian: time 2.965e-06/0.03139, allocations: 4 kB / 355.5 MB, free: 6.129 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: ........... 32 (scalar:32, 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: ........... 68 (scalar:66, 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.000107/0.0315, allocations: 38.83 kB / 355.6 MB, free: 6.102 MB / 302.1 MB Notification: Performance of SimCode: time 0.003276/0.03479, allocations: 2.999 MB / 358.6 MB, free: 3.07 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.