Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.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.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|idealthyristor.off|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|idealthyristor.off|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001309, allocations: 112.3 kB / 18.47 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 210.3 kB / 19.42 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.432e-05/2.433e-05, allocations: 2.281 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic): time 0.004763/0.004796, allocations: 3.756 MB / 363.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002281/0.007097, allocations: 1.212 MB / 364.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002667/0.007376, allocations: 11.94 kB / 364.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002549/0.007638, allocations: 95.09 kB / 364.5 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003592/0.008025, allocations: 122.9 kB / 364.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004959/0.00853, allocations: 235.6 kB / 364.8 MB, free: 7.449 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008272/0.009366, allocations: 0.873 MB / 365.7 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004542/0.00983, allocations: 299.8 kB / 366 MB, free: 6.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003641/0.0102, allocations: 259.2 kB / 366.2 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003028/0.01051, allocations: 262.8 kB / 366.5 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.071e-05/0.01061, allocations: 64 kB / 366.6 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.01073, allocations: 64 kB / 366.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0007007/0.01143, allocations: 0.8458 MB / 367.5 MB, free: 4.785 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003548/0.0118, allocations: 0.539 MB / 368 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.01192, allocations: 91.69 kB / 368.1 MB, free: 4.148 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001367/0.01207, allocations: 27.81 kB / 368.1 MB, free: 4.121 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: 104 (104) * Number of variables: 104 (103) Notification: Performance of Bindings: time 0.00248/0.01455, allocations: 2.558 MB / 370.7 MB, free: 1.445 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001371/0.0147, allocations: 115.8 kB / 370.8 MB, free: 1.332 MB / 302.1 MB Notification: Performance of Early Inline: time 0.2101/0.2248, allocations: 1.382 MB / 372.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simplify1: time 0.000311/0.2251, allocations: 101.7 kB / 372.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of Alias: time 0.00278/0.2279, allocations: 2.151 MB / 374.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001125/0.228, allocations: 75.03 kB / 374.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of Events: time 0.0003741/0.2284, allocations: 289.1 kB / 374.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006783/0.2291, allocations: 471.3 kB / 375.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0005693/0.2297, allocations: 0.5145 MB / 375.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of Causalize: time 0.002377/0.2321, allocations: 2.078 MB / 377.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001018/0.2331, allocations: 1.077 MB / 378.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Inline: time 0.001977/0.2351, allocations: 2.048 MB / 381 MB, free: 10.71 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001292/0.2352, allocations: 121.1 kB / 381.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001911/0.2354, allocations: 214.5 kB / 381.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of Causalize: time 0.01157/0.247, allocations: 10.08 MB / 391.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005423/0.2476, allocations: 0.7128 MB / 392.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of Initialization: time 1.273e-06/0.2476, allocations: 0 / 392.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002308/0.2478, allocations: 376.8 kB / 392.4 MB, free: 6.137 MB / 302.1 MB Notification: Performance of Categorize: time 2.897e-05/0.2478, allocations: 3.344 kB / 392.4 MB, free: 6.137 MB / 302.1 MB Notification: Performance of Solve: time 0.0007949/0.2486, allocations: 432.1 kB / 392.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0006426/0.2493, allocations: 0.8337 MB / 393.7 MB, free: 5.504 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: ............... 1 * Number of algebraic event partitions: ......... 9 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 3 (3) {meanVoltage.x, rootMeanSquareVoltage.mean.x, meanCurrent.x} * Number of discrete states: .................... 5 (5) {pulse2.twoPulse.timerNegative.entryTime, pulse2.twoPulse.timerPositive.entryTime, meanCurrent.y, rootMeanSquareVoltage.mean.y_last, meanVoltage.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 32 (32) {pulse2.twoPulse.positiveThreshold.y, pulse2.twoPulse.negativeThreshold.y, pulse2.twoPulse.timerPositive.u, pulse2.twoPulse.timerNegative.u, pulse2.twoPulse.greaterPositive.y, pulse2.twoPulse.greaterNegative.y, pulse2.twoPulse.fire_p, pulse2.twoPulse.fire_n, pulse2.fire_p, pulse2.fire_n, idealthyristor.off, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_10, $TEV_9, $TEV_8, $TEV_7, $TEV_6, $TEV_5, $TEV_4, $TEV_3, $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: ........... 66 (scalar:55, array:11, record:0) * Number of multi strong components: ............ 5 (algorithm:0, when:5, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 114 (scalar:103, array:11, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 114 (scalar:103, array:11, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 0.0001576/0.2495, allocations: 82.3 kB / 393.8 MB, free: 5.469 MB / 302.1 MB Notification: Performance of SimCode: time 0.002473/0.2519, allocations: 3.025 MB / 396.8 MB, free: 3.758 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.