Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.HeatingMOSInverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001217/0.001217, allocations: 114.6 kB / 18.47 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001214/0.001214, allocations: 204 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.193e-05/3.194e-05, allocations: 6.219 kB / 359.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.004024/0.004064, allocations: 3.163 MB / 362.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001955/0.006033, allocations: 0.8507 MB / 363.4 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001943/0.006238, allocations: 4 kB / 363.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.00642, allocations: 59.38 kB / 363.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.006618, allocations: 110.9 kB / 363.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.007, allocations: 167.7 kB / 363.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004898/0.007499, allocations: 0.6127 MB / 364.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002722/0.007779, allocations: 164.6 kB / 364.5 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002739/0.008061, allocations: 227.2 kB / 364.7 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002176/0.008289, allocations: 259 kB / 364.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.39e-05/0.008379, allocations: 52 kB / 365 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.008498, allocations: 63.98 kB / 365 MB, free: 7.219 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004757/0.008979, allocations: 0.7304 MB / 365.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002181/0.009203, allocations: 437.4 kB / 366.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.957e-05/0.009279, allocations: 79.75 kB / 366.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.579e-05/0.00934, allocations: 15.94 kB / 366.3 MB, free: 5.953 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.001721/0.01107, allocations: 2.14 MB / 368.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of FunctionAlias: time 9.097e-05/0.01116, allocations: 103.8 kB / 368.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001167/0.01234, allocations: 1.393 MB / 369.9 MB, free: 2.176 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001127/0.01246, allocations: 123.8 kB / 370.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of Alias: time 0.1473/0.1598, allocations: 1.934 MB / 372 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001936/0.16, allocations: 83.84 kB / 372.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of Events: time 0.0003786/0.1604, allocations: 244.9 kB / 372.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003398/0.1607, allocations: 306.9 kB / 372.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0004876/0.1612, allocations: 408.3 kB / 373 MB, free: 15.27 MB / 302.1 MB Notification: Performance of Causalize: time 0.001971/0.1632, allocations: 1.706 MB / 374.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007862/0.164, allocations: 0.9355 MB / 375.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of Inline: time 0.001447/0.1654, allocations: 1.687 MB / 377.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of Partitioning: time 7.187e-05/0.1655, allocations: 90.53 kB / 377.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Cleanup: time 6.915e-05/0.1656, allocations: 75.66 kB / 377.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of Causalize: time 0.002148/0.1678, allocations: 2.108 MB / 379.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of Tearing: time 0.000797/0.1686, allocations: 1.056 MB / 380.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of Initialization: time 9.42e-07/0.1686, allocations: 0 / 380.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006887/0.1693, allocations: 1.05 MB / 381.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of Categorize: time 1.416e-05/0.1693, allocations: 3.453 kB / 381.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of Solve: time 0.0002485/0.1695, allocations: 161.9 kB / 381.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0007316/0.1703, allocations: 0.8743 MB / 382.7 MB, free: 11.64 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: ........... 42 (scalar:42, 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: ........... 55 (scalar:55, 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.072e-05/0.1704, allocations: 43.14 kB / 382.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of SimCode: time 0.001754/0.1721, allocations: 2.437 MB / 385.2 MB, free: 10.26 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.