Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.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.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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001148/0.001148, allocations: 108.3 kB / 18.47 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001158, allocations: 214.2 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.212/1.212, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.893e-05/2.894e-05, allocations: 5.094 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse): time 0.005859/0.005896, allocations: 4.913 MB / 364.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.008342, allocations: 1.48 MB / 365.7 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002811/0.008636, allocations: 15.94 kB / 365.8 MB, free: 6.523 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003034/0.008946, allocations: 142.6 kB / 365.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004337/0.009409, allocations: 198.3 kB / 366.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005513/0.009969, allocations: 319.5 kB / 366.4 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001101/0.01108, allocations: 1.255 MB / 367.7 MB, free: 4.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005844/0.01167, allocations: 466.8 kB / 368.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003797/0.01206, allocations: 378.6 kB / 368.5 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003511/0.01242, allocations: 406.1 kB / 368.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.01255, allocations: 92 kB / 369 MB, free: 3.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.0127, allocations: 96 kB / 369.1 MB, free: 3.18 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008702/0.01358, allocations: 1.294 MB / 370.4 MB, free: 1.871 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004391/0.01403, allocations: 0.8006 MB / 371.2 MB, free: 1.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.01418, allocations: 155.4 kB / 371.3 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001248/0.01431, allocations: 35.81 kB / 371.3 MB, free: 0.8711 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: 161 (161) * Number of variables: 161 (160) Notification: Performance of Bindings: time 0.1506/0.165, allocations: 3.732 MB / 375.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002689/0.1652, allocations: 286.2 kB / 375.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001951/0.1672, allocations: 2.137 MB / 377.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002132/0.1674, allocations: 160.4 kB / 377.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of Alias: time 0.003516/0.171, allocations: 3.456 MB / 381.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001271/0.1711, allocations: 105.8 kB / 381.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of Events: time 0.0003995/0.1715, allocations: 339.2 kB / 381.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005329/0.172, allocations: 0.59 MB / 382.1 MB, free: 9.293 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006278/0.1727, allocations: 0.7078 MB / 382.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of Causalize: time 0.00312/0.1758, allocations: 2.853 MB / 385.7 MB, free: 7.68 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001319/0.1771, allocations: 1.478 MB / 387.2 MB, free: 6.762 MB / 302.1 MB Notification: Performance of Inline: time 0.002813/0.18, allocations: 3.058 MB / 390.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001769/0.1801, allocations: 189.9 kB / 390.4 MB, free: 4.742 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002716/0.1804, allocations: 308.3 kB / 390.7 MB, free: 4.555 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.andCondition_p.y ($RES_EVT_201) 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_200) slice: {}; Notification: Performance of Causalize: time 0.01784/0.1983, allocations: 16.36 MB / 407.1 MB, free: 9.508 MB / 318.1 MB Notification: Performance of Tearing: time 0.001412/0.1997, allocations: 1.477 MB / 408.6 MB, free: 8.051 MB / 318.1 MB Notification: Performance of Initialization: time 1.432e-06/0.1997, allocations: 0 / 408.6 MB, free: 8.051 MB / 318.1 MB Notification: Performance of Tearing: time 0.0007812/0.2005, allocations: 0.8127 MB / 409.4 MB, free: 7.23 MB / 318.1 MB Notification: Performance of Categorize: time 3.251e-05/0.2006, allocations: 4 kB / 409.4 MB, free: 7.227 MB / 318.1 MB Notification: Performance of Solve: time 0.001076/0.2016, allocations: 0.5227 MB / 409.9 MB, free: 6.703 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0016/0.2032, allocations: 1.513 MB / 411.4 MB, free: 5.152 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_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: ........... 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: ........... 158 (scalar:145, 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: ........... 158 (scalar:145, 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 9.811e-05/0.2034, allocations: 94.06 kB / 411.5 MB, free: 5.07 MB / 318.1 MB Notification: Performance of SimCode: time 0.003648/0.207, allocations: 4.385 MB / 415.9 MB, free: 0.6016 MB / 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.