Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_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_n.off|rectifier.thyristor_p.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_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_n.off|rectifier.thyristor_p.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 119.7 kB / 18.48 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001273/0.001273, allocations: 209.1 kB / 19.42 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.923e-05/1.924e-05, allocations: 2.281 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV): time 0.005809/0.005838, allocations: 4.856 MB / 364.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002557/0.008412, allocations: 1.438 MB / 365.7 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003173/0.008741, allocations: 19.88 kB / 365.7 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000315/0.009063, allocations: 126.7 kB / 365.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004584/0.009546, allocations: 206.2 kB / 366 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000541/0.0101, allocations: 303.5 kB / 366.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.01122, allocations: 1.201 MB / 367.5 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005974/0.01183, allocations: 454.8 kB / 368 MB, free: 4.289 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004088/0.01224, allocations: 370.6 kB / 368.3 MB, free: 3.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003837/0.01264, allocations: 378.2 kB / 368.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.01276, allocations: 88 kB / 368.8 MB, free: 3.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.0129, allocations: 95.98 kB / 368.9 MB, free: 3.375 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008506/0.01376, allocations: 1.263 MB / 370.1 MB, free: 2.098 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004525/0.01422, allocations: 0.793 MB / 370.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.01438, allocations: 139.6 kB / 371.1 MB, free: 1.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001444/0.01453, allocations: 39.75 kB / 371.1 MB, free: 1.117 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 (158) * Number of variables: 158 (157) Notification: Performance of Bindings: time 0.207/0.2216, allocations: 3.722 MB / 374.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000198/0.2218, allocations: 163.2 kB / 375 MB, free: 12.7 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001819/0.2236, allocations: 2.045 MB / 377 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002112/0.2238, allocations: 148.2 kB / 377.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Alias: time 0.003703/0.2275, allocations: 3.488 MB / 380.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001153/0.2277, allocations: 94.98 kB / 380.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of Events: time 0.0003704/0.228, allocations: 319.8 kB / 381.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006739/0.2287, allocations: 0.5721 MB / 381.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006196/0.2294, allocations: 0.6399 MB / 382.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of Causalize: time 0.0028/0.2322, allocations: 2.56 MB / 384.8 MB, free: 8.234 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001291/0.2335, allocations: 1.35 MB / 386.2 MB, free: 7.395 MB / 302.1 MB Notification: Performance of Inline: time 0.003065/0.2365, allocations: 2.854 MB / 389 MB, free: 5.637 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001904/0.2367, allocations: 173.7 kB / 389.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002842/0.237, allocations: 289.8 kB / 389.5 MB, free: 5.348 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_p.s < 0.0 or $PRE.rectifier.thyristor_p.off and not rectifier.andCondition_p.y ($RES_EVT_197) slice: {}; [SCAL] (1) $SEV_9 = rectifier.thyristor_n.s < 0.0 or $PRE.rectifier.thyristor_n.off and not rectifier.andCondition_n.y ($RES_EVT_196) slice: {}; Notification: Performance of Causalize: time 0.01665/0.2537, allocations: 15.45 MB / 404.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of Tearing: time 0.0007011/0.2544, allocations: 0.7679 MB / 405.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of Initialization: time 1.322e-06/0.2544, allocations: 0 / 405.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of Tearing: time 0.0004139/0.2549, allocations: 460.1 kB / 406.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of Categorize: time 3.805e-05/0.2549, allocations: 4 kB / 406.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of Solve: time 0.001056/0.256, allocations: 0.5438 MB / 406.7 MB, free: 9.852 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001104/0.2571, allocations: 1.078 MB / 407.8 MB, free: 8.762 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: ......... 9 * 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_last, meanVoltage.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 41 (41) {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.greaterNegative.y, pulse2.twoPulse.fire_p, pulse2.twoPulse.fire_n, pulse2.fire_p, pulse2.fire_n, $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_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: ........... 86 (scalar:73, array:13, 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: ........... 166 (scalar:153, array:13, 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: ........... 166 (scalar:153, array:13, 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.0001141/0.2572, allocations: 109.6 kB / 407.9 MB, free: 8.668 MB / 318.1 MB Notification: Performance of SimCode: time 0.003552/0.2608, allocations: 3.912 MB / 411.8 MB, free: 4.746 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.