Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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 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.HeatingMOSInverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingMOSInverter") translateModel(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.0009947/0.0009948, allocations: 105.2 kB / 16.42 MB, free: 6.484 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.0009317/0.0009318, allocations: 189.9 kB / 17.35 MB, free: 5.754 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.352/1.352, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.274e-05/2.275e-05, allocations: 2.281 kB / 327.2 MB, free: 3.352 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.003867/0.003897, allocations: 3.109 MB / 330.3 MB, free: 228 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.00538, allocations: 0.8199 MB / 331.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.005544, allocations: 4 kB / 331.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001828/0.005734, allocations: 63.38 kB / 331.2 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.005947, allocations: 114.9 kB / 331.3 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003755/0.00633, allocations: 143.7 kB / 331.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005511/0.00689, allocations: 0.5932 MB / 332 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003574/0.007262, allocations: 176.6 kB / 332.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002655/0.007539, allocations: 215.3 kB / 332.4 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002384/0.007786, allocations: 255 kB / 332.6 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.347e-05/0.007857, allocations: 52 kB / 332.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.007966, allocations: 52 kB / 332.8 MB, free: 13.73 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005138/0.008486, allocations: 0.7266 MB / 333.5 MB, free: 13 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002184/0.008711, allocations: 425.6 kB / 333.9 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.68e-05/0.008804, allocations: 75.75 kB / 334 MB, free: 12.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.639e-05/0.008857, allocations: 12 kB / 334 MB, free: 12.49 MB / 286.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.001841/0.0107, allocations: 2.132 MB / 336.1 MB, free: 10.24 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000151/0.01086, allocations: 123.8 kB / 336.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001203/0.01207, allocations: 1.389 MB / 337.6 MB, free: 8.707 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001233/0.01221, allocations: 111.9 kB / 337.7 MB, free: 8.598 MB / 286.1 MB Notification: Performance of Alias: time 0.001922/0.01413, allocations: 1.731 MB / 339.5 MB, free: 6.676 MB / 286.1 MB Notification: Performance of simplify2: time 0.0001062/0.01426, allocations: 91.88 kB / 339.6 MB, free: 6.586 MB / 286.1 MB Notification: Performance of Events: time 0.0003176/0.01458, allocations: 246.7 kB / 339.8 MB, free: 6.344 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003402/0.01493, allocations: 316.7 kB / 340.1 MB, free: 6.02 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004262/0.01536, allocations: 416.7 kB / 340.5 MB, free: 5.574 MB / 286.1 MB Notification: Performance of Causalize: time 0.002256/0.01763, allocations: 2.291 MB / 342.8 MB, free: 3.285 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.000873/0.01852, allocations: 0.942 MB / 343.7 MB, free: 2.316 MB / 286.1 MB Notification: Performance of Inline: time 0.001564/0.02009, allocations: 1.697 MB / 345.4 MB, free: 0.582 MB / 286.1 MB Notification: Performance of Partitioning: time 8.857e-05/0.02019, allocations: 67.62 kB / 345.5 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of Cleanup: time 7.162e-05/0.02027, allocations: 83.84 kB / 345.6 MB, free: 432 kB / 286.1 MB Notification: Performance of Causalize: time 0.002336/0.02261, allocations: 2.551 MB / 348.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009922/0.02362, allocations: 1.055 MB / 349.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of Initialization: time 8.92e-07/0.02364, allocations: 0 / 349.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of Tearing: time 0.000907/0.02455, allocations: 1.062 MB / 350.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Categorize: time 2.047e-05/0.02458, allocations: 4 kB / 350.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Solve: time 0.0003139/0.0249, allocations: 158.1 kB / 350.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of Jacobian: time 0.000911/0.02582, allocations: 0.8721 MB / 351.3 MB, free: 10.55 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 0.0001581/0.02599, allocations: 50.03 kB / 351.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of SimCode: time 0.002046/0.02804, allocations: 2.427 MB / 353.8 MB, free: 8.043 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.