Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic.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_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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001302/0.001302, allocations: 117.5 kB / 18.47 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001328, allocations: 213 kB / 19.42 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.788e-05/1.789e-05, allocations: 4.391 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic): time 0.006145/0.006173, allocations: 5.177 MB / 364.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002533/0.008718, allocations: 1.523 MB / 366.1 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003102/0.009039, allocations: 23.88 kB / 366.1 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003205/0.009367, allocations: 142.6 kB / 366.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004909/0.009865, allocations: 222 kB / 366.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005795/0.01046, allocations: 343.5 kB / 366.8 MB, free: 5.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.01181, allocations: 1.338 MB / 368.1 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006392/0.01246, allocations: 499.6 kB / 368.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005542/0.01303, allocations: 414.5 kB / 369 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004245/0.01346, allocations: 430 kB / 369.5 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.01359, allocations: 100 kB / 369.5 MB, free: 2.668 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.01376, allocations: 108 kB / 369.7 MB, free: 2.562 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001099/0.01486, allocations: 1.398 MB / 371.1 MB, free: 1.148 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004837/0.01535, allocations: 0.866 MB / 371.9 MB, free: 276 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.01552, allocations: 163.4 kB / 372.1 MB, free: 112 kB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001327/0.01565, allocations: 43.75 kB / 372.1 MB, free: 68 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: 177 (177) * Number of variables: 177 (176) Notification: Performance of Bindings: time 0.2145/0.2301, allocations: 4.011 MB / 376.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000211/0.2304, allocations: 186.5 kB / 376.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002137/0.2325, allocations: 2.336 MB / 378.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002709/0.2328, allocations: 169.1 kB / 378.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of Alias: time 0.004335/0.2371, allocations: 3.873 MB / 382.7 MB, free: 8.887 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001537/0.2373, allocations: 111.6 kB / 382.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of Events: time 0.0004566/0.2378, allocations: 367.5 kB / 383.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006157/0.2384, allocations: 0.6502 MB / 383.8 MB, free: 8.207 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007317/0.2391, allocations: 0.7388 MB / 384.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of Causalize: time 0.003504/0.2426, allocations: 2.973 MB / 387.5 MB, free: 6.562 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001507/0.2442, allocations: 1.589 MB / 389.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of Inline: time 0.003152/0.2473, allocations: 3.316 MB / 392.4 MB, free: 3.516 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002012/0.2475, allocations: 182.6 kB / 392.6 MB, free: 3.398 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002871/0.2478, allocations: 323.3 kB / 392.9 MB, free: 3.203 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_219) 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_218) 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_217) 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_216) slice: {}; Notification: Performance of Causalize: time 0.01931/0.2671, allocations: 16.75 MB / 409.7 MB, free: 6.98 MB / 318.1 MB Notification: Performance of Tearing: time 0.00147/0.2687, allocations: 1.533 MB / 411.2 MB, free: 5.27 MB / 318.1 MB Notification: Performance of Initialization: time 1.95e-05/0.2687, allocations: 0 / 411.2 MB, free: 5.27 MB / 318.1 MB Notification: Performance of Tearing: time 0.0009568/0.2697, allocations: 0.8951 MB / 412.1 MB, free: 4.285 MB / 318.1 MB Notification: Performance of Categorize: time 7.817e-05/0.2697, allocations: 12.05 kB / 412.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of Solve: time 0.001577/0.2713, allocations: 0.5748 MB / 412.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001597/0.2729, allocations: 1.325 MB / 414 MB, free: 2.336 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: ........... 90 (scalar:77, 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.0001372/0.2731, allocations: 96.5 kB / 414.1 MB, free: 2.262 MB / 318.1 MB Notification: Performance of SimCode: time 0.004296/0.2774, allocations: 4.498 MB / 418.6 MB, free: 13.67 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.