Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001221/0.001221, allocations: 107.8 kB / 18.47 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 213 kB / 19.42 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.478e-05/2.478e-05, allocations: 2.281 kB / 359.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005433/0.005466, allocations: 3.995 MB / 363.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003025/0.008506, allocations: 1.613 MB / 365 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002519/0.008775, allocations: 11.94 kB / 365 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008576/0.009639, allocations: 250.8 kB / 365.2 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006663/0.01032, allocations: 298.1 kB / 365.5 MB, free: 6.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006844/0.01101, allocations: 267.4 kB / 365.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008146/0.01184, allocations: 0.802 MB / 366.6 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003063/0.01215, allocations: 172.8 kB / 366.7 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003906/0.01255, allocations: 294.9 kB / 367 MB, free: 5.234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003382/0.0129, allocations: 302.8 kB / 367.3 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.067e-05/0.01298, allocations: 52 kB / 367.4 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.0132, allocations: 103.9 kB / 367.5 MB, free: 4.785 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0007941/0.014, allocations: 0.9312 MB / 368.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.000339/0.01435, allocations: 0.5659 MB / 369 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.01447, allocations: 107.6 kB / 369.1 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.689e-05/0.01457, allocations: 23.94 kB / 369.1 MB, free: 3.141 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.002732/0.01731, allocations: 2.486 MB / 371.6 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001512/0.01747, allocations: 107.1 kB / 371.7 MB, free: 444 kB / 302.1 MB Notification: Performance of Early Inline: time 0.2117/0.2292, allocations: 1.273 MB / 373 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001746/0.2294, allocations: 108 kB / 373.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of Alias: time 0.002712/0.2321, allocations: 2.127 MB / 375.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simplify2: time 9.26e-05/0.2322, allocations: 73.39 kB / 375.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of Events: time 0.000315/0.2326, allocations: 208.1 kB / 375.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of Detect States: time 0.000364/0.2329, allocations: 321.2 kB / 375.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003716/0.2333, allocations: 386.3 kB / 376.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Causalize: time 0.00158/0.2349, allocations: 1.444 MB / 377.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008643/0.2358, allocations: 0.8599 MB / 378.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of Inline: time 0.001916/0.2377, allocations: 1.899 MB / 380.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of Partitioning: time 9.689e-05/0.2378, allocations: 87.81 kB / 380.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Cleanup: time 7.452e-05/0.2379, allocations: 70.72 kB / 380.5 MB, free: 10.73 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_124) slice: {}; [SCAL] (1) IdealGTOThyristor1.off = $START.IdealGTOThyristor1.off ($RES_SRT_122) slice: {}; Notification: Performance of Causalize: time 0.005103/0.243, allocations: 4.221 MB / 384.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009461/0.244, allocations: 1.351 MB / 386.1 MB, free: 8.09 MB / 302.1 MB Notification: Performance of Initialization: time 2.395e-06/0.244, allocations: 1.188 kB / 386.1 MB, free: 8.09 MB / 302.1 MB Notification: Performance of Tearing: time 0.0008707/0.2449, allocations: 1.351 MB / 387.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of Categorize: time 2.099e-05/0.2449, allocations: 5.891 kB / 387.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of Solve: time 0.0003723/0.2453, allocations: 197 kB / 387.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of Jacobian: time 4.589e-06/0.2453, allocations: 3.984 kB / 387.6 MB, free: 6.918 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: ........... 64 (scalar:62, 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.0001292/0.2454, allocations: 52.98 kB / 387.7 MB, free: 6.898 MB / 302.1 MB Notification: Performance of SimCode: time 0.003638/0.249, allocations: 3.024 MB / 390.7 MB, free: 5.32 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.