Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="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_3.2.3_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_3.2.3_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.001388/0.001388, allocations: 100 kB / 18.41 MB, free: 4.688 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.001216/0.001216, allocations: 194.6 kB / 19.35 MB, free: 3.762 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.621/1.621, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.47e-05/2.47e-05, allocations: 5.094 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic): time 0.006908/0.006942, allocations: 5.029 MB / 334.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003205/0.01017, allocations: 1.493 MB / 335.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004523/0.01064, allocations: 23.88 kB / 335.8 MB, free: 12.72 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003503/0.011, allocations: 146.6 kB / 335.9 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005001/0.01156, allocations: 210.2 kB / 336.1 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005798/0.01215, allocations: 311.5 kB / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001365/0.01352, allocations: 1.256 MB / 337.7 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007975/0.01433, allocations: 495.4 kB / 338.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00056/0.0149, allocations: 386.5 kB / 338.5 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004663/0.01538, allocations: 406.2 kB / 338.9 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.01551, allocations: 96 kB / 339 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.01566, allocations: 96 kB / 339.1 MB, free: 9.324 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0009884/0.01665, allocations: 1.34 MB / 340.5 MB, free: 7.969 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005304/0.01719, allocations: 0.8236 MB / 341.3 MB, free: 7.133 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.01737, allocations: 147.6 kB / 341.4 MB, free: 6.988 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.000254/0.01763, allocations: 43.75 kB / 341.5 MB, free: 6.945 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.00391/0.02155, allocations: 3.917 MB / 345.4 MB, free: 2.863 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002145/0.02177, allocations: 182.9 kB / 345.6 MB, free: 2.688 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001833/0.02361, allocations: 1.949 MB / 347.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of simplify1: time 0.000192/0.02381, allocations: 163.8 kB / 347.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of Alias: time 0.004552/0.02837, allocations: 3.725 MB / 351.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001334/0.02852, allocations: 107.8 kB / 351.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of Events: time 0.0004831/0.02901, allocations: 358.6 kB / 351.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006488/0.02967, allocations: 0.6198 MB / 352.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000875/0.03056, allocations: 0.7072 MB / 353.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of Causalize: time 0.003694/0.03427, allocations: 2.869 MB / 356 MB, free: 7.66 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001575/0.03587, allocations: 1.526 MB / 357.6 MB, free: 6.098 MB / 302.1 MB Notification: Performance of Inline: time 0.003094/0.03897, allocations: 2.699 MB / 360.3 MB, free: 3.344 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002305/0.03921, allocations: 171.7 kB / 360.4 MB, free: 3.164 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003386/0.03956, allocations: 315.5 kB / 360.7 MB, free: 2.844 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_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: {}; [SCAL] (1) rectifier.thyristor_p1.off = rectifier.offStart_p1 ($RES_SRT_215) slice: {}; Notification: Performance of Causalize: time 0.01974/0.05931, allocations: 16.08 MB / 376.8 MB, free: 2.473 MB / 318.1 MB Notification: Performance of Tearing: time 0.00148/0.06082, allocations: 1.605 MB / 378.4 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of Initialization: time 1.512e-06/0.06084, allocations: 4 kB / 378.4 MB, free: 0.668 MB / 318.1 MB Notification: Performance of Tearing: time 0.2432/0.3041, allocations: 0.888 MB / 379.3 MB, free: 41.93 MB / 318.1 MB Notification: Performance of Categorize: time 4.951e-05/0.3042, allocations: 5.188 kB / 379.3 MB, free: 41.93 MB / 318.1 MB Notification: Performance of Solve: time 0.001795/0.306, allocations: 0.5453 MB / 379.9 MB, free: 41.91 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001768/0.3078, allocations: 1.267 MB / 381.1 MB, free: 41.62 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: ........... 164 (scalar:153, 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: ........... 164 (scalar:153, 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 0.0001308/0.3079, allocations: 96.3 kB / 381.2 MB, free: 41.59 MB / 318.1 MB Notification: Performance of SimCode: time 0.005149/0.3131, allocations: 4.281 MB / 385.5 MB, free: 40.11 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.