Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic.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_RLV_Characteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009671/0.000967, allocations: 106.9 kB / 16.42 MB, free: 6.516 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.001057/0.001057, allocations: 193.4 kB / 17.36 MB, free: 5.75 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.26/1.26, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.385e-05/2.385e-05, allocations: 2.984 kB / 327.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic): time 0.006268/0.0063, allocations: 5.023 MB / 332.3 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003127/0.009458, allocations: 1.501 MB / 333.8 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007849/0.01026, allocations: 15.94 kB / 333.8 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005551/0.01083, allocations: 142.6 kB / 333.9 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009331/0.01182, allocations: 210.1 kB / 334.1 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007204/0.01255, allocations: 319.5 kB / 334.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00118/0.01374, allocations: 1.263 MB / 335.7 MB, free: 10.78 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006325/0.01438, allocations: 479.4 kB / 336.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000424/0.01482, allocations: 382.6 kB / 336.5 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003882/0.01521, allocations: 410.1 kB / 336.9 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.01534, allocations: 96 kB / 337 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.01547, allocations: 96 kB / 337.1 MB, free: 9.324 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0009064/0.01638, allocations: 1.336 MB / 338.5 MB, free: 7.973 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004619/0.01685, allocations: 0.8236 MB / 339.3 MB, free: 7.137 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.017, allocations: 147.6 kB / 339.4 MB, free: 6.992 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001605/0.01717, allocations: 43.69 kB / 339.5 MB, free: 6.949 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: 170 (170) * Number of variables: 170 (169) Notification: Performance of Bindings: time 0.003203/0.02037, allocations: 3.917 MB / 343.4 MB, free: 2.867 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001829/0.02057, allocations: 187 kB / 343.6 MB, free: 2.688 MB / 286.1 MB Notification: Performance of Early Inline: time 0.00166/0.02224, allocations: 1.957 MB / 345.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001805/0.02242, allocations: 163.8 kB / 345.7 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of Alias: time 0.003351/0.02578, allocations: 3.334 MB / 349 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001209/0.02592, allocations: 107.8 kB / 349.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of Events: time 0.0004211/0.02635, allocations: 355 kB / 349.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005845/0.02694, allocations: 0.6081 MB / 350.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007019/0.02765, allocations: 0.7149 MB / 350.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of Causalize: time 0.003697/0.03136, allocations: 4.042 MB / 354.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001451/0.03282, allocations: 1.526 MB / 356.4 MB, free: 5.43 MB / 302.1 MB Notification: Performance of Inline: time 0.002593/0.03542, allocations: 2.699 MB / 359.1 MB, free: 2.676 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001877/0.03562, allocations: 179.6 kB / 359.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002593/0.03589, allocations: 307.5 kB / 359.5 MB, free: 2.176 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_211) 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_210) 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_209) 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_208) slice: {}; Notification: Performance of Causalize: time 0.01593/0.05183, allocations: 18.27 MB / 377.8 MB, free: 0.668 MB / 318.1 MB Notification: Performance of Tearing: time 0.1336/0.1855, allocations: 1.524 MB / 379.3 MB, free: 43.24 MB / 318.1 MB Notification: Performance of Initialization: time 2.194e-06/0.1855, allocations: 0 / 379.3 MB, free: 43.24 MB / 318.1 MB Notification: Performance of Tearing: time 0.0005786/0.1861, allocations: 0.8994 MB / 380.2 MB, free: 42.77 MB / 318.1 MB Notification: Performance of Categorize: time 2.905e-05/0.1862, allocations: 8.594 kB / 380.2 MB, free: 42.77 MB / 318.1 MB Notification: Performance of Solve: time 0.001228/0.1874, allocations: 0.544 MB / 380.8 MB, free: 42.73 MB / 318.1 MB Notification: Performance of Jacobian: time 0.00126/0.1887, allocations: 1.274 MB / 382.1 MB, free: 42.39 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: ............................. 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, meanVoltage.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 45 (45) {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_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: ........... 86 (scalar:75, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 166 (scalar:155, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 166 (scalar:155, 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: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 8.085e-05/0.1887, allocations: 100.1 kB / 382.2 MB, free: 42.38 MB / 318.1 MB Notification: Performance of SimCode: time 0.003358/0.1921, allocations: 4.262 MB / 386.4 MB, free: 40.89 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.