Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001373/0.001373, allocations: 114.7 kB / 18.47 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001927/0.001927, allocations: 212 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.333/1.333, allocations: 227.4 MB / 247.6 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.665e-05, allocations: 2.281 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R): time 0.006036/0.006071, allocations: 4.913 MB / 364.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003138/0.009238, allocations: 1.481 MB / 365.8 MB, free: 6.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005187/0.009779, allocations: 19.88 kB / 365.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000375/0.01016, allocations: 138.7 kB / 365.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005987/0.01077, allocations: 202.2 kB / 366.1 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007616/0.01158, allocations: 319.5 kB / 366.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001233/0.01282, allocations: 1.271 MB / 367.7 MB, free: 4.578 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006503/0.01348, allocations: 470.8 kB / 368.2 MB, free: 4.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005064/0.014, allocations: 390.5 kB / 368.6 MB, free: 3.707 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003984/0.01441, allocations: 398.1 kB / 368.9 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.01453, allocations: 96 kB / 369 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.01469, allocations: 100 kB / 369.1 MB, free: 3.125 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008479/0.01554, allocations: 1.298 MB / 370.4 MB, free: 1.812 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004363/0.01599, allocations: 0.8122 MB / 371.2 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.01614, allocations: 151.6 kB / 371.4 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001928/0.01634, allocations: 43.69 kB / 371.4 MB, free: 0.7969 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: 163 (163) * Number of variables: 163 (162) Notification: Performance of Bindings: time 0.2079/0.2243, allocations: 3.732 MB / 375.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002822/0.2246, allocations: 292.1 kB / 375.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001922/0.2265, allocations: 2.18 MB / 377.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002287/0.2267, allocations: 156.5 kB / 377.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of Alias: time 0.003827/0.2306, allocations: 3.521 MB / 381.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001431/0.2307, allocations: 106.2 kB / 381.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of Events: time 0.0004329/0.2312, allocations: 350.6 kB / 381.8 MB, free: 9.598 MB / 302.1 MB Notification: Performance of Detect States: time 0.000571/0.2318, allocations: 0.6146 MB / 382.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006561/0.2324, allocations: 0.7005 MB / 383.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of Causalize: time 0.003615/0.236, allocations: 2.873 MB / 385.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001518/0.2376, allocations: 1.504 MB / 387.4 MB, free: 6.648 MB / 302.1 MB Notification: Performance of Inline: time 0.003136/0.2407, allocations: 3.114 MB / 390.6 MB, free: 4.715 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002032/0.2409, allocations: 186.3 kB / 390.7 MB, free: 4.594 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003066/0.2413, allocations: 312.7 kB / 391 MB, free: 4.406 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_203) 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_202) 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_201) 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_200) slice: {}; Notification: Performance of Causalize: time 0.01871/0.26, allocations: 16.65 MB / 407.7 MB, free: 8.934 MB / 318.1 MB Notification: Performance of Tearing: time 0.001304/0.2613, allocations: 1.379 MB / 409.1 MB, free: 7.566 MB / 318.1 MB Notification: Performance of Initialization: time 1.212e-06/0.2613, allocations: 0 / 409.1 MB, free: 7.566 MB / 318.1 MB Notification: Performance of Tearing: time 0.0007747/0.2621, allocations: 0.817 MB / 409.9 MB, free: 6.715 MB / 318.1 MB Notification: Performance of Categorize: time 3.607e-05/0.2621, allocations: 4 kB / 409.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of Solve: time 0.00116/0.2633, allocations: 0.5358 MB / 410.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001629/0.2649, allocations: 1.537 MB / 412 MB, free: 4.598 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: ............................. 3 (3) {meanVoltage.x, rootMeanSquareVoltage.mean.x, meanCurrent.x} * 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: ........... 80 (scalar:67, 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 164 (scalar:151, 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 164 (scalar:151, 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: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 0.000114/0.2651, allocations: 95.69 kB / 412.1 MB, free: 4.527 MB / 318.1 MB Notification: Performance of SimCode: time 0.004015/0.2691, allocations: 4.404 MB / 416.5 MB, free: 52 kB / 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.