Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001144/0.001144, allocations: 113.3 kB / 17.75 MB, free: 5.305 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.001184/0.001184, allocations: 184.3 kB / 18.68 MB, free: 4.387 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.27/1.27, allocations: 205.1 MB / 224.6 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.357e-05/2.358e-05, allocations: 9.031 kB / 328.6 MB, free: 3.281 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic): time 0.004519/0.004554, allocations: 3.624 MB / 332.2 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.006335, allocations: 1.154 MB / 333.3 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001928/0.00654, allocations: 15.94 kB / 333.3 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002176/0.006764, allocations: 83.22 kB / 333.4 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003238/0.007105, allocations: 118.9 kB / 333.5 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004125/0.007526, allocations: 219.6 kB / 333.8 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007486/0.008285, allocations: 0.7835 MB / 334.5 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004338/0.008729, allocations: 303.1 kB / 334.8 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002568/0.008994, allocations: 231.1 kB / 335.1 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.009257, allocations: 227 kB / 335.3 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.723e-05/0.009352, allocations: 59.94 kB / 335.3 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.324e-05/0.009431, allocations: 56 kB / 335.4 MB, free: 12.39 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005285/0.009964, allocations: 0.7764 MB / 336.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000263/0.01023, allocations: 496.6 kB / 336.7 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.703e-05/0.01034, allocations: 91.69 kB / 336.8 MB, free: 11.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.509e-05/0.01041, allocations: 23.88 kB / 336.8 MB, free: 11 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.002025/0.01244, allocations: 2.344 MB / 339.1 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000146/0.01259, allocations: 126.8 kB / 339.2 MB, free: 8.418 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001011/0.01361, allocations: 1.136 MB / 340.4 MB, free: 7.254 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001238/0.01374, allocations: 99.86 kB / 340.5 MB, free: 7.156 MB / 286.1 MB Notification: Performance of Alias: time 0.001927/0.01568, allocations: 1.815 MB / 342.3 MB, free: 5.137 MB / 286.1 MB Notification: Performance of simplify2: time 6.658e-05/0.01576, allocations: 67.91 kB / 342.4 MB, free: 5.07 MB / 286.1 MB Notification: Performance of Events: time 0.0003181/0.01608, allocations: 278.2 kB / 342.6 MB, free: 4.797 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004648/0.01656, allocations: 448.6 kB / 343.1 MB, free: 4.344 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0005151/0.01708, allocations: 484.3 kB / 343.5 MB, free: 3.797 MB / 286.1 MB Notification: Performance of Causalize: time 0.00258/0.01967, allocations: 2.594 MB / 346.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009298/0.02061, allocations: 1.014 MB / 347.1 MB, free: 124 kB / 286.1 MB Notification: Performance of Inline: time 0.001615/0.02223, allocations: 1.661 MB / 348.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001311/0.02237, allocations: 119.5 kB / 348.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001872/0.02257, allocations: 199.6 kB / 349.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of Causalize: time 0.009498/0.03207, allocations: 10.65 MB / 359.8 MB, free: 3.816 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006301/0.03272, allocations: 0.7227 MB / 360.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of Initialization: time 9.52e-07/0.03273, allocations: 192 / 360.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of Tearing: time 0.000263/0.033, allocations: 370.1 kB / 360.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of Categorize: time 1.985e-05/0.03303, allocations: 7.875 kB / 360.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of Solve: time 0.0005551/0.03359, allocations: 364 kB / 361.2 MB, free: 2.219 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0007465/0.03434, allocations: 0.7826 MB / 362 MB, free: 1.395 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.0001756/0.03453, allocations: 84.94 kB / 362.1 MB, free: 1.32 MB / 302.1 MB Notification: Performance of SimCode: time 0.002358/0.03689, allocations: 2.802 MB / 364.9 MB, free: 14.46 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.