Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.HeatingMOSInverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter") translateModel(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 113.1 kB / 17.75 MB, free: 5.328 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.001299/0.001299, allocations: 196.5 kB / 18.68 MB, free: 4.406 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.246/1.246, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.451e-05, allocations: 2.281 kB / 351.9 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.004347/0.00438, allocations: 3.131 MB / 355.1 MB, free: 152 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.005935, allocations: 0.7884 MB / 355.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.006101, allocations: 8 kB / 355.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.006293, allocations: 63.31 kB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.006497, allocations: 114.9 kB / 356 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003867/0.006891, allocations: 147.8 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005254/0.007427, allocations: 0.6087 MB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002923/0.007727, allocations: 168.6 kB / 357 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002343/0.007969, allocations: 219.3 kB / 357.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.008208, allocations: 255 kB / 357.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.672e-05/0.008292, allocations: 52 kB / 357.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.008409, allocations: 59.94 kB / 357.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004971/0.008913, allocations: 0.7343 MB / 358.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002246/0.009144, allocations: 429.6 kB / 358.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.03e-05/0.009221, allocations: 79.75 kB / 358.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.452e-05/0.009281, allocations: 19.88 kB / 358.8 MB, free: 12.4 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: 92 (92) * Number of variables: 92 (92) Notification: Performance of Bindings: time 0.001714/0.011, allocations: 2.144 MB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000142/0.01115, allocations: 115.9 kB / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001171/0.01233, allocations: 1.385 MB / 362.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001087/0.01245, allocations: 115.8 kB / 362.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of Alias: time 0.002068/0.01452, allocations: 1.953 MB / 364.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of simplify2: time 7.757e-05/0.01461, allocations: 83.89 kB / 364.6 MB, free: 6.273 MB / 302.1 MB Notification: Performance of Events: time 0.0002862/0.0149, allocations: 250.2 kB / 364.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002935/0.0152, allocations: 304.8 kB / 365.1 MB, free: 5.719 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0004047/0.01562, allocations: 416.8 kB / 365.5 MB, free: 5.273 MB / 302.1 MB Notification: Performance of Causalize: time 0.001818/0.01744, allocations: 1.715 MB / 367.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008282/0.01828, allocations: 0.9458 MB / 368.2 MB, free: 2.539 MB / 302.1 MB Notification: Performance of Inline: time 0.001468/0.01976, allocations: 1.705 MB / 369.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of Partitioning: time 7.834e-05/0.01984, allocations: 67.61 kB / 369.9 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of Cleanup: time 6.14e-05/0.01991, allocations: 83.84 kB / 370 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of Causalize: time 0.1611/0.1811, allocations: 2.117 MB / 372.1 MB, free: 19.62 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009759/0.1821, allocations: 1.054 MB / 373.2 MB, free: 19.17 MB / 302.1 MB Notification: Performance of Initialization: time 1.332e-06/0.1821, allocations: 0 / 373.2 MB, free: 19.17 MB / 302.1 MB Notification: Performance of Tearing: time 0.0007463/0.1828, allocations: 1.059 MB / 374.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of Categorize: time 1.768e-05/0.1829, allocations: 3.75 kB / 374.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of Solve: time 0.0002701/0.1831, allocations: 157.5 kB / 374.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0007179/0.1839, allocations: 0.8769 MB / 375.3 MB, free: 18.35 MB / 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: ......... 4 * 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: ................. 19 (19) {$SEV_15, $SEV_14, $SEV_13, $SEV_12, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $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: ........... 43 (scalar:43, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 56 (scalar:56, 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: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 9.497e-05/0.184, allocations: 49.81 kB / 375.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of SimCode: time 0.001807/0.1858, allocations: 2.436 MB / 377.8 MB, free: 17.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.