Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.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.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 109.9 kB / 16.42 MB, free: 6.031 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.000988/0.000988, allocations: 193.1 kB / 17.35 MB, free: 5.625 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.512/1.512, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.245e-05/2.245e-05, allocations: 3.547 kB / 327.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic): time 0.004439/0.004469, allocations: 3.621 MB / 330.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.00631, allocations: 1.162 MB / 332 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.006525, allocations: 11.94 kB / 332 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002205/0.006751, allocations: 79.17 kB / 332.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002981/0.007063, allocations: 122.9 kB / 332.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.00747, allocations: 219.6 kB / 332.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007409/0.008219, allocations: 0.7796 MB / 333.2 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004086/0.008637, allocations: 295.1 kB / 333.5 MB, free: 12.97 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.008897, allocations: 235.1 kB / 333.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/0.009144, allocations: 235 kB / 334 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.04e-05/0.009221, allocations: 59.94 kB / 334 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.484e-05/0.009302, allocations: 52 kB / 334.1 MB, free: 12.4 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005123/0.009819, allocations: 0.788 MB / 334.9 MB, free: 11.61 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002448/0.01007, allocations: 488.7 kB / 335.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.463e-05/0.01017, allocations: 95.69 kB / 335.4 MB, free: 11.03 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.886e-05/0.01024, allocations: 19.88 kB / 335.4 MB, free: 11.01 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: 97 (97) * Number of variables: 97 (96) Notification: Performance of Bindings: time 0.001907/0.01215, allocations: 2.348 MB / 337.8 MB, free: 8.543 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001475/0.0123, allocations: 118.9 kB / 337.9 MB, free: 8.43 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009889/0.0133, allocations: 1.132 MB / 339 MB, free: 7.27 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001168/0.01342, allocations: 103.8 kB / 339.1 MB, free: 7.168 MB / 286.1 MB Notification: Performance of Alias: time 0.001882/0.01531, allocations: 1.818 MB / 341 MB, free: 5.145 MB / 286.1 MB Notification: Performance of simplify2: time 6.469e-05/0.01539, allocations: 67.83 kB / 341 MB, free: 5.078 MB / 286.1 MB Notification: Performance of Events: time 0.0003226/0.01572, allocations: 278.2 kB / 341.3 MB, free: 4.805 MB / 286.1 MB Notification: Performance of Detect States: time 0.000463/0.01619, allocations: 448.6 kB / 341.7 MB, free: 4.352 MB / 286.1 MB Notification: Performance of Partitioning: time 0.000488/0.01668, allocations: 488.3 kB / 342.2 MB, free: 3.801 MB / 286.1 MB Notification: Performance of Causalize: time 0.00254/0.01923, allocations: 2.596 MB / 344.8 MB, free: 1.168 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.001008/0.02025, allocations: 1.01 MB / 345.8 MB, free: 132 kB / 286.1 MB Notification: Performance of Inline: time 0.001816/0.02207, allocations: 1.661 MB / 347.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001336/0.02222, allocations: 115.5 kB / 347.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001967/0.02242, allocations: 203.6 kB / 347.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of Causalize: time 0.009629/0.03206, allocations: 10.66 MB / 358.5 MB, free: 3.816 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006331/0.03272, allocations: 0.7227 MB / 359.2 MB, free: 2.996 MB / 302.1 MB Notification: Performance of Initialization: time 1.482e-06/0.03274, allocations: 0.6562 kB / 359.2 MB, free: 2.996 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002866/0.03303, allocations: 362.1 kB / 359.5 MB, free: 2.594 MB / 302.1 MB Notification: Performance of Categorize: time 2.538e-05/0.03306, allocations: 11.92 kB / 359.5 MB, free: 2.582 MB / 302.1 MB Notification: Performance of Solve: time 0.0005822/0.03365, allocations: 356 kB / 359.9 MB, free: 2.23 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0007531/0.03441, allocations: 0.7904 MB / 360.7 MB, free: 1.398 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: ......... 8 * 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, meanVoltage.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 31 (31) {pulse2.twoPulse.positiveThreshold.y, pulse2.twoPulse.negativeThreshold.y, pulse2.twoPulse.timerPositive.u, pulse2.twoPulse.timerNegative.u, pulse2.twoPulse.greaterPositive.y, pulse2.twoPulse.negativeEqual.y, pulse2.twoPulse.fire_p, pulse2.twoPulse.fire_n, pulse2.fire_p, pulse2.fire_n, idealthyristor.off, $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: ........... 62 (scalar:53, array:9, 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: ........... 107 (scalar:98, array:9, 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: ........... 107 (scalar:98, array:9, 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.0001753/0.03459, allocations: 85.34 kB / 360.8 MB, free: 1.324 MB / 302.1 MB Notification: Performance of SimCode: time 0.002441/0.03704, allocations: 2.794 MB / 363.6 MB, free: 14.47 MB / 318.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.