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_Characteristic.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_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_n.off|rectifier.thyristor_p.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV_Characteristic") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_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_n.off|rectifier.thyristor_p.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV_Characteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 109.2 kB / 17.75 MB, free: 5.309 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.001361/0.001362, allocations: 196.5 kB / 18.69 MB, free: 4.379 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.277/1.277, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.311e-05, allocations: 5.797 kB / 352 MB, free: 3.199 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV_Characteristic): time 0.006302/0.006335, allocations: 4.833 MB / 356.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002994/0.009342, allocations: 1.383 MB / 358.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007766/0.01013, allocations: 15.94 kB / 358.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000548/0.01069, allocations: 138.7 kB / 358.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008353/0.01153, allocations: 198.3 kB / 358.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008034/0.01237, allocations: 295.5 kB / 358.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001235/0.01362, allocations: 1.201 MB / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006692/0.0143, allocations: 474.7 kB / 360.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004354/0.01474, allocations: 366.6 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003941/0.01515, allocations: 378.2 kB / 361.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.01527, allocations: 88 kB / 361.3 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.0154, allocations: 88 kB / 361.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0009428/0.01634, allocations: 1.267 MB / 362.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005362/0.01689, allocations: 0.7853 MB / 363.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.01706, allocations: 143.5 kB / 363.6 MB, free: 7.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0002302/0.0173, allocations: 39.75 kB / 363.6 MB, free: 7.453 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: 160 (160) * Number of variables: 160 (159) Notification: Performance of Bindings: time 0.003484/0.02079, allocations: 3.641 MB / 367.3 MB, free: 3.656 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0003202/0.02112, allocations: 297.8 kB / 367.6 MB, free: 3.363 MB / 302.1 MB Notification: Performance of Early Inline: time 0.00172/0.02284, allocations: 1.788 MB / 369.4 MB, free: 1.535 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001807/0.02303, allocations: 163.8 kB / 369.5 MB, free: 1.375 MB / 302.1 MB Notification: Performance of Alias: time 0.2161/0.2391, allocations: 3.508 MB / 373 MB, free: 16.25 MB / 302.1 MB Notification: Performance of simplify2: time 0.0002006/0.2394, allocations: 97.38 kB / 373.1 MB, free: 16.25 MB / 302.1 MB Notification: Performance of Events: time 0.0004257/0.2398, allocations: 327 kB / 373.4 MB, free: 16.21 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006175/0.2404, allocations: 0.5848 MB / 374 MB, free: 16.14 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007645/0.2412, allocations: 0.6697 MB / 374.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of Causalize: time 0.003059/0.2443, allocations: 2.658 MB / 377.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001347/0.2456, allocations: 1.405 MB / 378.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Inline: time 0.002445/0.2481, allocations: 2.537 MB / 381.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001776/0.2483, allocations: 179.6 kB / 381.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002603/0.2485, allocations: 289.9 kB / 381.8 MB, free: 13.38 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_203) 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_202) slice: {}; Notification: Performance of Causalize: time 0.01648/0.265, allocations: 15.19 MB / 396.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005361/0.2656, allocations: 0.7585 MB / 397.7 MB, free: 4.777 MB / 302.1 MB Notification: Performance of Initialization: time 9.82e-07/0.2656, allocations: 4 kB / 397.7 MB, free: 4.773 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003167/0.2659, allocations: 457.1 kB / 398.2 MB, free: 4.32 MB / 302.1 MB Notification: Performance of Categorize: time 3.482e-05/0.266, allocations: 10.61 kB / 398.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of Solve: time 0.001163/0.2671, allocations: 0.5429 MB / 398.7 MB, free: 3.852 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0009841/0.2681, allocations: 1.113 MB / 399.8 MB, free: 2.742 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: ................. 43 (43) {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_11, $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: ........... 91 (scalar:78, 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: ........... 165 (scalar:152, 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: ........... 165 (scalar:152, 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.0001463/0.2683, allocations: 107.8 kB / 399.9 MB, free: 2.691 MB / 302.1 MB Notification: Performance of SimCode: time 0.003702/0.272, allocations: 3.911 MB / 403.8 MB, free: 15.44 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.