Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.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.Rectifier1Pulse.Thyristor1Pulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 105.8 kB / 16.42 MB, free: 6.461 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.001551/0.001551, allocations: 189.9 kB / 17.36 MB, free: 5.73 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.469/1.469, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.814e-05/2.815e-05, allocations: 2.5 kB / 327.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R): time 0.005051/0.005089, allocations: 3.59 MB / 330.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002431/0.007535, allocations: 1.146 MB / 332 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006625/0.008212, allocations: 11.94 kB / 332 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003915/0.008615, allocations: 87.17 kB / 332.1 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006569/0.009282, allocations: 115 kB / 332.2 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007007/0.01006, allocations: 211.6 kB / 332.4 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.01115, allocations: 0.764 MB / 333.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005253/0.01168, allocations: 303 kB / 333.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004765/0.01217, allocations: 219.2 kB / 333.7 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004235/0.0126, allocations: 242.9 kB / 333.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.01276, allocations: 56 kB / 333.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001171/0.01288, allocations: 56 kB / 334 MB, free: 12.48 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0006863/0.01357, allocations: 0.757 MB / 334.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003535/0.01394, allocations: 484.8 kB / 335.2 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001782/0.01412, allocations: 87.75 kB / 335.3 MB, free: 11.15 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001125/0.01424, allocations: 23.81 kB / 335.3 MB, free: 11.13 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 (95) * Number of variables: 95 (94) Notification: Performance of Bindings: time 0.002511/0.01676, allocations: 2.294 MB / 337.6 MB, free: 8.719 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002136/0.01698, allocations: 111.1 kB / 337.7 MB, free: 8.613 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001198/0.01818, allocations: 1.104 MB / 338.8 MB, free: 7.48 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001993/0.01839, allocations: 87.88 kB / 338.9 MB, free: 7.395 MB / 286.1 MB Notification: Performance of Alias: time 0.002198/0.0206, allocations: 1.807 MB / 340.7 MB, free: 5.379 MB / 286.1 MB Notification: Performance of simplify2: time 0.0001271/0.02074, allocations: 55.92 kB / 340.8 MB, free: 5.324 MB / 286.1 MB Notification: Performance of Events: time 0.0003872/0.02113, allocations: 266.3 kB / 341.1 MB, free: 5.062 MB / 286.1 MB Notification: Performance of Detect States: time 0.0005101/0.02165, allocations: 434.7 kB / 341.5 MB, free: 4.625 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0005402/0.0222, allocations: 459 kB / 341.9 MB, free: 4.105 MB / 286.1 MB Notification: Performance of Causalize: time 0.002592/0.0248, allocations: 2.472 MB / 344.4 MB, free: 1.586 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.001008/0.02582, allocations: 0.9513 MB / 345.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of Inline: time 0.001972/0.0278, allocations: 1.666 MB / 347 MB, free: 14.9 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001483/0.02796, allocations: 115.5 kB / 347.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003676/0.02834, allocations: 199.6 kB / 347.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of Causalize: time 0.01092/0.03927, allocations: 10.96 MB / 358.3 MB, free: 4.008 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006467/0.03993, allocations: 0.7193 MB / 359 MB, free: 3.191 MB / 302.1 MB Notification: Performance of Initialization: time 8.01e-07/0.03994, allocations: 4 kB / 359 MB, free: 3.188 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003347/0.04028, allocations: 374 kB / 359.4 MB, free: 2.773 MB / 302.1 MB Notification: Performance of Categorize: time 2.347e-05/0.04032, allocations: 3.938 kB / 359.4 MB, free: 2.77 MB / 302.1 MB Notification: Performance of Solve: time 0.0006409/0.04097, allocations: 371.8 kB / 359.7 MB, free: 2.406 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0007679/0.04174, allocations: 0.7385 MB / 360.5 MB, free: 1.621 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: ......... 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: ............................. 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, meanVoltage.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 29 (29) {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, idealthyristor.off, $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: ........... 59 (scalar:50, array:9, 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: ........... 109 (scalar:100, array:9, 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: ........... 109 (scalar:100, array:9, 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.0001454/0.0419, allocations: 78.05 kB / 360.5 MB, free: 1.555 MB / 302.1 MB Notification: Performance of SimCode: time 0.002681/0.04458, allocations: 2.783 MB / 363.3 MB, free: 14.71 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.