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_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 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_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_3.2.3_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_3.2.3_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.001357/0.001357, allocations: 115.4 kB / 18.42 MB, free: 4.504 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.001173/0.001173, allocations: 193.4 kB / 19.35 MB, free: 3.586 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.603/1.603, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.549e-05/3.55e-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_R): time 0.008038/0.008085, allocations: 4.787 MB / 334 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003453/0.0116, allocations: 1.423 MB / 335.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004621/0.01209, allocations: 23.88 kB / 335.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003627/0.01246, allocations: 130.7 kB / 335.6 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005517/0.01302, allocations: 198.3 kB / 335.8 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006388/0.01373, allocations: 299.5 kB / 336.1 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00132/0.01506, allocations: 1.185 MB / 337.2 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007063/0.01578, allocations: 462.7 kB / 337.7 MB, free: 10.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005134/0.0163, allocations: 358.6 kB / 338 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004158/0.01673, allocations: 378.2 kB / 338.4 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.01686, allocations: 92 kB / 338.5 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.01699, allocations: 88 kB / 338.6 MB, free: 9.848 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0008592/0.01786, allocations: 1.236 MB / 339.8 MB, free: 8.598 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004613/0.01833, allocations: 0.762 MB / 340.6 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.01849, allocations: 147.6 kB / 340.7 MB, free: 7.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0002061/0.0187, allocations: 35.81 kB / 340.8 MB, free: 7.645 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: 156 (156) * Number of variables: 156 (155) Notification: Performance of Bindings: time 0.003487/0.0222, allocations: 3.539 MB / 344.3 MB, free: 3.953 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000305/0.02251, allocations: 283 kB / 344.6 MB, free: 3.676 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001732/0.02426, allocations: 1.808 MB / 346.4 MB, free: 1.832 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001798/0.02445, allocations: 151.7 kB / 346.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of Alias: time 0.00392/0.02838, allocations: 3.394 MB / 349.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001258/0.02852, allocations: 95.86 kB / 350 MB, free: 13.88 MB / 302.1 MB Notification: Performance of Events: time 0.000468/0.029, allocations: 346.6 kB / 350.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006167/0.02962, allocations: 0.5847 MB / 350.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007468/0.03038, allocations: 0.6759 MB / 351.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of Causalize: time 0.003317/0.03371, allocations: 2.733 MB / 354.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001545/0.03526, allocations: 1.448 MB / 355.8 MB, free: 7.902 MB / 302.1 MB Notification: Performance of Inline: time 0.002925/0.0382, allocations: 2.633 MB / 358.4 MB, free: 5.203 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001976/0.03841, allocations: 167.7 kB / 358.6 MB, free: 5.027 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003092/0.03873, allocations: 303.5 kB / 358.9 MB, free: 4.719 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_194) 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_193) 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_192) slice: {}; [SCAL] (1) rectifier.thyristor_p1.off = rectifier.offStart_p1 ($RES_SRT_198) slice: {}; Notification: Performance of Causalize: time 0.01937/0.05811, allocations: 15.8 MB / 374.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of Tearing: time 0.001412/0.05955, allocations: 1.423 MB / 376.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of Initialization: time 1.463e-06/0.05956, allocations: 0 / 376.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of Tearing: time 0.000799/0.06037, allocations: 0.8059 MB / 376.9 MB, free: 2.262 MB / 318.1 MB Notification: Performance of Categorize: time 4.066e-05/0.06042, allocations: 7.938 kB / 376.9 MB, free: 2.254 MB / 318.1 MB Notification: Performance of Solve: time 0.00106/0.06149, allocations: 0.4888 MB / 377.4 MB, free: 1.758 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001718/0.06321, allocations: 1.49 MB / 378.9 MB, free: 224 kB / 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: ............................. 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: ................. 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: ........... 76 (scalar:65, 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 155 (scalar:144, 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 155 (scalar:144, 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: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 0.0001254/0.06335, allocations: 105.8 kB / 379 MB, free: 128 kB / 318.1 MB Notification: Performance of SimCode: time 0.2359/0.2993, allocations: 4.194 MB / 383.2 MB, free: 41.08 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.