Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_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.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_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_n.off|rectifier.thyristor_p.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_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_n.off|rectifier.thyristor_p.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 104 kB / 18.41 MB, free: 4.676 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.001267/0.001268, allocations: 194.6 kB / 19.35 MB, free: 3.75 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.582/1.582, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.086e-05/3.087e-05, allocations: 3.266 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R): time 0.006416/0.006455, allocations: 4.499 MB / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00267/0.009145, allocations: 1.345 MB / 335.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003647/0.009525, allocations: 15.94 kB / 335.1 MB, free: 13.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003635/0.009896, allocations: 118.8 kB / 335.2 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004827/0.01039, allocations: 170.5 kB / 335.4 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005969/0.01103, allocations: 279.6 kB / 335.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001137/0.01218, allocations: 1.057 MB / 336.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005834/0.01277, allocations: 382.1 kB / 337.1 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003718/0.01315, allocations: 322.8 kB / 337.4 MB, free: 11.1 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003799/0.01354, allocations: 342.4 kB / 337.7 MB, free: 10.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.01365, allocations: 76 kB / 337.8 MB, free: 10.69 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.01376, allocations: 80 kB / 337.9 MB, free: 10.61 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0008442/0.01461, allocations: 1.116 MB / 339 MB, free: 9.484 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004293/0.01505, allocations: 0.6927 MB / 339.7 MB, free: 8.781 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.01519, allocations: 127.6 kB / 339.8 MB, free: 8.656 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.000153/0.01535, allocations: 39.73 kB / 339.8 MB, free: 8.617 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: 139 (139) * Number of variables: 139 (138) Notification: Performance of Bindings: time 0.003163/0.01852, allocations: 3.21 MB / 343 MB, free: 5.266 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002285/0.01876, allocations: 171 kB / 343.2 MB, free: 5.102 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001646/0.02042, allocations: 1.589 MB / 344.8 MB, free: 3.48 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001597/0.02059, allocations: 131.8 kB / 344.9 MB, free: 3.352 MB / 286.1 MB Notification: Performance of Alias: time 0.003778/0.02438, allocations: 3.046 MB / 348 MB, free: 12 kB / 286.1 MB Notification: Performance of simplify2: time 0.0001112/0.0245, allocations: 91.86 kB / 348.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of Events: time 0.0004079/0.02492, allocations: 302.7 kB / 348.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005813/0.02551, allocations: 0.537 MB / 348.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006451/0.02617, allocations: 0.5978 MB / 349.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of Causalize: time 0.002901/0.02907, allocations: 2.404 MB / 351.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001365/0.03045, allocations: 1.261 MB / 353.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of Inline: time 0.00248/0.03294, allocations: 2.343 MB / 355.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001907/0.03314, allocations: 163.7 kB / 355.7 MB, free: 8.055 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002501/0.0334, allocations: 259.6 kB / 355.9 MB, free: 7.793 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_9 = rectifier.thyristor_p.s < 0.0 or $PRE.rectifier.thyristor_p.off and not rectifier.andCondition_p.y ($RES_EVT_178) slice: {}; [SCAL] (1) $SEV_8 = rectifier.thyristor_n.s < 0.0 or $PRE.rectifier.thyristor_n.off and not rectifier.andCondition_n.y ($RES_EVT_177) slice: {}; Notification: Performance of Causalize: time 0.01767/0.05108, allocations: 14.23 MB / 370.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of Tearing: time 0.000935/0.05205, allocations: 0.8905 MB / 371 MB, free: 8.285 MB / 318.1 MB Notification: Performance of Initialization: time 1.542e-06/0.05206, allocations: 192 / 371 MB, free: 8.285 MB / 318.1 MB Notification: Performance of Tearing: time 0.0005377/0.0526, allocations: 0.521 MB / 371.5 MB, free: 7.715 MB / 318.1 MB Notification: Performance of Categorize: time 4.056e-05/0.05266, allocations: 7.938 kB / 371.6 MB, free: 7.707 MB / 318.1 MB Notification: Performance of Solve: time 0.00107/0.05373, allocations: 0.4928 MB / 372 MB, free: 7.207 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001185/0.05493, allocations: 1.029 MB / 373.1 MB, free: 6.129 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: ............................. 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: ................. 40 (40) {rectifier.enableLogic.booleanReplicator.y, rectifier.enableLogic.internalEnable, rectifier.andCondition_p.u2, rectifier.andCondition_p.y, rectifier.andCondition_n.u2, rectifier.andCondition_n.y, rectifier.thyristor_p.off, rectifier.thyristor_n.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_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_9, $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: ........... 77 (scalar:66, 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: ........... 151 (scalar:140, 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: ........... 151 (scalar:140, 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.0001056/0.05504, allocations: 84.84 kB / 373.2 MB, free: 6.055 MB / 318.1 MB Notification: Performance of SimCode: time 0.003812/0.05886, allocations: 3.627 MB / 376.8 MB, free: 2.34 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.