Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001196/0.001196, allocations: 105.1 kB / 18.36 MB, free: 4.754 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.001307/0.001307, allocations: 196.7 kB / 19.3 MB, free: 3.824 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.264/1.264, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.141e-05, allocations: 2.281 kB / 282.1 MB, free: 2.523 MB / 222.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003297/0.003333, allocations: 2.47 MB / 284.5 MB, free: 28 kB / 222.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.004472, allocations: 0.6747 MB / 285.2 MB, free: 15.35 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.004595, allocations: 4 kB / 285.2 MB, free: 15.34 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.004739, allocations: 35.64 kB / 285.2 MB, free: 15.31 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.004877, allocations: 67.34 kB / 285.3 MB, free: 15.24 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.005161, allocations: 79.83 kB / 285.4 MB, free: 15.16 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002888/0.005459, allocations: 314.7 kB / 285.7 MB, free: 14.86 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.005638, allocations: 84.33 kB / 285.8 MB, free: 14.77 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.00579, allocations: 111.5 kB / 285.9 MB, free: 14.66 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.005923, allocations: 115.5 kB / 286 MB, free: 14.55 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.005962, allocations: 20 kB / 286 MB, free: 14.53 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.034e-05/0.00605, allocations: 39.98 kB / 286 MB, free: 14.49 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0002761/0.006332, allocations: 371.8 kB / 286.4 MB, free: 14.12 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001077/0.006448, allocations: 236.6 kB / 286.6 MB, free: 13.89 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 4.181e-05/0.006496, allocations: 43.88 kB / 286.7 MB, free: 13.84 MB / 238.1 MB Notification: Performance of FrontEnd: time 3.037e-05/0.006532, allocations: 11.98 kB / 286.7 MB, free: 13.83 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.000952/0.007489, allocations: 1.125 MB / 287.8 MB, free: 12.6 MB / 238.1 MB Notification: Performance of FunctionAlias: time 0.0001044/0.007602, allocations: 71.88 kB / 287.9 MB, free: 12.53 MB / 238.1 MB Notification: Performance of Early Inline: time 0.0005662/0.008176, allocations: 0.6711 MB / 288.6 MB, free: 11.84 MB / 238.1 MB Notification: Performance of simplify1: time 5.227e-05/0.008236, allocations: 55.94 kB / 288.6 MB, free: 11.78 MB / 238.1 MB Notification: Performance of Alias: time 0.001184/0.009429, allocations: 1.071 MB / 289.7 MB, free: 10.58 MB / 238.1 MB Notification: Performance of simplify2: time 3.679e-05/0.009477, allocations: 35.95 kB / 289.7 MB, free: 10.55 MB / 238.1 MB Notification: Performance of Events: time 0.0001178/0.009603, allocations: 67.88 kB / 289.8 MB, free: 10.48 MB / 238.1 MB Notification: Performance of Detect States: time 0.0001948/0.009807, allocations: 138.5 kB / 289.9 MB, free: 10.33 MB / 238.1 MB Notification: Performance of Partitioning: time 0.0001865/0.01, allocations: 164.3 kB / 290.1 MB, free: 10.15 MB / 238.1 MB Notification: Performance of Causalize: time 0.0007864/0.0108, allocations: 0.8105 MB / 290.9 MB, free: 9.32 MB / 238.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003318/0.01114, allocations: 393.7 kB / 291.3 MB, free: 8.91 MB / 238.1 MB Notification: Performance of Inline: time 0.0006198/0.01176, allocations: 0.6996 MB / 292 MB, free: 8.172 MB / 238.1 MB Notification: Performance of Partitioning: time 4.322e-05/0.01182, allocations: 42.34 kB / 292 MB, free: 8.121 MB / 238.1 MB Notification: Performance of Cleanup: time 2.661e-05/0.01185, allocations: 27.91 kB / 292 MB, free: 8.094 MB / 238.1 MB Notification: Performance of Causalize: time 0.001003/0.01286, allocations: 1.042 MB / 293.1 MB, free: 7.055 MB / 238.1 MB Notification: Performance of Tearing: time 0.0004357/0.01331, allocations: 458 kB / 293.5 MB, free: 6.559 MB / 238.1 MB Notification: Performance of Initialization: time 5.41e-07/0.01332, allocations: 0 / 293.5 MB, free: 6.559 MB / 238.1 MB Notification: Performance of Tearing: time 0.0003427/0.01367, allocations: 474.1 kB / 294 MB, free: 6.047 MB / 238.1 MB Notification: Performance of Categorize: time 1.161e-05/0.01369, allocations: 4 kB / 294 MB, free: 6.043 MB / 238.1 MB Notification: Performance of Solve: time 0.0001392/0.01383, allocations: 92.12 kB / 294.1 MB, free: 5.953 MB / 238.1 MB Notification: Performance of Jacobian: time 0.0003043/0.01414, allocations: 409.8 kB / 294.5 MB, free: 5.516 MB / 238.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 4.011e-05/0.01419, allocations: 34.7 kB / 294.5 MB, free: 5.484 MB / 238.1 MB Notification: Performance of SimCode: time 0.001094/0.01529, allocations: 1.502 MB / 296 MB, free: 3.961 MB / 238.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.