Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 101.5 kB / 17.69 MB, free: 5.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.001115/0.001115, allocations: 192.7 kB / 18.63 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 222.9 MB / 242.3 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.062e-05/2.072e-05, allocations: 6.219 kB / 302 MB, free: 5.219 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.00311/0.003146, allocations: 2.51 MB / 304.5 MB, free: 2.707 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009294/0.004089, allocations: 0.6434 MB / 305.2 MB, free: 2.062 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.111e-05/0.004191, allocations: 4 kB / 305.2 MB, free: 2.059 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.004322, allocations: 39.64 kB / 305.2 MB, free: 2.02 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.004429, allocations: 79.27 kB / 305.3 MB, free: 1.941 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002479/0.00469, allocations: 83.83 kB / 305.4 MB, free: 1.859 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002734/0.004972, allocations: 314.6 kB / 305.7 MB, free: 1.551 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.005132, allocations: 92.22 kB / 305.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.005267, allocations: 107.6 kB / 305.9 MB, free: 1.355 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.005391, allocations: 119.5 kB / 306 MB, free: 1.238 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 3.093e-05/0.005428, allocations: 20 kB / 306 MB, free: 1.219 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.373e-05/0.005507, allocations: 39.98 kB / 306 MB, free: 1.18 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0002432/0.005757, allocations: 379.8 kB / 306.4 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001063/0.005869, allocations: 232.5 kB / 306.6 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 3.784e-05/0.005913, allocations: 43.88 kB / 306.7 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd: time 2.232e-05/0.005941, allocations: 12 kB / 306.7 MB, free: 0.5195 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: 49 (49) * Number of variables: 49 (49) Notification: Performance of Bindings: time 0.0008822/0.006828, allocations: 1.153 MB / 307.8 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FunctionAlias: time 8.616e-05/0.00692, allocations: 62.7 kB / 307.9 MB, free: 15.2 MB / 254.1 MB Notification: Performance of Early Inline: time 0.0005409/0.007468, allocations: 0.679 MB / 308.6 MB, free: 14.49 MB / 254.1 MB Notification: Performance of simplify1: time 5.094e-05/0.007528, allocations: 59.92 kB / 308.6 MB, free: 14.43 MB / 254.1 MB Notification: Performance of Alias: time 0.001056/0.008589, allocations: 1.069 MB / 309.7 MB, free: 13.23 MB / 254.1 MB Notification: Performance of simplify2: time 3.264e-05/0.008632, allocations: 35.95 kB / 309.7 MB, free: 13.2 MB / 254.1 MB Notification: Performance of Events: time 9.287e-05/0.00873, allocations: 67.81 kB / 309.8 MB, free: 13.13 MB / 254.1 MB Notification: Performance of Detect States: time 0.0001587/0.008898, allocations: 136.1 kB / 309.9 MB, free: 12.98 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0001592/0.009065, allocations: 164.9 kB / 310.1 MB, free: 12.8 MB / 254.1 MB Notification: Performance of Causalize: time 0.000723/0.009796, allocations: 0.8162 MB / 310.9 MB, free: 11.98 MB / 254.1 MB Notification: Performance of After Index Reduction Inline: time 0.000303/0.01011, allocations: 396.7 kB / 311.3 MB, free: 11.56 MB / 254.1 MB Notification: Performance of Inline: time 0.0005729/0.01069, allocations: 0.7039 MB / 312 MB, free: 10.82 MB / 254.1 MB Notification: Performance of Partitioning: time 4.686e-05/0.01074, allocations: 46.53 kB / 312.1 MB, free: 10.77 MB / 254.1 MB Notification: Performance of Cleanup: time 2.461e-05/0.01077, allocations: 27.91 kB / 312.1 MB, free: 10.75 MB / 254.1 MB Notification: Performance of Causalize: time 0.000905/0.01169, allocations: 1.036 MB / 313.1 MB, free: 9.703 MB / 254.1 MB Notification: Performance of Tearing: time 0.0003872/0.01208, allocations: 474 kB / 313.6 MB, free: 9.191 MB / 254.1 MB Notification: Performance of Initialization: time 4.41e-07/0.01209, allocations: 0 / 313.6 MB, free: 9.191 MB / 254.1 MB Notification: Performance of Tearing: time 0.0003162/0.01241, allocations: 454 kB / 314 MB, free: 8.699 MB / 254.1 MB Notification: Performance of Categorize: time 9.668e-06/0.01243, allocations: 3.984 kB / 314 MB, free: 8.695 MB / 254.1 MB Notification: Performance of Solve: time 0.0001218/0.01256, allocations: 88.16 kB / 314.1 MB, free: 8.609 MB / 254.1 MB Notification: Performance of Jacobian: time 0.0002971/0.01286, allocations: 421.8 kB / 314.5 MB, free: 8.16 MB / 254.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: ........... 17 (scalar:17, 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: ........... 26 (scalar:26, 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.332e-05/0.0129, allocations: 27.55 kB / 314.6 MB, free: 8.137 MB / 254.1 MB Notification: Performance of SimCode: time 0.0009991/0.01391, allocations: 1.509 MB / 316.1 MB, free: 6.605 MB / 254.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.