Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0009544/0.0009545, allocations: 106.4 kB / 18.36 MB, free: 4.754 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.0009179/0.0009179, allocations: 196.7 kB / 19.3 MB, free: 3.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.342/1.342, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.174e-05/2.182e-05, allocations: 2.281 kB / 282.1 MB, free: 2.508 MB / 222.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV): time 0.005946/0.005983, allocations: 4.71 MB / 286.8 MB, free: 13.77 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.008468, allocations: 1.376 MB / 288.2 MB, free: 12.38 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003424/0.008825, allocations: 15.94 kB / 288.2 MB, free: 12.36 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003095/0.009143, allocations: 130.7 kB / 288.3 MB, free: 12.23 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004835/0.009661, allocations: 182.3 kB / 288.5 MB, free: 12.05 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005358/0.01021, allocations: 294.6 kB / 288.8 MB, free: 11.77 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.01126, allocations: 1.123 MB / 289.9 MB, free: 10.64 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005448/0.01182, allocations: 398.5 kB / 290.3 MB, free: 10.25 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003496/0.01217, allocations: 338.7 kB / 290.6 MB, free: 9.922 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003354/0.01252, allocations: 358.3 kB / 291 MB, free: 9.57 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 9.9e-05/0.01263, allocations: 87.98 kB / 291 MB, free: 9.484 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.01274, allocations: 80 kB / 291.1 MB, free: 9.406 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0008091/0.01355, allocations: 1.186 MB / 292.3 MB, free: 8.207 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004155/0.01398, allocations: 0.7467 MB / 293.1 MB, free: 7.449 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.01412, allocations: 131.6 kB / 293.2 MB, free: 7.32 MB / 238.1 MB Notification: Performance of FrontEnd: time 0.0001248/0.01426, allocations: 39.75 kB / 293.2 MB, free: 7.281 MB / 238.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 (151) * Number of variables: 151 (150) Notification: Performance of Bindings: time 0.003014/0.01728, allocations: 3.404 MB / 296.6 MB, free: 3.734 MB / 238.1 MB Notification: Performance of FunctionAlias: time 0.0003153/0.0176, allocations: 290.2 kB / 296.9 MB, free: 3.438 MB / 238.1 MB Notification: Performance of Early Inline: time 0.001526/0.01913, allocations: 1.678 MB / 298.6 MB, free: 1.723 MB / 238.1 MB Notification: Performance of simplify1: time 0.0001528/0.01929, allocations: 147.8 kB / 298.7 MB, free: 1.578 MB / 238.1 MB Notification: Performance of Alias: time 0.003122/0.02242, allocations: 3.014 MB / 301.7 MB, free: 14.25 MB / 254.1 MB Notification: Performance of simplify2: time 8.567e-05/0.02252, allocations: 87.88 kB / 301.8 MB, free: 14.16 MB / 254.1 MB Notification: Performance of Events: time 0.0003424/0.02287, allocations: 293 kB / 302.1 MB, free: 13.88 MB / 254.1 MB Notification: Performance of Detect States: time 0.0007142/0.02359, allocations: 0.5534 MB / 302.7 MB, free: 13.31 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0006114/0.02421, allocations: 0.6134 MB / 303.3 MB, free: 12.63 MB / 254.1 MB Notification: Performance of Causalize: time 0.003284/0.02751, allocations: 3.381 MB / 306.7 MB, free: 9.25 MB / 254.1 MB Notification: Performance of After Index Reduction Inline: time 0.001194/0.02871, allocations: 1.288 MB / 308 MB, free: 7.938 MB / 254.1 MB Notification: Performance of Inline: time 0.002287/0.03101, allocations: 2.345 MB / 310.3 MB, free: 5.531 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0001805/0.0312, allocations: 163.7 kB / 310.5 MB, free: 5.355 MB / 254.1 MB Notification: Performance of Cleanup: time 0.0002328/0.03144, allocations: 279.5 kB / 310.7 MB, free: 5.074 MB / 254.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_9 = rectifier.thyristor_p.s < 0.0 or $PRE.rectifier.thyristor_p.off and not rectifier.andCondition_p.y ($RES_EVT_190) slice: {}; [SCAL] (1) $SEV_8 = rectifier.thyristor_n.s < 0.0 or $PRE.rectifier.thyristor_n.off and not rectifier.andCondition_n.y ($RES_EVT_189) slice: {}; Notification: Performance of Causalize: time 0.01454/0.04599, allocations: 16.46 MB / 327.2 MB, free: 5.215 MB / 270.1 MB Notification: Performance of Tearing: time 0.0006022/0.04661, allocations: 0.7578 MB / 327.9 MB, free: 4.359 MB / 270.1 MB Notification: Performance of Initialization: time 1.132e-06/0.04662, allocations: 4 kB / 327.9 MB, free: 4.355 MB / 270.1 MB Notification: Performance of Tearing: time 0.000332/0.04696, allocations: 454 kB / 328.4 MB, free: 3.863 MB / 270.1 MB Notification: Performance of Categorize: time 2.052e-05/0.04699, allocations: 4 kB / 328.4 MB, free: 3.859 MB / 270.1 MB Notification: Performance of Solve: time 0.0008572/0.04785, allocations: 0.5396 MB / 328.9 MB, free: 3.312 MB / 270.1 MB Notification: Performance of Jacobian: time 0.00102/0.04888, allocations: 1.045 MB / 330 MB, free: 2.227 MB / 270.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: ......... 8 * 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, meanVoltage.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 40 (40) {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.negativeEqual.y, pulse2.twoPulse.fire_p, pulse2.twoPulse.fire_n, pulse2.fire_p, pulse2.fire_n, $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: ........... 83 (scalar:72, array:11, 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: ........... 160 (scalar:149, array:11, 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: ........... 160 (scalar:149, array:11, 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.0001016/0.04899, allocations: 108.4 kB / 330.1 MB, free: 2.129 MB / 270.1 MB Notification: Performance of SimCode: time 0.003055/0.05205, allocations: 3.687 MB / 333.8 MB, free: 14.35 MB / 286.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.