Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R.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_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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 114.6 kB / 18.47 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.001009/0.001009, allocations: 208 kB / 19.42 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 247.6 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.804e-05/2.805e-05, allocations: 6.219 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R): time 0.006019/0.006055, allocations: 4.628 MB / 364 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.008486, allocations: 1.399 MB / 365.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000289/0.008786, allocations: 19.88 kB / 365.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.009081, allocations: 130.8 kB / 365.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004145/0.009516, allocations: 178.5 kB / 365.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.01006, allocations: 303.5 kB / 366 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001014/0.01108, allocations: 1.135 MB / 367.2 MB, free: 5.145 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005171/0.01161, allocations: 406.1 kB / 367.6 MB, free: 4.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003566/0.01198, allocations: 354.7 kB / 367.9 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003255/0.01231, allocations: 358.3 kB / 368.3 MB, free: 4.039 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.997e-05/0.01242, allocations: 84 kB / 368.3 MB, free: 3.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.01256, allocations: 91.98 kB / 368.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0007079/0.01328, allocations: 1.182 MB / 369.6 MB, free: 2.672 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003651/0.01365, allocations: 0.7467 MB / 370.4 MB, free: 1.914 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.01377, allocations: 131.6 kB / 370.5 MB, free: 1.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001198/0.0139, allocations: 35.75 kB / 370.5 MB, free: 1.75 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: 146 (146) * Number of variables: 146 (145) Notification: Performance of Bindings: time 0.2147/0.2286, allocations: 3.412 MB / 373.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001834/0.2288, allocations: 156.6 kB / 374.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001877/0.2307, allocations: 1.912 MB / 376 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simplify1: time 0.00023/0.2309, allocations: 141.5 kB / 376.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of Alias: time 0.003932/0.2349, allocations: 3.198 MB / 379.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001415/0.235, allocations: 85.48 kB / 379.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of Events: time 0.000395/0.2354, allocations: 306.1 kB / 379.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005462/0.236, allocations: 0.5632 MB / 380.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006166/0.2366, allocations: 0.6308 MB / 380.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of Causalize: time 0.002978/0.2396, allocations: 2.51 MB / 383.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001337/0.2409, allocations: 1.322 MB / 384.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of Inline: time 0.002979/0.2439, allocations: 2.778 MB / 387.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000186/0.2441, allocations: 164.3 kB / 387.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002715/0.2444, allocations: 281.5 kB / 388 MB, free: 6.473 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_185) 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_184) slice: {}; Notification: Performance of Causalize: time 0.01847/0.2629, allocations: 15.04 MB / 403 MB, free: 13.56 MB / 318.1 MB Notification: Performance of Tearing: time 0.0008902/0.2638, allocations: 0.8854 MB / 403.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of Initialization: time 1.462e-06/0.2638, allocations: 0 / 403.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of Tearing: time 0.0005096/0.2643, allocations: 0.5151 MB / 404.4 MB, free: 12.12 MB / 318.1 MB Notification: Performance of Categorize: time 3.655e-05/0.2644, allocations: 7.938 kB / 404.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of Solve: time 0.001115/0.2655, allocations: 0.519 MB / 404.9 MB, free: 11.67 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001157/0.2667, allocations: 1.072 MB / 406 MB, free: 10.59 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: ............................. 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_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: ........... 80 (scalar:67, 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: ........... 157 (scalar:144, 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: ........... 157 (scalar:144, 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.000126/0.2668, allocations: 107 kB / 406.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of SimCode: time 0.003566/0.2704, allocations: 3.853 MB / 410 MB, free: 6.742 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.