Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.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_3.2.3_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_3.2.3_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.001122/0.001122, allocations: 106.3 kB / 18.41 MB, free: 4.535 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.00098/0.00098, allocations: 192.3 kB / 19.35 MB, free: 3.609 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.572/1.572, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.682e-05/2.683e-05, allocations: 2.281 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL): time 0.00693/0.006966, allocations: 4.876 MB / 334.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003256/0.01024, allocations: 1.45 MB / 335.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009507/0.0112, allocations: 15.94 kB / 335.6 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006077/0.01182, allocations: 142.6 kB / 335.7 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009362/0.01277, allocations: 194.2 kB / 335.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008839/0.01369, allocations: 311.5 kB / 336.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001787/0.01549, allocations: 1.217 MB / 337.4 MB, free: 11.06 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008787/0.01638, allocations: 458.8 kB / 337.9 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006744/0.01707, allocations: 374.7 kB / 338.2 MB, free: 10.22 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006923/0.01777, allocations: 398.1 kB / 338.6 MB, free: 9.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002218/0.01801, allocations: 99.94 kB / 338.7 MB, free: 9.734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002299/0.01824, allocations: 92 kB / 338.8 MB, free: 9.645 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0009556/0.01921, allocations: 1.271 MB / 340.1 MB, free: 8.359 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004806/0.01969, allocations: 0.7774 MB / 340.8 MB, free: 7.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.01993, allocations: 147.6 kB / 341 MB, free: 7.426 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0002098/0.02014, allocations: 43.73 kB / 341 MB, free: 7.383 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: 162 (162) * Number of variables: 162 (161) Notification: Performance of Bindings: time 0.003418/0.02357, allocations: 3.75 MB / 344.8 MB, free: 3.477 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000233/0.02381, allocations: 187.8 kB / 345 MB, free: 3.285 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001786/0.02561, allocations: 1.859 MB / 346.8 MB, free: 1.387 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001981/0.02581, allocations: 159.8 kB / 347 MB, free: 1.23 MB / 286.1 MB Notification: Performance of Alias: time 0.003933/0.02975, allocations: 3.527 MB / 350.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001171/0.02989, allocations: 103.8 kB / 350.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of Events: time 0.0004253/0.03032, allocations: 334.7 kB / 350.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006552/0.03098, allocations: 0.5997 MB / 351.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007206/0.03171, allocations: 0.6837 MB / 352.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of Causalize: time 0.003151/0.03487, allocations: 2.774 MB / 355 MB, free: 8.73 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001626/0.03651, allocations: 1.472 MB / 356.5 MB, free: 7.227 MB / 302.1 MB Notification: Performance of Inline: time 0.00283/0.03935, allocations: 2.649 MB / 359.1 MB, free: 4.512 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002073/0.03957, allocations: 171.7 kB / 359.3 MB, free: 4.332 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002904/0.03987, allocations: 307.5 kB / 359.6 MB, free: 4.023 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_10 = rectifier.thyristor_p2.s < 0.0 or $PRE.rectifier.thyristor_p2.off and not rectifier.thyristor_p2.fire ($RES_EVT_200) slice: {}; [SCAL] (1) $SEV_9 = rectifier.thyristor_n1.s < 0.0 or $PRE.rectifier.thyristor_n1.off and not rectifier.thyristor_p2.fire ($RES_EVT_199) slice: {}; [SCAL] (1) $SEV_8 = rectifier.thyristor_n2.s < 0.0 or $PRE.rectifier.thyristor_n2.off and not rectifier.thyristor_p1.fire ($RES_EVT_198) slice: {}; [SCAL] (1) rectifier.thyristor_p1.off = rectifier.offStart_p1 ($RES_SRT_205) slice: {}; Notification: Performance of Causalize: time 0.01919/0.05906, allocations: 16 MB / 375.6 MB, free: 3.738 MB / 318.1 MB Notification: Performance of Tearing: time 0.001485/0.06057, allocations: 1.605 MB / 377.2 MB, free: 1.938 MB / 318.1 MB Notification: Performance of Initialization: time 1.653e-06/0.06059, allocations: 0 / 377.2 MB, free: 1.938 MB / 318.1 MB Notification: Performance of Tearing: time 0.0008254/0.06142, allocations: 0.8905 MB / 378.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of Categorize: time 3.532e-05/0.06147, allocations: 8 kB / 378.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of Solve: time 0.001033/0.0625, allocations: 0.5282 MB / 378.6 MB, free: 416 kB / 318.1 MB Notification: Performance of Jacobian: time 0.2269/0.2895, allocations: 1.241 MB / 379.9 MB, free: 41.86 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: ......... 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: ............................. 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, meanVoltage.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 43 (43) {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.negativeEqual.y, pulse2.twoPulse.fire_p, pulse2.twoPulse.fire_n, pulse2.fire_p, pulse2.fire_n, $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: ........... 82 (scalar:71, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 162 (scalar:151, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 162 (scalar:151, 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: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 0.0002169/0.2897, allocations: 90.05 kB / 379.9 MB, free: 41.84 MB / 318.1 MB Notification: Performance of SimCode: time 0.006484/0.2962, allocations: 4.195 MB / 384.1 MB, free: 40.4 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.