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_RLV.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_RLV,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_RLV") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,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_RLV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.001311, allocations: 106.3 kB / 18.41 MB, free: 4.668 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.001221/0.001221, allocations: 192.3 kB / 19.35 MB, free: 3.742 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.567/1.567, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.922e-05/2.922e-05, allocations: 2.5 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV): time 0.006642/0.006679, allocations: 4.984 MB / 334.2 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002672/0.009366, allocations: 1.47 MB / 335.7 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003534/0.009732, allocations: 19.94 kB / 335.7 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003761/0.01011, allocations: 134.6 kB / 335.8 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005331/0.01066, allocations: 214.2 kB / 336 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000582/0.01127, allocations: 311.5 kB / 336.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00128/0.01255, allocations: 1.236 MB / 337.6 MB, free: 10.92 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006697/0.01323, allocations: 479 kB / 338 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003891/0.01364, allocations: 390.6 kB / 338.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000394/0.01404, allocations: 398.2 kB / 338.8 MB, free: 9.656 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.01416, allocations: 92 kB / 338.9 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.01429, allocations: 96 kB / 339 MB, free: 9.473 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0008762/0.01517, allocations: 1.309 MB / 340.3 MB, free: 8.148 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004674/0.01565, allocations: 0.8122 MB / 341.1 MB, free: 7.324 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.0158, allocations: 147.6 kB / 341.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001486/0.01596, allocations: 47.73 kB / 341.3 MB, free: 7.133 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: 168 (168) * Number of variables: 168 (167) Notification: Performance of Bindings: time 0.0034/0.01936, allocations: 3.851 MB / 345.2 MB, free: 3.117 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000215/0.01959, allocations: 195 kB / 345.3 MB, free: 2.93 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001863/0.02146, allocations: 1.91 MB / 347.3 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001725/0.02164, allocations: 155.8 kB / 347.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of Alias: time 0.004492/0.02614, allocations: 3.682 MB / 351.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001246/0.02628, allocations: 107.8 kB / 351.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of Events: time 0.0004406/0.02673, allocations: 350.6 kB / 351.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of Detect States: time 0.000655/0.02739, allocations: 0.5964 MB / 352.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007628/0.02816, allocations: 0.6877 MB / 352.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Causalize: time 0.003272/0.03144, allocations: 2.794 MB / 355.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001473/0.03294, allocations: 1.472 MB / 357.1 MB, free: 6.609 MB / 302.1 MB Notification: Performance of Inline: time 0.002889/0.03584, allocations: 2.684 MB / 359.8 MB, free: 3.855 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002144/0.03606, allocations: 175.6 kB / 359.9 MB, free: 3.672 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002987/0.03637, allocations: 303.5 kB / 360.2 MB, free: 3.363 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_206) 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_205) 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_204) slice: {}; [SCAL] (1) rectifier.thyristor_p1.off = rectifier.offStart_p1 ($RES_SRT_211) slice: {}; Notification: Performance of Causalize: time 0.02049/0.05687, allocations: 16.22 MB / 376.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of Tearing: time 0.001478/0.05838, allocations: 1.601 MB / 378.1 MB, free: 1.055 MB / 318.1 MB Notification: Performance of Initialization: time 1.092e-06/0.05839, allocations: 0 / 378.1 MB, free: 1.055 MB / 318.1 MB Notification: Performance of Tearing: time 0.0008408/0.05924, allocations: 0.8944 MB / 379 MB, free: 64 kB / 318.1 MB Notification: Performance of Categorize: time 3.326e-05/0.05929, allocations: 4 kB / 379 MB, free: 60 kB / 318.1 MB Notification: Performance of Solve: time 0.2361/0.2954, allocations: 0.5278 MB / 379.5 MB, free: 42.11 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001775/0.2972, allocations: 1.256 MB / 380.7 MB, free: 41.83 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: ........... 83 (scalar:72, 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: ........... 165 (scalar:154, 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: ........... 165 (scalar:154, 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.0001412/0.2974, allocations: 86.02 kB / 380.8 MB, free: 41.8 MB / 318.1 MB Notification: Performance of SimCode: time 0.005174/0.3026, allocations: 4.258 MB / 385.1 MB, free: 40.33 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.