Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.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.HalfControlledBridge2Pulse,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_p1.off|rectifier.thyristor_p2.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,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_p1.off|rectifier.thyristor_p2.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 109.5 kB / 17.7 MB, free: 5.406 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.0009381/0.0009381, allocations: 192.7 kB / 18.64 MB, free: 4.473 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.221/1.221, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.022e-05/2.025e-05, allocations: 2.281 kB / 302 MB, free: 5.188 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse): time 0.005467/0.005502, allocations: 4.887 MB / 306.9 MB, free: 300 kB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.007582, allocations: 1.4 MB / 308.3 MB, free: 14.89 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002848/0.007878, allocations: 19.88 kB / 308.3 MB, free: 14.87 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002827/0.008168, allocations: 138.7 kB / 308.5 MB, free: 14.73 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004091/0.008598, allocations: 202.2 kB / 308.7 MB, free: 14.53 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005152/0.009122, allocations: 307.5 kB / 309 MB, free: 14.23 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.001069/0.0102, allocations: 1.255 MB / 310.2 MB, free: 12.97 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005365/0.01075, allocations: 466.7 kB / 310.7 MB, free: 12.49 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000388/0.01114, allocations: 366.6 kB / 311 MB, free: 12.13 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003412/0.0115, allocations: 398.2 kB / 311.4 MB, free: 11.74 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.01161, allocations: 96 kB / 311.5 MB, free: 11.65 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.01173, allocations: 92 kB / 311.6 MB, free: 11.56 MB / 254.1 MB Notification: Performance of combineBinaries: time 0.0008381/0.01257, allocations: 1.279 MB / 312.9 MB, free: 10.27 MB / 254.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004111/0.01299, allocations: 0.789 MB / 313.7 MB, free: 9.465 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.01315, allocations: 143.6 kB / 313.8 MB, free: 9.324 MB / 254.1 MB Notification: Performance of FrontEnd: time 0.0001088/0.01327, allocations: 51.69 kB / 313.9 MB, free: 9.273 MB / 254.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 161 (161) * Number of variables: 161 (160) Notification: Performance of Bindings: time 0.002931/0.0162, allocations: 3.8 MB / 317.7 MB, free: 5.312 MB / 254.1 MB Notification: Performance of FunctionAlias: time 0.0001763/0.01639, allocations: 177.3 kB / 317.9 MB, free: 5.133 MB / 254.1 MB Notification: Performance of Early Inline: time 0.001584/0.01798, allocations: 1.851 MB / 319.7 MB, free: 3.238 MB / 254.1 MB Notification: Performance of simplify1: time 0.0001504/0.01814, allocations: 155.8 kB / 319.9 MB, free: 3.086 MB / 254.1 MB Notification: Performance of Alias: time 0.003039/0.02118, allocations: 3.116 MB / 323 MB, free: 15.64 MB / 270.1 MB Notification: Performance of simplify2: time 8.994e-05/0.02128, allocations: 103.8 kB / 323.1 MB, free: 15.54 MB / 270.1 MB Notification: Performance of Events: time 0.0003967/0.02169, allocations: 345.8 kB / 323.4 MB, free: 15.2 MB / 270.1 MB Notification: Performance of Detect States: time 0.0005158/0.02221, allocations: 0.5907 MB / 324 MB, free: 14.6 MB / 270.1 MB Notification: Performance of Partitioning: time 0.0006733/0.0229, allocations: 0.7111 MB / 324.7 MB, free: 13.81 MB / 270.1 MB Notification: Performance of Causalize: time 0.003518/0.02642, allocations: 4.01 MB / 328.7 MB, free: 9.824 MB / 270.1 MB Notification: Performance of After Index Reduction Inline: time 0.001252/0.02768, allocations: 1.483 MB / 330.2 MB, free: 8.312 MB / 270.1 MB Notification: Performance of Inline: time 0.002443/0.03013, allocations: 2.62 MB / 332.8 MB, free: 5.629 MB / 270.1 MB Notification: Performance of Partitioning: time 0.0001827/0.03033, allocations: 179.7 kB / 333 MB, free: 5.434 MB / 270.1 MB Notification: Performance of Cleanup: time 0.0002425/0.03058, allocations: 311.5 kB / 333.3 MB, free: 5.125 MB / 270.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.andCondition_p.y ($RES_EVT_202) slice: {}; [SCAL] (1) $SEV_11 = rectifier.thyristor_p2.s < 0.0 or $PRE.rectifier.thyristor_p2.off and not rectifier.andCondition_n.y ($RES_EVT_201) slice: {}; Notification: Performance of Causalize: time 0.01531/0.04589, allocations: 18.5 MB / 351.8 MB, free: 3.398 MB / 286.1 MB Notification: Performance of Tearing: time 0.001297/0.04721, allocations: 1.487 MB / 353.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of Initialization: time 8.81e-07/0.04722, allocations: 0 / 353.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of Tearing: time 0.0007054/0.04793, allocations: 0.8064 MB / 354.1 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of Categorize: time 1.944e-05/0.04796, allocations: 4 kB / 354.1 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of Solve: time 0.0008459/0.04881, allocations: 0.5551 MB / 354.7 MB, free: 408 kB / 286.1 MB Notification: Performance of Jacobian: time 0.00157/0.05039, allocations: 1.506 MB / 356.2 MB, free: 14.86 MB / 302.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_p.y, rectifier.andCondition_n.u2, rectifier.andCondition_n.y, rectifier.thyristor_p1.off, rectifier.thyristor_p2.off, rectifier.diode_n1.off, rectifier.diode_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: ........... 81 (scalar:68, 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: ........... 158 (scalar:143, array:15, 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: ........... 158 (scalar:143, array:15, 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 7.873e-05/0.05048, allocations: 99.09 kB / 356.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of SimCode: time 0.003164/0.05365, allocations: 4.365 MB / 360.6 MB, free: 10.3 MB / 302.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.