Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001276/0.001276, allocations: 105.8 kB / 16.42 MB, free: 6.465 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.001183/0.001183, allocations: 183.2 kB / 17.36 MB, free: 5.699 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.393/1.393, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.672e-05/2.673e-05, allocations: 2.281 kB / 327.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005376/0.005412, allocations: 3.928 MB / 331.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002714/0.008145, allocations: 1.349 MB / 332.5 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004641/0.008622, allocations: 11.94 kB / 332.5 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000841/0.009471, allocations: 246.8 kB / 332.7 MB, free: 13.77 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.0007954/0.01028, allocations: 250.3 kB / 333 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000728/0.01102, allocations: 263.5 kB / 333.2 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009625/0.01199, allocations: 0.7865 MB / 334 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003082/0.01231, allocations: 172.8 kB / 334.2 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004722/0.01279, allocations: 279 kB / 334.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000394/0.01319, allocations: 298.8 kB / 334.7 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.01331, allocations: 56 kB / 334.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002441/0.01356, allocations: 99.91 kB / 334.9 MB, free: 11.58 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0006838/0.01425, allocations: 0.9195 MB / 335.8 MB, free: 10.65 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000379/0.01464, allocations: 0.5543 MB / 336.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.01482, allocations: 99.69 kB / 336.5 MB, free: 9.988 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.66e-05/0.01491, allocations: 27.88 kB / 336.5 MB, free: 9.961 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.002361/0.01728, allocations: 2.455 MB / 338.9 MB, free: 7.387 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001902/0.01748, allocations: 107 kB / 339 MB, free: 7.285 MB / 286.1 MB Notification: Performance of Early Inline: time 0.00109/0.01858, allocations: 1.097 MB / 340.1 MB, free: 6.16 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001651/0.01875, allocations: 107.9 kB / 340.2 MB, free: 6.055 MB / 286.1 MB Notification: Performance of Alias: time 0.002276/0.02103, allocations: 1.909 MB / 342.2 MB, free: 3.93 MB / 286.1 MB Notification: Performance of simplify2: time 0.0001247/0.02117, allocations: 75.91 kB / 342.2 MB, free: 3.855 MB / 286.1 MB Notification: Performance of Events: time 0.0003164/0.0215, allocations: 210.1 kB / 342.4 MB, free: 3.648 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003746/0.02188, allocations: 320.5 kB / 342.7 MB, free: 3.32 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004525/0.02234, allocations: 390.2 kB / 343.1 MB, free: 2.895 MB / 286.1 MB Notification: Performance of Causalize: time 0.001967/0.02432, allocations: 2.002 MB / 345.1 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008236/0.02515, allocations: 0.8651 MB / 346 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Inline: time 0.001852/0.02701, allocations: 1.66 MB / 347.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001133/0.02714, allocations: 99.48 kB / 347.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of Cleanup: time 0.000121/0.02727, allocations: 67.91 kB / 347.8 MB, free: 14.11 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.004775/0.03205, allocations: 4.867 MB / 352.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of Tearing: time 0.001051/0.03311, allocations: 1.301 MB / 354 MB, free: 7.875 MB / 302.1 MB Notification: Performance of Initialization: time 7.71e-07/0.03313, allocations: 0 / 354 MB, free: 7.875 MB / 302.1 MB Notification: Performance of Tearing: time 0.001078/0.03421, allocations: 1.348 MB / 355.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of Categorize: time 2.531e-05/0.03425, allocations: 7.922 kB / 355.3 MB, free: 6.324 MB / 302.1 MB Notification: Performance of Solve: time 0.0003548/0.03461, allocations: 211.3 kB / 355.6 MB, free: 6.121 MB / 302.1 MB Notification: Performance of Jacobian: time 3.376e-06/0.03462, allocations: 4 kB / 355.6 MB, free: 6.117 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.000156/0.03478, allocations: 34.84 kB / 355.6 MB, free: 6.094 MB / 302.1 MB Notification: Performance of SimCode: time 0.003741/0.03853, allocations: 2.99 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.