Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV_Characteristic.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_Characteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,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_Characteristic") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV_Characteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,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_Characteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001151/0.001151, allocations: 111.6 kB / 18.47 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001226/0.001226, allocations: 213.1 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.211/1.211, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/1.874e-05, allocations: 2.281 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV_Characteristic): time 0.005404/0.005432, allocations: 4.88 MB / 364.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002394/0.007843, allocations: 1.453 MB / 365.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002915/0.008146, allocations: 19.94 kB / 365.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002865/0.00844, allocations: 130.7 kB / 365.9 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000433/0.008887, allocations: 206.2 kB / 366.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005415/0.009456, allocations: 307.5 kB / 366.4 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.01047, allocations: 1.209 MB / 367.6 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005656/0.01105, allocations: 466.8 kB / 368 MB, free: 4.223 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003967/0.01145, allocations: 382.5 kB / 368.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003226/0.01179, allocations: 382.2 kB / 368.8 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.01191, allocations: 91.94 kB / 368.9 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001403/0.01205, allocations: 92 kB / 369 MB, free: 3.293 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008258/0.01289, allocations: 1.282 MB / 370.2 MB, free: 1.996 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003994/0.01329, allocations: 0.8044 MB / 371 MB, free: 1.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.01343, allocations: 143.6 kB / 371.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001359/0.01357, allocations: 31.81 kB / 371.2 MB, free: 1.008 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: 160 (160) * Number of variables: 160 (159) Notification: Performance of Bindings: time 0.152/0.1656, allocations: 3.682 MB / 374.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000174/0.1658, allocations: 168.3 kB / 375.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001842/0.1676, allocations: 2.082 MB / 377.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simplify1: time 0.000201/0.1678, allocations: 154.4 kB / 377.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of Alias: time 0.003464/0.1713, allocations: 3.521 MB / 380.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001165/0.1714, allocations: 98.72 kB / 380.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of Events: time 0.00034/0.1718, allocations: 333.3 kB / 381.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of Detect States: time 0.0004874/0.1723, allocations: 0.5854 MB / 381.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0005715/0.1729, allocations: 0.6539 MB / 382.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of Causalize: time 0.002656/0.1755, allocations: 2.628 MB / 385.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001223/0.1768, allocations: 1.402 MB / 386.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of Inline: time 0.002692/0.1795, allocations: 2.869 MB / 389.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001627/0.1796, allocations: 165 kB / 389.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002664/0.1799, allocations: 291.8 kB / 389.8 MB, free: 5.156 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_201) 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_200) slice: {}; Notification: Performance of Causalize: time 0.01547/0.1954, allocations: 15.18 MB / 405 MB, free: 11.5 MB / 318.1 MB Notification: Performance of Tearing: time 0.000637/0.196, allocations: 0.7633 MB / 405.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of Initialization: time 6.92e-07/0.1961, allocations: 0 / 405.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of Tearing: time 0.0003731/0.1964, allocations: 459.5 kB / 406.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Categorize: time 2.581e-05/0.1965, allocations: 4 kB / 406.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Solve: time 0.0009247/0.1974, allocations: 0.5577 MB / 406.8 MB, free: 9.75 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001032/0.1984, allocations: 1.094 MB / 407.9 MB, free: 8.648 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: ................. 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_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_11, $TEV_10, $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: ........... 89 (scalar:76, 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: ........... 164 (scalar:151, 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: ........... 164 (scalar:151, 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 9.673e-05/0.1986, allocations: 111 kB / 408 MB, free: 8.555 MB / 318.1 MB Notification: Performance of SimCode: time 0.003178/0.2017, allocations: 3.943 MB / 411.9 MB, free: 4.582 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.