Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.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.RectifierBridge2mPulse.DiodeBridge2mPulse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 105.7 kB / 16.42 MB, free: 6.516 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.001154/0.001154, allocations: 189.9 kB / 17.35 MB, free: 5.754 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.492/1.492, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.885e-05/1.886e-05, allocations: 7.062 kB / 327.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse): time 0.005292/0.005319, allocations: 4.667 MB / 331.9 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.007611, allocations: 1.352 MB / 333.2 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002618/0.007885, allocations: 23.88 kB / 333.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006032/0.008495, allocations: 214.4 kB / 333.5 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006538/0.009159, allocations: 342 kB / 333.8 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.009557, allocations: 215.6 kB / 334 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001551/0.01112, allocations: 1.796 MB / 335.8 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000649/0.01178, allocations: 0.5726 MB / 336.4 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005882/0.01237, allocations: 0.5843 MB / 336.9 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006374/0.01302, allocations: 0.6035 MB / 337.6 MB, free: 8.922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.01314, allocations: 99.94 kB / 337.6 MB, free: 8.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.01329, allocations: 96 kB / 337.7 MB, free: 8.73 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001104/0.0144, allocations: 1.471 MB / 339.2 MB, free: 7.246 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006351/0.01504, allocations: 0.9694 MB / 340.2 MB, free: 6.266 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.0152, allocations: 147.5 kB / 340.3 MB, free: 6.121 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.07e-05/0.0153, allocations: 27.94 kB / 340.4 MB, free: 6.094 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: 248 (140) * Number of variables: 248 (131) Notification: Performance of Bindings: time 0.004067/0.01937, allocations: 4.604 MB / 345 MB, free: 1.34 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002825/0.01966, allocations: 247.6 kB / 345.2 MB, free: 1.094 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001823/0.0215, allocations: 2.037 MB / 347.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001292/0.02164, allocations: 115.8 kB / 347.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of Alias: time 0.002391/0.02404, allocations: 2.284 MB / 349.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simplify2: time 9.015e-05/0.02414, allocations: 87.88 kB / 349.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of Events: time 0.0003301/0.02447, allocations: 307.4 kB / 350 MB, free: 12.07 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005761/0.02506, allocations: 0.6351 MB / 350.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0008642/0.02593, allocations: 0.8635 MB / 351.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of Causalize: time 0.006939/0.03288, allocations: 7.468 MB / 359 MB, free: 3.141 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001878/0.03478, allocations: 1.956 MB / 360.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of Inline: time 0.003927/0.03872, allocations: 3.654 MB / 364.6 MB, free: 13.44 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002258/0.03896, allocations: 187.7 kB / 364.8 MB, free: 13.24 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0001556/0.03912, allocations: 151.8 kB / 364.9 MB, free: 13.09 MB / 318.1 MB Notification: Performance of Causalize: time 0.1827/0.2218, allocations: 15.18 MB / 380.1 MB, free: 39.34 MB / 318.1 MB Notification: Performance of Tearing: time 0.005261/0.2271, allocations: 4.774 MB / 384.9 MB, free: 38.82 MB / 318.1 MB Notification: Performance of Initialization: time 1.563e-06/0.2271, allocations: 5.156 kB / 384.9 MB, free: 38.82 MB / 318.1 MB Notification: Performance of Tearing: time 0.004803/0.2319, allocations: 4.776 MB / 389.7 MB, free: 37.93 MB / 318.1 MB Notification: Performance of Categorize: time 3.988e-05/0.232, allocations: 7.344 kB / 389.7 MB, free: 37.93 MB / 318.1 MB Notification: Performance of Solve: time 0.0009701/0.233, allocations: 396 kB / 390.1 MB, free: 37.89 MB / 318.1 MB Notification: Performance of Jacobian: time 0.01299/0.246, allocations: 14.09 MB / 404.1 MB, free: 31.38 MB / 318.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 2 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 7 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 3 (3) {meanVoltage.x, rootMeanSquareVoltage.mean.x, meanCurrent.x} * Number of discrete states: .................... 3 (3) {meanCurrent.y, rootMeanSquareVoltage.mean.y, meanVoltage.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 23 (13) {rectifier.diode_p.idealDiode.off, rectifier.diode_n.idealDiode.off, $SEV_4[$i1], $SEV_3[$i1], $SEV_2[$i1], $SEV_1[$i1], $SEV_0, $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: ........... 45 (scalar:31, array:14, record:0) * Number of multi strong components: ............ 3 (algorithm:0, when:3, if:0, tuple:0) * Number of for-loop strong components: ......... 9 (generic: 9, 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: ........... 75 (scalar:56, array:19, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 33 (generic: 33, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 7.055e-05/0.246, allocations: 64.16 kB / 404.2 MB, free: 31.35 MB / 318.1 MB Notification: Performance of SimCode: time 0.007554/0.2536, allocations: 12.23 MB / 416.4 MB, free: 23.33 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.