Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rectifier.thyristor_n1.off|rectifier.thyristor_n2.off|rectifier.thyristor_p1.off|rectifier.thyristor_p2.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rectifier.thyristor_n1.off|rectifier.thyristor_n2.off|rectifier.thyristor_p1.off|rectifier.thyristor_p2.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 110 kB / 17.75 MB, free: 5.344 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.001478/0.001478, allocations: 187.5 kB / 18.68 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.714e-05/2.715e-05, allocations: 2.281 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL): time 0.007348/0.007384, allocations: 4.977 MB / 357 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003352/0.01075, allocations: 1.442 MB / 358.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001033/0.0118, allocations: 19.88 kB / 358.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007293/0.01254, allocations: 142.7 kB / 358.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001353/0.01391, allocations: 218.2 kB / 358.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009905/0.01494, allocations: 311.5 kB / 359.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002013/0.01697, allocations: 1.291 MB / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009674/0.01795, allocations: 479 kB / 360.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007684/0.01873, allocations: 390.5 kB / 361.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004547/0.01919, allocations: 406.2 kB / 361.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.01933, allocations: 96 kB / 361.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001462/0.01948, allocations: 96 kB / 361.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.00104/0.02053, allocations: 1.329 MB / 363.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004703/0.02101, allocations: 0.816 MB / 364 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001856/0.0212, allocations: 155.5 kB / 364.1 MB, free: 7.035 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0002229/0.02143, allocations: 39.75 kB / 364.1 MB, free: 6.996 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: 169 (169) * Number of variables: 169 (168) Notification: Performance of Bindings: time 0.003553/0.02499, allocations: 3.827 MB / 368 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0003015/0.0253, allocations: 284.5 kB / 368.2 MB, free: 2.727 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001876/0.02718, allocations: 1.929 MB / 370.2 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001805/0.02737, allocations: 159.8 kB / 370.3 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of Alias: time 0.2115/0.2388, allocations: 3.668 MB / 374 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001759/0.2391, allocations: 102.4 kB / 374.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of Events: time 0.0004163/0.2395, allocations: 350.6 kB / 374.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006473/0.2401, allocations: 0.6253 MB / 375.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007057/0.2409, allocations: 0.727 MB / 375.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Causalize: time 0.00318/0.244, allocations: 2.895 MB / 378.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001397/0.2455, allocations: 1.53 MB / 380.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of Inline: time 0.002782/0.2483, allocations: 2.785 MB / 383 MB, free: 12.56 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002177/0.2485, allocations: 191.6 kB / 383.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003094/0.2488, allocations: 314.6 kB / 383.5 MB, free: 12.25 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_12 = rectifier.thyristor_p1.s < 0.0 or $PRE.rectifier.thyristor_p1.off and not rectifier.thyristor_p1.fire ($RES_EVT_210) slice: {}; [SCAL] (1) $SEV_11 = rectifier.thyristor_p2.s < 0.0 or $PRE.rectifier.thyristor_p2.off and not rectifier.thyristor_p2.fire ($RES_EVT_209) slice: {}; [SCAL] (1) $SEV_10 = rectifier.thyristor_n1.s < 0.0 or $PRE.rectifier.thyristor_n1.off and not rectifier.thyristor_p2.fire ($RES_EVT_208) slice: {}; [SCAL] (1) $SEV_9 = rectifier.thyristor_n2.s < 0.0 or $PRE.rectifier.thyristor_n2.off and not rectifier.thyristor_p1.fire ($RES_EVT_207) slice: {}; Notification: Performance of Causalize: time 0.01745/0.2663, allocations: 16.82 MB / 400.3 MB, free: 2.246 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009724/0.2673, allocations: 1.535 MB / 401.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of Initialization: time 1.362e-06/0.2673, allocations: 0 / 401.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006137/0.2679, allocations: 0.9009 MB / 402.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of Categorize: time 3.216e-05/0.2679, allocations: 6.953 kB / 402.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of Solve: time 0.001104/0.269, allocations: 0.5741 MB / 403.3 MB, free: 15.25 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001315/0.2704, allocations: 1.294 MB / 404.6 MB, free: 13.96 MB / 318.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: ............................. 4 (4) {meanVoltage.x, rootMeanSquareVoltage.mean.x, meanCurrent.x, inductor.i} * 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: ................. 44 (44) {rectifier.enableLogic.booleanReplicator.y, rectifier.enableLogic.internalEnable, rectifier.andCondition_p.u2, rectifier.andCondition_n.u2, rectifier.thyristor_p1.off, rectifier.thyristor_p1.fire, rectifier.thyristor_p2.off, rectifier.thyristor_p2.fire, rectifier.thyristor_n1.off, rectifier.thyristor_n2.off, 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, $SEV_14, $SEV_13, $SEV_12, $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_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: ........... 87 (scalar:74, array:13, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 171 (scalar:158, array:13, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 171 (scalar:158, array:13, 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: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 0.0001217/0.2705, allocations: 95.61 kB / 404.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of SimCode: time 0.003621/0.2741, allocations: 4.384 MB / 409.1 MB, free: 9.883 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.