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_R.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 109.5 kB / 17.75 MB, free: 5.348 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.0012/0.0012, allocations: 184.2 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.204/1.204, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.098e-05/2.099e-05, allocations: 6.219 kB / 352 MB, free: 3.199 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R): time 0.005993/0.006024, allocations: 4.875 MB / 356.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002771/0.008814, allocations: 1.418 MB / 358.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006874/0.009514, allocations: 19.94 kB / 358.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003714/0.009895, allocations: 134.7 kB / 358.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005393/0.01044, allocations: 202.2 kB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005831/0.01106, allocations: 315.5 kB / 358.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.01217, allocations: 1.255 MB / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005907/0.01277, allocations: 474.7 kB / 360.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003527/0.01313, allocations: 370.6 kB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000353/0.0135, allocations: 398.2 kB / 361.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.01362, allocations: 96 kB / 361.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.01375, allocations: 92 kB / 361.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008301/0.01459, allocations: 1.286 MB / 362.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004095/0.01501, allocations: 0.8007 MB / 363.7 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.01515, allocations: 147.6 kB / 363.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001455/0.0153, allocations: 39.8 kB / 363.9 MB, free: 7.227 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: 163 (163) * Number of variables: 163 (162) Notification: Performance of Bindings: time 0.003076/0.01838, allocations: 3.812 MB / 367.7 MB, free: 3.258 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002002/0.01859, allocations: 183.8 kB / 367.9 MB, free: 3.07 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001624/0.02022, allocations: 1.89 MB / 369.8 MB, free: 1.141 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001561/0.02038, allocations: 155.8 kB / 369.9 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of Alias: time 0.1615/0.1819, allocations: 3.511 MB / 373.4 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001465/0.1821, allocations: 105.4 kB / 373.5 MB, free: 16.04 MB / 302.1 MB Notification: Performance of Events: time 0.0004076/0.1825, allocations: 354.3 kB / 373.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005453/0.183, allocations: 0.6076 MB / 374.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0005997/0.1836, allocations: 0.7094 MB / 375.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Causalize: time 0.002838/0.1865, allocations: 2.89 MB / 378.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001264/0.1878, allocations: 1.496 MB / 379.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Inline: time 0.002351/0.1901, allocations: 2.75 MB / 382.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001753/0.1903, allocations: 185.1 kB / 382.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002529/0.1906, allocations: 317.1 kB / 382.8 MB, free: 12.73 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_204) 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_203) 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_202) 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_201) slice: {}; Notification: Performance of Causalize: time 0.01587/0.2064, allocations: 16.51 MB / 399.3 MB, free: 3.258 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009449/0.2074, allocations: 1.371 MB / 400.7 MB, free: 1.938 MB / 302.1 MB Notification: Performance of Initialization: time 9.82e-07/0.2074, allocations: 3.469 kB / 400.7 MB, free: 1.938 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006094/0.208, allocations: 0.8067 MB / 401.5 MB, free: 1.172 MB / 302.1 MB Notification: Performance of Categorize: time 3.075e-05/0.2081, allocations: 11.92 kB / 401.5 MB, free: 1.16 MB / 302.1 MB Notification: Performance of Solve: time 0.0007681/0.2088, allocations: 0.5398 MB / 402.1 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of Jacobian: time 0.001484/0.2103, allocations: 1.534 MB / 403.6 MB, free: 15.18 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: ............................. 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: ................. 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: ........... 81 (scalar:68, 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 164 (scalar:151, 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 164 (scalar:151, 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: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 8.504e-05/0.2104, allocations: 92.61 kB / 403.7 MB, free: 15.15 MB / 318.1 MB Notification: Performance of SimCode: time 0.003393/0.2138, allocations: 4.392 MB / 408.1 MB, free: 11.18 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.