Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001226/0.001232, allocations: 117 kB / 17.76 MB, free: 5.324 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.001209/0.001209, allocations: 188.6 kB / 18.69 MB, free: 4.402 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.312/1.312, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.469e-05/2.47e-05, allocations: 3.266 kB / 328.5 MB, free: 3.332 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004579/0.004612, allocations: 3.918 MB / 332.4 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.006709, allocations: 1.353 MB / 333.8 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.006892, allocations: 11.94 kB / 333.8 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006319/0.00753, allocations: 246.8 kB / 334 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.0004636/0.008004, allocations: 254.3 kB / 334.3 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004992/0.008515, allocations: 263.5 kB / 334.5 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006866/0.009211, allocations: 0.7827 MB / 335.3 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/0.00947, allocations: 180.8 kB / 335.5 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003173/0.009794, allocations: 283 kB / 335.8 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002768/0.01008, allocations: 298.8 kB / 336.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.62e-05/0.01016, allocations: 56 kB / 336.1 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.01034, allocations: 91.98 kB / 336.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0006301/0.01098, allocations: 0.9234 MB / 337.1 MB, free: 10.65 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002889/0.01127, allocations: 0.5582 MB / 337.7 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.986e-05/0.01138, allocations: 99.69 kB / 337.8 MB, free: 9.988 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.465e-05/0.01144, allocations: 23.94 kB / 337.8 MB, free: 9.965 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.00196/0.0134, allocations: 2.455 MB / 340.3 MB, free: 7.391 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001099/0.01352, allocations: 95.84 kB / 340.4 MB, free: 7.297 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009258/0.01445, allocations: 1.108 MB / 341.5 MB, free: 6.16 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001038/0.01457, allocations: 111.8 kB / 341.6 MB, free: 6.051 MB / 286.1 MB Notification: Performance of Alias: time 0.002008/0.01658, allocations: 1.901 MB / 343.5 MB, free: 3.934 MB / 286.1 MB Notification: Performance of simplify2: time 7.685e-05/0.01667, allocations: 75.89 kB / 343.6 MB, free: 3.859 MB / 286.1 MB Notification: Performance of Events: time 0.0002577/0.01693, allocations: 210.1 kB / 343.8 MB, free: 3.652 MB / 286.1 MB Notification: Performance of Detect States: time 0.000331/0.01727, allocations: 311.9 kB / 344.1 MB, free: 3.336 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003709/0.01765, allocations: 390.2 kB / 344.4 MB, free: 2.91 MB / 286.1 MB Notification: Performance of Causalize: time 0.001828/0.01949, allocations: 2.006 MB / 346.5 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007472/0.02025, allocations: 0.8691 MB / 347.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of Inline: time 0.001551/0.02181, allocations: 1.668 MB / 349 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001009/0.02192, allocations: 95.55 kB / 349.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of Cleanup: time 6.336e-05/0.02199, allocations: 63.92 kB / 349.1 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.004223/0.02622, allocations: 4.86 MB / 354 MB, free: 9.383 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009415/0.02717, allocations: 1.305 MB / 355.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of Initialization: time 5.91e-07/0.02718, allocations: 0 / 355.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009363/0.02812, allocations: 1.352 MB / 356.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of Categorize: time 1.822e-05/0.02815, allocations: 3.938 kB / 356.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of Solve: time 0.0003113/0.02847, allocations: 198.4 kB / 356.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of Jacobian: time 3.256e-06/0.02848, allocations: 4 kB / 356.9 MB, free: 6.137 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.0001109/0.0286, allocations: 40.72 kB / 356.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of SimCode: time 0.002936/0.03154, allocations: 2.999 MB / 359.9 MB, free: 3.074 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.