Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 119.6 kB / 18.47 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 209.1 kB / 19.42 MB, free: 3.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.184e-05/2.184e-05, allocations: 4.391 kB / 359.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003165/0.003198, allocations: 2.553 MB / 361.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009708/0.00418, allocations: 0.6972 MB / 362.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.359e-05/0.004287, allocations: 4 kB / 362.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.00441, allocations: 35.64 kB / 362.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.004527, allocations: 75.34 kB / 362.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.004811, allocations: 95.77 kB / 362.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002844/0.005105, allocations: 318.7 kB / 363.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.005278, allocations: 80.36 kB / 363.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.005456, allocations: 119.5 kB / 363.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.005587, allocations: 111.5 kB / 363.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.417e-05/0.005627, allocations: 24 kB / 363.4 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.789e-05/0.00572, allocations: 43.98 kB / 363.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0002628/0.00599, allocations: 395.6 kB / 363.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001178/0.006113, allocations: 236.5 kB / 364.1 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.936e-05/0.006158, allocations: 43.88 kB / 364.1 MB, free: 8.148 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.938e-05/0.006194, allocations: 4 kB / 364.1 MB, free: 8.145 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: 49 (49) * Number of variables: 49 (49) Notification: Performance of Bindings: time 0.0009197/0.007121, allocations: 1.156 MB / 365.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of FunctionAlias: time 7.002e-05/0.007196, allocations: 55.83 kB / 365.3 MB, free: 6.824 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0005518/0.007755, allocations: 0.675 MB / 366 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simplify1: time 5.102e-05/0.007813, allocations: 59.94 kB / 366.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of Alias: time 0.001246/0.009065, allocations: 1.193 MB / 367.3 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simplify2: time 3.325e-05/0.009108, allocations: 31.95 kB / 367.3 MB, free: 4.707 MB / 302.1 MB Notification: Performance of Events: time 0.000106/0.009222, allocations: 75.81 kB / 367.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of Detect States: time 0.0001549/0.009384, allocations: 136 kB / 367.5 MB, free: 4.484 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001568/0.009549, allocations: 159.8 kB / 367.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of Causalize: time 0.0006022/0.01016, allocations: 0.5811 MB / 368.2 MB, free: 3.711 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003171/0.01048, allocations: 388.4 kB / 368.6 MB, free: 3.305 MB / 302.1 MB Notification: Performance of Inline: time 0.0006139/0.01111, allocations: 0.7034 MB / 369.3 MB, free: 2.566 MB / 302.1 MB Notification: Performance of Partitioning: time 3.656e-05/0.01115, allocations: 42.36 kB / 369.4 MB, free: 2.52 MB / 302.1 MB Notification: Performance of Cleanup: time 2.765e-05/0.01118, allocations: 31.91 kB / 369.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of Causalize: time 0.0009046/0.01209, allocations: 0.8524 MB / 370.3 MB, free: 1.625 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003966/0.0125, allocations: 449.9 kB / 370.7 MB, free: 1.137 MB / 302.1 MB Notification: Performance of Initialization: time 4.41e-07/0.01251, allocations: 4 kB / 370.7 MB, free: 1.133 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003371/0.01285, allocations: 465.8 kB / 371.2 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of Categorize: time 8.666e-06/0.01287, allocations: 4 kB / 371.2 MB, free: 0.625 MB / 302.1 MB Notification: Performance of Solve: time 0.0001267/0.013, allocations: 83.86 kB / 371.2 MB, free: 0.543 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0002986/0.01331, allocations: 410.1 kB / 371.6 MB, free: 108 kB / 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: ......... 2 * 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: ............................. 2 (2) {Capacitor1.v, HeatCapacitor1.T} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 4 (4) {$SEV_2, $SEV_1, $SEV_0, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 16 (scalar:16, array:0, 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] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 25 (scalar:25, array:0, 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 3.21e-05/0.01335, allocations: 26.91 kB / 371.7 MB, free: 88 kB / 302.1 MB Notification: Performance of SimCode: time 0.1401/0.1534, allocations: 1.506 MB / 373.2 MB, free: 15.23 MB / 302.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.