Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV.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.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV,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_n.off|rectifier.thyristor_p.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV,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_n.off|rectifier.thyristor_p.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 111.8 kB / 17.75 MB, free: 5.352 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.001148/0.001148, allocations: 189.9 kB / 18.68 MB, free: 4.426 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.281/1.281, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.047e-05/2.048e-05, allocations: 2.281 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV): time 0.005956/0.005985, allocations: 4.802 MB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00265/0.008656, allocations: 1.364 MB / 358.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003864/0.009057, allocations: 15.94 kB / 358.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003398/0.009404, allocations: 134.7 kB / 358.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004676/0.009918, allocations: 194.3 kB / 358.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005349/0.01046, allocations: 299.5 kB / 358.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001076/0.01155, allocations: 1.193 MB / 360 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005708/0.01213, allocations: 458.7 kB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003429/0.01248, allocations: 350.7 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003811/0.01287, allocations: 378.2 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.01299, allocations: 88 kB / 361.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001172/0.01311, allocations: 88 kB / 361.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0007794/0.0139, allocations: 1.248 MB / 362.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003909/0.0143, allocations: 0.7776 MB / 363.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000127/0.01443, allocations: 135.6 kB / 363.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.000155/0.01459, allocations: 39.75 kB / 363.5 MB, free: 7.621 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: 158 (158) * Number of variables: 158 (157) Notification: Performance of Bindings: time 0.003088/0.01768, allocations: 3.692 MB / 367.2 MB, free: 3.773 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002218/0.01791, allocations: 186.6 kB / 367.4 MB, free: 3.586 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001557/0.01948, allocations: 1.76 MB / 369.1 MB, free: 1.785 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001758/0.01966, allocations: 151.8 kB / 369.3 MB, free: 1.637 MB / 302.1 MB Notification: Performance of Alias: time 0.2322/0.2518, allocations: 3.483 MB / 372.8 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001642/0.252, allocations: 94.28 kB / 372.9 MB, free: 16.49 MB / 302.1 MB Notification: Performance of Events: time 0.0004028/0.2525, allocations: 314.1 kB / 373.2 MB, free: 16.46 MB / 302.1 MB Notification: Performance of Detect States: time 0.0007035/0.2532, allocations: 0.5694 MB / 373.7 MB, free: 16.4 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007216/0.2539, allocations: 0.6475 MB / 374.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of Causalize: time 0.003055/0.257, allocations: 2.586 MB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.00145/0.2584, allocations: 1.362 MB / 378.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of Inline: time 0.002771/0.2612, allocations: 2.529 MB / 380.9 MB, free: 14 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002011/0.2614, allocations: 181.6 kB / 381 MB, free: 13.88 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002897/0.2617, allocations: 287.9 kB / 381.3 MB, free: 13.71 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_10 = rectifier.thyristor_p.s < 0.0 or $PRE.rectifier.thyristor_p.off and not rectifier.andCondition_p.y ($RES_EVT_199) slice: {}; [SCAL] (1) $SEV_9 = rectifier.thyristor_n.s < 0.0 or $PRE.rectifier.thyristor_n.off and not rectifier.andCondition_n.y ($RES_EVT_198) slice: {}; Notification: Performance of Causalize: time 0.01787/0.2796, allocations: 15.45 MB / 396.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005371/0.2802, allocations: 0.7549 MB / 397.5 MB, free: 5.047 MB / 302.1 MB Notification: Performance of Initialization: time 1.052e-06/0.2802, allocations: 0 / 397.5 MB, free: 5.047 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002939/0.2805, allocations: 462.3 kB / 398 MB, free: 4.594 MB / 302.1 MB Notification: Performance of Categorize: time 2.949e-05/0.2805, allocations: 6.625 kB / 398 MB, free: 4.59 MB / 302.1 MB Notification: Performance of Solve: time 0.0009539/0.2815, allocations: 0.5394 MB / 398.5 MB, free: 4.133 MB / 302.1 MB Notification: Performance of Jacobian: time 0.000835/0.2823, allocations: 1.088 MB / 399.6 MB, free: 3.039 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: ............................. 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: ................. 41 (41) {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_p.off, rectifier.thyristor_n.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_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_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: ........... 88 (scalar:75, 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: ........... 167 (scalar:154, 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: ........... 167 (scalar:154, 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.034e-05/0.2824, allocations: 105.8 kB / 399.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of SimCode: time 0.002824/0.2852, allocations: 3.89 MB / 403.6 MB, free: 15.81 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.