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.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 110.6 kB / 17.75 MB, free: 5.348 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.0009406/0.0009406, allocations: 183.1 kB / 18.68 MB, free: 4.426 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.292/1.292, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.168e-05/2.168e-05, allocations: 2.281 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV): time 0.006099/0.006131, allocations: 5.086 MB / 357.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002959/0.009116, allocations: 1.465 MB / 358.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000444/0.009577, allocations: 19.88 kB / 358.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003682/0.009952, allocations: 142.6 kB / 358.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005429/0.0105, allocations: 210.2 kB / 358.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006436/0.0112, allocations: 339.4 kB / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001218/0.01243, allocations: 1.303 MB / 360.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006534/0.01309, allocations: 499.4 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004424/0.01354, allocations: 394.6 kB / 361.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004077/0.01396, allocations: 422.1 kB / 361.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.01408, allocations: 100 kB / 361.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.01422, allocations: 100 kB / 362 MB, free: 9.145 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.000866/0.01509, allocations: 1.356 MB / 363.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004322/0.01553, allocations: 0.843 MB / 364.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.01569, allocations: 155.5 kB / 364.4 MB, free: 6.766 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001878/0.01589, allocations: 39.75 kB / 364.4 MB, free: 6.727 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: 175 (175) * Number of variables: 175 (174) Notification: Performance of Bindings: time 0.00329/0.01918, allocations: 3.928 MB / 368.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000232/0.01943, allocations: 182.4 kB / 368.5 MB, free: 2.461 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001795/0.02123, allocations: 1.988 MB / 370.5 MB, free: 444 kB / 302.1 MB Notification: Performance of simplify1: time 0.000193/0.02143, allocations: 159.8 kB / 370.7 MB, free: 284 kB / 302.1 MB Notification: Performance of Alias: time 0.2097/0.2311, allocations: 3.826 MB / 374.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001733/0.2313, allocations: 107.9 kB / 374.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of Events: time 0.0004143/0.2317, allocations: 362 kB / 374.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005821/0.2323, allocations: 0.6223 MB / 375.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006719/0.233, allocations: 0.7256 MB / 376.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of Causalize: time 0.003314/0.2363, allocations: 2.926 MB / 379.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001477/0.2378, allocations: 1.542 MB / 380.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of Inline: time 0.002807/0.2406, allocations: 2.822 MB / 383.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002079/0.2408, allocations: 184.7 kB / 383.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002927/0.2411, allocations: 323.2 kB / 384.1 MB, free: 11.73 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_216) 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_215) 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_214) 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_213) slice: {}; Notification: Performance of Causalize: time 0.01876/0.2599, allocations: 17.01 MB / 401.1 MB, free: 1.344 MB / 302.1 MB Notification: Performance of Tearing: time 0.001363/0.2613, allocations: 1.536 MB / 402.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of Initialization: time 1.282e-06/0.2613, allocations: 0 / 402.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of Tearing: time 0.0009281/0.2623, allocations: 0.8897 MB / 403.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of Categorize: time 4.126e-05/0.2623, allocations: 4 kB / 403.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of Solve: time 0.001288/0.2636, allocations: 0.588 MB / 404.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001311/0.2649, allocations: 1.296 MB / 405.4 MB, free: 13.05 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: ................. 44 (44) {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_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: ........... 88 (scalar:75, 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: ........... 174 (scalar:161, 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: ........... 174 (scalar:161, 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 9.691e-05/0.265, allocations: 94.25 kB / 405.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of SimCode: time 0.003591/0.2686, allocations: 4.43 MB / 409.9 MB, free: 8.902 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.