Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0009866/0.0009867, allocations: 114 kB / 17.75 MB, free: 5.215 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.001064/0.001064, allocations: 196.6 kB / 18.69 MB, free: 4.289 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.306/1.306, allocations: 205.1 MB / 224.6 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.867e-05/2.868e-05, allocations: 2.281 kB / 328.6 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R): time 0.005801/0.005837, allocations: 4.767 MB / 333.3 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002377/0.008231, allocations: 1.423 MB / 334.7 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002865/0.008528, allocations: 19.88 kB / 334.8 MB, free: 13.06 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000298/0.008833, allocations: 130.7 kB / 334.9 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004297/0.00927, allocations: 198.3 kB / 335.1 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005149/0.009813, allocations: 307.5 kB / 335.4 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00105/0.01087, allocations: 1.181 MB / 336.6 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005971/0.01148, allocations: 470.6 kB / 337 MB, free: 10.76 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003784/0.01186, allocations: 358.6 kB / 337.4 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003813/0.01225, allocations: 378.3 kB / 337.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.01237, allocations: 88 kB / 337.8 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.01249, allocations: 92 kB / 337.9 MB, free: 9.863 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0008694/0.01337, allocations: 1.232 MB / 339.2 MB, free: 8.617 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004354/0.01381, allocations: 0.762 MB / 339.9 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.01396, allocations: 143.6 kB / 340.1 MB, free: 7.703 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001087/0.01408, allocations: 35.81 kB / 340.1 MB, free: 7.668 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.002995/0.01708, allocations: 3.543 MB / 343.6 MB, free: 3.973 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002739/0.01736, allocations: 279.1 kB / 343.9 MB, free: 3.699 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001614/0.01899, allocations: 1.808 MB / 345.7 MB, free: 1.855 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001612/0.01915, allocations: 151.8 kB / 345.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of Alias: time 0.003275/0.02244, allocations: 3.049 MB / 348.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simplify2: time 9.147e-05/0.02254, allocations: 104.4 kB / 349 MB, free: 14.24 MB / 302.1 MB Notification: Performance of Events: time 0.0003979/0.02295, allocations: 334.7 kB / 349.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005792/0.02354, allocations: 0.5819 MB / 349.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006955/0.02424, allocations: 0.6837 MB / 350.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of Causalize: time 0.00364/0.02789, allocations: 3.847 MB / 354.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001327/0.02923, allocations: 1.437 MB / 355.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of Inline: time 0.002557/0.03179, allocations: 2.618 MB / 358.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001865/0.03199, allocations: 179.7 kB / 358.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002578/0.03225, allocations: 295.5 kB / 359 MB, free: 4.102 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_11 = rectifier.thyristor_p1.s < 0.0 or $PRE.rectifier.thyristor_p1.off and not rectifier.thyristor_p1.fire ($RES_EVT_195) slice: {}; [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: {}; Notification: Performance of Causalize: time 0.01559/0.04785, allocations: 17.89 MB / 376.9 MB, free: 2.941 MB / 318.1 MB Notification: Performance of Tearing: time 0.001206/0.04908, allocations: 1.36 MB / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of Initialization: time 1.353e-06/0.04909, allocations: 0 / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of Tearing: time 0.0007198/0.04981, allocations: 0.8098 MB / 379 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of Categorize: time 2.889e-05/0.04985, allocations: 7.938 kB / 379 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of Solve: time 0.0008002/0.05066, allocations: 0.5083 MB / 379.5 MB, free: 100 kB / 318.1 MB Notification: Performance of Jacobian: time 0.1682/0.2189, allocations: 1.471 MB / 381 MB, free: 43.31 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: ................. 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: ........... 157 (scalar:146, 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: ........... 157 (scalar:146, 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.0001338/0.2191, allocations: 108 kB / 381.1 MB, free: 43.28 MB / 318.1 MB Notification: Performance of SimCode: time 0.004302/0.2234, allocations: 4.187 MB / 385.3 MB, free: 41.85 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.