Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.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.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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001086/0.001086, allocations: 111 kB / 18.47 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 213.1 kB / 19.42 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.619e-05/2.62e-05, allocations: 6.219 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV): time 0.006822/0.006856, allocations: 5.117 MB / 364.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004301/0.01118, allocations: 1.52 MB / 366 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001499/0.01271, allocations: 19.94 kB / 366 MB, free: 6.242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.01381, allocations: 146.6 kB / 366.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001771/0.0157, allocations: 214.1 kB / 366.4 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.017, allocations: 335.4 kB / 366.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00251/0.01953, allocations: 1.326 MB / 368.1 MB, free: 4.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001362/0.02091, allocations: 487.5 kB / 368.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.02208, allocations: 406.5 kB / 368.9 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008501/0.02295, allocations: 422 kB / 369.3 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002964/0.02326, allocations: 100 kB / 369.4 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003406/0.02361, allocations: 104 kB / 369.5 MB, free: 2.707 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001237/0.02485, allocations: 1.379 MB / 370.9 MB, free: 1.312 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006334/0.0255, allocations: 0.8545 MB / 371.8 MB, free: 456 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.0258, allocations: 151.5 kB / 371.9 MB, free: 304 kB / 302.1 MB Notification: Performance of FrontEnd: time 0.0002661/0.02608, allocations: 43.75 kB / 372 MB, free: 260 kB / 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.2227/0.2488, allocations: 3.962 MB / 375.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002863/0.2491, allocations: 294.5 kB / 376.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002074/0.2512, allocations: 2.285 MB / 378.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002668/0.2515, allocations: 166.2 kB / 378.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of Alias: time 0.004693/0.2562, allocations: 3.845 MB / 382.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001878/0.2564, allocations: 108.4 kB / 382.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of Events: time 0.0004999/0.2569, allocations: 351 kB / 383 MB, free: 8.816 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006714/0.2576, allocations: 0.6328 MB / 383.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007421/0.2583, allocations: 0.7177 MB / 384.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of Causalize: time 0.003672/0.262, allocations: 2.901 MB / 387.2 MB, free: 6.766 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001594/0.2636, allocations: 1.539 MB / 388.7 MB, free: 5.801 MB / 302.1 MB Notification: Performance of Inline: time 0.003495/0.2671, allocations: 3.294 MB / 392 MB, free: 3.75 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002257/0.2674, allocations: 190.5 kB / 392.2 MB, free: 3.625 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003367/0.2677, allocations: 324.7 kB / 392.5 MB, free: 3.43 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_215) 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_214) 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_213) 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_212) slice: {}; Notification: Performance of Causalize: time 0.02216/0.2899, allocations: 16.96 MB / 409.5 MB, free: 7.16 MB / 318.1 MB Notification: Performance of Tearing: time 0.001623/0.2916, allocations: 1.536 MB / 411 MB, free: 5.445 MB / 318.1 MB Notification: Performance of Initialization: time 2.014e-06/0.2916, allocations: 0 / 411 MB, free: 5.445 MB / 318.1 MB Notification: Performance of Tearing: time 0.000921/0.2925, allocations: 0.8931 MB / 411.9 MB, free: 4.461 MB / 318.1 MB Notification: Performance of Categorize: time 4.407e-05/0.2926, allocations: 4 kB / 411.9 MB, free: 4.457 MB / 318.1 MB Notification: Performance of Solve: time 0.001519/0.2941, allocations: 0.5784 MB / 412.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001552/0.2956, allocations: 1.305 MB / 413.8 MB, free: 2.535 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: ........... 87 (scalar:74, 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 0.000134/0.2958, allocations: 92.02 kB / 413.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of SimCode: time 0.004841/0.3006, allocations: 4.468 MB / 418.4 MB, free: 13.91 MB / 334.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.