Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001317/0.001317, allocations: 114.6 kB / 18.47 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 208 kB / 19.42 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.254e-05/2.254e-05, allocations: 2.281 kB / 359.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse): time 0.005933/0.005966, allocations: 4.764 MB / 364.1 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.009039, allocations: 1.375 MB / 365.5 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000392/0.009449, allocations: 27.88 kB / 365.5 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007509/0.01021, allocations: 222.4 kB / 365.7 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008302/0.01105, allocations: 345.9 kB / 366.1 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004965/0.0116, allocations: 223.6 kB / 366.3 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.01355, allocations: 1.835 MB / 368.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008274/0.01439, allocations: 0.6246 MB / 368.7 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000857/0.01525, allocations: 0.6115 MB / 369.4 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007471/0.01601, allocations: 0.6112 MB / 370 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.01616, allocations: 104 kB / 370.1 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002079/0.01637, allocations: 104 kB / 370.2 MB, free: 2.121 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001224/0.01761, allocations: 1.506 MB / 371.7 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.1864/0.204, allocations: 0.9934 MB / 372.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004532/0.2045, allocations: 143.8 kB / 372.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0003058/0.2048, allocations: 29.56 kB / 372.8 MB, free: 12.25 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: 251 (147) * Number of variables: 251 (134) Notification: Performance of Bindings: time 0.004323/0.2091, allocations: 4.723 MB / 377.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002717/0.2094, allocations: 315.1 kB / 377.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001982/0.2114, allocations: 2.419 MB / 380.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001892/0.2116, allocations: 121.8 kB / 380.4 MB, free: 9.332 MB / 302.1 MB Notification: Performance of Alias: time 0.002753/0.2144, allocations: 2.508 MB / 382.9 MB, free: 7.836 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001281/0.2145, allocations: 98.45 kB / 383 MB, free: 7.793 MB / 302.1 MB Notification: Performance of Events: time 0.0003629/0.2149, allocations: 309.6 kB / 383.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of Detect States: time 0.0007768/0.2157, allocations: 0.6514 MB / 384 MB, free: 7.191 MB / 302.1 MB Notification: Performance of Partitioning: time 0.00085/0.2165, allocations: 0.8815 MB / 384.8 MB, free: 6.645 MB / 302.1 MB Notification: Performance of Causalize: time 0.006276/0.2228, allocations: 5.554 MB / 390.4 MB, free: 4.562 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.00199/0.2248, allocations: 2.015 MB / 392.4 MB, free: 3.293 MB / 302.1 MB Notification: Performance of Inline: time 0.00401/0.2288, allocations: 4.215 MB / 396.6 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002157/0.2291, allocations: 194 kB / 396.8 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001612/0.2292, allocations: 158.1 kB / 397 MB, free: 500 kB / 302.1 MB Notification: Performance of Causalize: time 0.01439/0.2436, allocations: 13.37 MB / 410.3 MB, free: 6.527 MB / 318.1 MB Notification: Performance of Tearing: time 0.005098/0.2488, allocations: 4.769 MB / 415.1 MB, free: 1.98 MB / 318.1 MB Notification: Performance of Initialization: time 1.823e-06/0.2488, allocations: 4 kB / 415.1 MB, free: 1.977 MB / 318.1 MB Notification: Performance of Tearing: time 0.00491/0.2537, allocations: 4.785 MB / 419.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of Categorize: time 4.203e-05/0.2538, allocations: 7.938 kB / 419.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of Solve: time 0.001079/0.2549, allocations: 398.3 kB / 420.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of Jacobian: time 0.01665/0.2715, allocations: 14.1 MB / 434.4 MB, free: 14.75 MB / 350.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_last, 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: ......... 8 (generic: 8, 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: ........... 76 (scalar:57, array:19, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 32 (generic: 32, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 0.0001075/0.2717, allocations: 42.16 kB / 434.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of SimCode: time 0.01315/0.2848, allocations: 12.4 MB / 446.8 MB, free: 2.266 MB / 350.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.