Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="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_n1.off|rectifier.thyristor_n2.off|rectifier.thyristor_p1.off|rectifier.thyristor_p2.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_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_n1.off|rectifier.thyristor_n2.off|rectifier.thyristor_p1.off|rectifier.thyristor_p2.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_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.0009783/0.0009782, allocations: 114 kB / 17.75 MB, free: 5.215 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.001059/0.001059, allocations: 196.6 kB / 18.69 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.722e-05/1.722e-05, allocations: 2.281 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic): time 0.005958/0.005985, allocations: 5.132 MB / 357.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002324/0.008323, allocations: 1.488 MB / 358.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002941/0.008629, allocations: 19.88 kB / 358.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003041/0.00894, allocations: 146.6 kB / 358.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004583/0.009405, allocations: 222.1 kB / 359 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005169/0.009948, allocations: 329.2 kB / 359.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.01106, allocations: 1.326 MB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006188/0.01169, allocations: 0.4917 MB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003844/0.01209, allocations: 402.5 kB / 361.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003792/0.01247, allocations: 426.1 kB / 361.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.01261, allocations: 100 kB / 362 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.01274, allocations: 100 kB / 362.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.000906/0.01365, allocations: 1.391 MB / 363.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004583/0.01412, allocations: 0.8506 MB / 364.4 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.01427, allocations: 159.5 kB / 364.5 MB, free: 6.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001343/0.01441, allocations: 51.67 kB / 364.6 MB, free: 6.551 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: 177 (177) * Number of variables: 177 (176) Notification: Performance of Bindings: time 0.003363/0.01777, allocations: 3.975 MB / 368.6 MB, free: 2.414 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002748/0.01806, allocations: 308.8 kB / 368.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001717/0.01978, allocations: 2.011 MB / 370.9 MB, free: 60 kB / 302.1 MB Notification: Performance of simplify1: time 0.1544/0.1742, allocations: 168.4 kB / 371 MB, free: 16.42 MB / 302.1 MB Notification: Performance of Alias: time 0.004116/0.1783, allocations: 3.861 MB / 374.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001299/0.1785, allocations: 111.9 kB / 375 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Events: time 0.0003628/0.1788, allocations: 369.9 kB / 375.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005349/0.1794, allocations: 0.651 MB / 376 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006155/0.18, allocations: 0.745 MB / 376.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of Causalize: time 0.002947/0.183, allocations: 2.99 MB / 379.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001296/0.1843, allocations: 1.595 MB / 381.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of Inline: time 0.002552/0.1868, allocations: 2.923 MB / 384.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001801/0.187, allocations: 187.5 kB / 384.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002681/0.1873, allocations: 323.2 kB / 384.8 MB, free: 11.46 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_12 = rectifier.thyristor_p1.s < 0.0 or $PRE.rectifier.thyristor_p1.off and not rectifier.thyristor_p1.fire ($RES_EVT_220) slice: {}; [SCAL] (1) $SEV_11 = rectifier.thyristor_p2.s < 0.0 or $PRE.rectifier.thyristor_p2.off and not rectifier.thyristor_p2.fire ($RES_EVT_219) slice: {}; [SCAL] (1) $SEV_10 = rectifier.thyristor_n1.s < 0.0 or $PRE.rectifier.thyristor_n1.off and not rectifier.thyristor_p2.fire ($RES_EVT_218) slice: {}; [SCAL] (1) $SEV_9 = rectifier.thyristor_n2.s < 0.0 or $PRE.rectifier.thyristor_n2.off and not rectifier.thyristor_p1.fire ($RES_EVT_217) slice: {}; Notification: Performance of Causalize: time 0.01585/0.2031, allocations: 16.7 MB / 401.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009951/0.2042, allocations: 1.529 MB / 403 MB, free: 15.45 MB / 318.1 MB Notification: Performance of Initialization: time 1.253e-06/0.2042, allocations: 0 / 403 MB, free: 15.45 MB / 318.1 MB Notification: Performance of Tearing: time 0.0007081/0.2049, allocations: 0.9069 MB / 403.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of Categorize: time 2.547e-05/0.2049, allocations: 5.969 kB / 403.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of Solve: time 0.001074/0.206, allocations: 0.5741 MB / 404.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001301/0.2073, allocations: 1.326 MB / 405.8 MB, free: 12.73 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: ................. 46 (46) {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.greaterNegative.y, pulse2.twoPulse.fire_p, pulse2.twoPulse.fire_n, pulse2.fire_p, pulse2.fire_n, $SEV_14, $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: ........... 91 (scalar:78, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 173 (scalar:160, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 173 (scalar:160, 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: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 0.0001041/0.2074, allocations: 96.14 kB / 405.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of SimCode: time 0.003549/0.211, allocations: 4.474 MB / 410.4 MB, free: 8.402 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.