Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.HeatingMOSInverter") translateModel(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001187/0.001187, allocations: 110 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.001095/0.001095, allocations: 199.6 kB / 18.68 MB, free: 4.406 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.289/1.289, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.461e-05/2.462e-05, allocations: 3.406 kB / 328.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.003807/0.00384, allocations: 3.103 MB / 331.6 MB, free: 212 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.005216, allocations: 0.8238 MB / 332.4 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.005371, allocations: 4 kB / 332.4 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.005548, allocations: 63.38 kB / 332.5 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.005744, allocations: 114.9 kB / 332.6 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003465/0.006097, allocations: 143.7 kB / 332.8 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005032/0.006609, allocations: 0.5932 MB / 333.3 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002843/0.006901, allocations: 172.6 kB / 333.5 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.007151, allocations: 215.3 kB / 333.7 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002369/0.007397, allocations: 247 kB / 334 MB, free: 13.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.499e-05/0.00747, allocations: 55.94 kB / 334 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.007581, allocations: 59.98 kB / 334.1 MB, free: 13.71 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004823/0.008069, allocations: 0.7227 MB / 334.8 MB, free: 12.98 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002229/0.008299, allocations: 429.6 kB / 335.2 MB, free: 12.56 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.315e-05/0.00839, allocations: 79.75 kB / 335.3 MB, free: 12.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.092e-05/0.008436, allocations: 12 kB / 335.3 MB, free: 12.47 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.001743/0.01018, allocations: 2.128 MB / 337.4 MB, free: 10.22 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001469/0.01034, allocations: 119.8 kB / 337.6 MB, free: 10.11 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001245/0.01159, allocations: 1.389 MB / 338.9 MB, free: 8.691 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001088/0.01171, allocations: 115.8 kB / 339.1 MB, free: 8.578 MB / 286.1 MB Notification: Performance of Alias: time 0.001775/0.01349, allocations: 1.731 MB / 340.8 MB, free: 6.656 MB / 286.1 MB Notification: Performance of simplify2: time 8.667e-05/0.01359, allocations: 87.88 kB / 340.9 MB, free: 6.57 MB / 286.1 MB Notification: Performance of Events: time 0.0003089/0.01391, allocations: 253.9 kB / 341.1 MB, free: 6.32 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004748/0.01439, allocations: 297.6 kB / 341.4 MB, free: 6.016 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004144/0.01482, allocations: 424.7 kB / 341.8 MB, free: 5.562 MB / 286.1 MB Notification: Performance of Causalize: time 0.00212/0.01694, allocations: 2.295 MB / 344.1 MB, free: 3.27 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.000795/0.01775, allocations: 0.9386 MB / 345.1 MB, free: 2.305 MB / 286.1 MB Notification: Performance of Inline: time 0.001463/0.01922, allocations: 1.697 MB / 346.8 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of Partitioning: time 8.066e-05/0.01931, allocations: 75.59 kB / 346.8 MB, free: 496 kB / 286.1 MB Notification: Performance of Cleanup: time 6.387e-05/0.01938, allocations: 79.84 kB / 346.9 MB, free: 416 kB / 286.1 MB Notification: Performance of Causalize: time 0.002194/0.02158, allocations: 2.552 MB / 349.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009302/0.02252, allocations: 1.055 MB / 350.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of Initialization: time 6.31e-07/0.02253, allocations: 3.938 kB / 350.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of Tearing: time 0.0008603/0.0234, allocations: 1.058 MB / 351.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of Categorize: time 1.538e-05/0.02342, allocations: 8 kB / 351.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of Solve: time 0.0002437/0.02367, allocations: 162.1 kB / 351.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0008267/0.02451, allocations: 0.8682 MB / 352.6 MB, free: 10.53 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.0001252/0.02464, allocations: 46.05 kB / 352.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of SimCode: time 0.001933/0.02658, allocations: 2.423 MB / 355.1 MB, free: 8.031 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.