Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.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.HalfControlledBridge2Pulse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 104.2 kB / 16.42 MB, free: 6.484 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.001362/0.001362, allocations: 192.2 kB / 17.35 MB, free: 5.754 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.442/1.442, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.07e-05/3.071e-05, allocations: 7.062 kB / 327.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse): time 0.0063/0.006339, allocations: 4.777 MB / 332 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002938/0.009293, allocations: 1.423 MB / 333.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003255/0.009632, allocations: 19.94 kB / 333.4 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003225/0.009961, allocations: 138.7 kB / 333.6 MB, free: 12.94 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004903/0.01046, allocations: 186.3 kB / 333.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005587/0.01105, allocations: 299.5 kB / 334 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/0.0122, allocations: 1.181 MB / 335.2 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006212/0.01283, allocations: 422.6 kB / 335.6 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003848/0.01322, allocations: 354.6 kB / 336 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003621/0.01359, allocations: 366.3 kB / 336.3 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.01371, allocations: 92 kB / 336.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.01383, allocations: 88 kB / 336.5 MB, free: 9.961 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0008646/0.0147, allocations: 1.228 MB / 337.7 MB, free: 8.719 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004413/0.01515, allocations: 0.7544 MB / 338.5 MB, free: 7.953 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.0153, allocations: 147.5 kB / 338.6 MB, free: 7.809 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001346/0.01544, allocations: 35.75 kB / 338.7 MB, free: 7.773 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: 154 (154) * Number of variables: 154 (153) Notification: Performance of Bindings: time 0.003193/0.01864, allocations: 3.535 MB / 342.2 MB, free: 4.086 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0003262/0.01897, allocations: 279.2 kB / 342.5 MB, free: 3.812 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001808/0.02079, allocations: 1.773 MB / 344.2 MB, free: 2.004 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001724/0.02098, allocations: 151.8 kB / 344.4 MB, free: 1.855 MB / 286.1 MB Notification: Performance of Alias: time 0.003248/0.02423, allocations: 2.991 MB / 347.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001095/0.02435, allocations: 103.8 kB / 347.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of Events: time 0.0004117/0.02477, allocations: 327.3 kB / 347.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005928/0.02538, allocations: 0.569 MB / 348.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006943/0.02608, allocations: 0.672 MB / 349 MB, free: 12.8 MB / 302.1 MB Notification: Performance of Causalize: time 0.003719/0.02981, allocations: 3.809 MB / 352.9 MB, free: 9.016 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001402/0.03122, allocations: 1.421 MB / 354.3 MB, free: 7.566 MB / 302.1 MB Notification: Performance of Inline: time 0.002617/0.03385, allocations: 2.576 MB / 356.8 MB, free: 4.934 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001833/0.03404, allocations: 167.7 kB / 357 MB, free: 4.754 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002744/0.03433, allocations: 295.5 kB / 357.3 MB, free: 4.457 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.andCondition_p.y ($RES_EVT_193) slice: {}; [SCAL] (1) $SEV_10 = rectifier.thyristor_p2.s < 0.0 or $PRE.rectifier.thyristor_p2.off and not rectifier.andCondition_n.y ($RES_EVT_192) slice: {}; Notification: Performance of Causalize: time 0.01641/0.05074, allocations: 17.6 MB / 374.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of Tearing: time 0.001466/0.05224, allocations: 1.478 MB / 376.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of Initialization: time 9.22e-07/0.05225, allocations: 0 / 376.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of Tearing: time 0.0008135/0.05307, allocations: 0.8163 MB / 377.2 MB, free: 1.109 MB / 318.1 MB Notification: Performance of Categorize: time 2.883e-05/0.05311, allocations: 4 kB / 377.2 MB, free: 1.105 MB / 318.1 MB Notification: Performance of Solve: time 0.0009057/0.05402, allocations: 492.5 kB / 377.7 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of Jacobian: time 0.2144/0.2684, allocations: 1.46 MB / 379.1 MB, free: 43.38 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_p.y, rectifier.andCondition_n.u2, rectifier.andCondition_n.y, rectifier.thyristor_p1.off, rectifier.thyristor_p2.off, rectifier.diode_n1.off, rectifier.diode_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: ........... 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.0001556/0.2686, allocations: 99.47 kB / 379.2 MB, free: 43.37 MB / 318.1 MB Notification: Performance of SimCode: time 0.004843/0.2735, allocations: 4.153 MB / 383.4 MB, free: 41.95 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.