Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.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_RL,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_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL,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_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001282/0.001283, allocations: 110.7 kB / 18.47 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 207.9 kB / 19.42 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.816e-05/1.815e-05, allocations: 2.281 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL): time 0.005467/0.005493, allocations: 5.016 MB / 364.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.008004, allocations: 1.504 MB / 365.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000308/0.008323, allocations: 19.88 kB / 365.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003135/0.008645, allocations: 146.6 kB / 366.1 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004554/0.009125, allocations: 206.2 kB / 366.3 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000574/0.009708, allocations: 327.5 kB / 366.6 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.01086, allocations: 1.295 MB / 367.9 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005998/0.01147, allocations: 479 kB / 368.3 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004063/0.01189, allocations: 402.5 kB / 368.7 MB, free: 3.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003899/0.01229, allocations: 406.1 kB / 369.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.01242, allocations: 100 kB / 369.2 MB, free: 3.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.01257, allocations: 104 kB / 369.3 MB, free: 2.91 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008379/0.01342, allocations: 1.337 MB / 370.7 MB, free: 1.559 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004543/0.01388, allocations: 0.8275 MB / 371.5 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.01403, allocations: 147.6 kB / 371.6 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001493/0.01418, allocations: 51.69 kB / 371.7 MB, free: 0.5234 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: 169 (169) * Number of variables: 169 (168) Notification: Performance of Bindings: time 0.2198/0.234, allocations: 3.964 MB / 375.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001938/0.2342, allocations: 168.7 kB / 375.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002146/0.2364, allocations: 2.245 MB / 378.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002925/0.2367, allocations: 153.6 kB / 378.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of Alias: time 0.005667/0.2424, allocations: 3.666 MB / 381.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of simplify2: time 0.0003151/0.2427, allocations: 101.9 kB / 382 MB, free: 9.387 MB / 302.1 MB Notification: Performance of Events: time 0.0006835/0.2434, allocations: 350.9 kB / 382.3 MB, free: 9.195 MB / 302.1 MB Notification: Performance of Detect States: time 0.000952/0.2444, allocations: 0.628 MB / 383 MB, free: 8.773 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0008491/0.2452, allocations: 0.722 MB / 383.7 MB, free: 8.305 MB / 302.1 MB Notification: Performance of Causalize: time 0.003581/0.2488, allocations: 2.892 MB / 386.6 MB, free: 7.141 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001512/0.2504, allocations: 1.525 MB / 388.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of Inline: time 0.003203/0.2536, allocations: 3.153 MB / 391.2 MB, free: 4.23 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002233/0.2538, allocations: 188.2 kB / 391.4 MB, free: 4.109 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003043/0.2541, allocations: 317.6 kB / 391.7 MB, free: 3.914 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_209) 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_208) 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_207) 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_206) slice: {}; Notification: Performance of Causalize: time 0.01977/0.2739, allocations: 16.85 MB / 408.6 MB, free: 8.004 MB / 318.1 MB Notification: Performance of Tearing: time 0.001323/0.2752, allocations: 1.534 MB / 410.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of Initialization: time 1.292e-06/0.2753, allocations: 8 kB / 410.1 MB, free: 6.355 MB / 318.1 MB Notification: Performance of Tearing: time 0.0007732/0.276, allocations: 0.8823 MB / 411 MB, free: 5.383 MB / 318.1 MB Notification: Performance of Categorize: time 3.96e-05/0.2761, allocations: 15.92 kB / 411 MB, free: 5.367 MB / 318.1 MB Notification: Performance of Solve: time 0.001117/0.2772, allocations: 0.564 MB / 411.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001364/0.2786, allocations: 1.293 MB / 412.9 MB, free: 3.473 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: ........... 86 (scalar:73, 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: ........... 171 (scalar:158, 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: ........... 171 (scalar:158, 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.000106/0.2787, allocations: 87.45 kB / 413 MB, free: 3.406 MB / 318.1 MB Notification: Performance of SimCode: time 0.003919/0.2826, allocations: 4.423 MB / 417.4 MB, free: 14.9 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.