Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001196/0.001196, allocations: 110.3 kB / 18.37 MB, free: 4.73 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.001165/0.001165, allocations: 195.5 kB / 19.3 MB, free: 3.801 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.277/1.277, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.34e-05/2.354e-05, allocations: 2.281 kB / 282.1 MB, free: 2.516 MB / 222.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.003847/0.003887, allocations: 3.094 MB / 285.1 MB, free: 15.4 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.005248, allocations: 0.8276 MB / 286 MB, free: 14.56 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.005414, allocations: 7.938 kB / 286 MB, free: 14.55 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.0056, allocations: 59.38 kB / 286 MB, free: 14.49 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001713/0.005805, allocations: 118.9 kB / 286.2 MB, free: 14.38 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.006175, allocations: 135.8 kB / 286.3 MB, free: 14.24 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004845/0.00667, allocations: 0.6009 MB / 286.9 MB, free: 13.64 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.006941, allocations: 172.6 kB / 287.1 MB, free: 13.47 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002221/0.007172, allocations: 215.2 kB / 287.3 MB, free: 13.26 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.007394, allocations: 247 kB / 287.5 MB, free: 13.02 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 6.248e-05/0.007463, allocations: 55.98 kB / 287.6 MB, free: 12.96 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.914e-05/0.007568, allocations: 52 kB / 287.6 MB, free: 12.91 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.000458/0.008032, allocations: 0.7266 MB / 288.3 MB, free: 12.18 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.00022/0.008262, allocations: 429.6 kB / 288.8 MB, free: 11.75 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 8.068e-05/0.008349, allocations: 79.75 kB / 288.8 MB, free: 11.67 MB / 238.1 MB Notification: Performance of FrontEnd: time 5.003e-05/0.008405, allocations: 15.98 kB / 288.9 MB, free: 11.66 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: 92 (92) * Number of variables: 92 (92) Notification: Performance of Bindings: time 0.00174/0.01015, allocations: 2.136 MB / 291 MB, free: 9.402 MB / 238.1 MB Notification: Performance of FunctionAlias: time 0.0001502/0.01031, allocations: 117.7 kB / 291.1 MB, free: 9.289 MB / 238.1 MB Notification: Performance of Early Inline: time 0.001155/0.01147, allocations: 1.389 MB / 292.5 MB, free: 7.871 MB / 238.1 MB Notification: Performance of simplify1: time 0.0001191/0.0116, allocations: 115.9 kB / 292.6 MB, free: 7.758 MB / 238.1 MB Notification: Performance of Alias: time 0.001813/0.01342, allocations: 1.723 MB / 294.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of simplify2: time 8.203e-05/0.01352, allocations: 91.88 kB / 294.4 MB, free: 5.762 MB / 238.1 MB Notification: Performance of Events: time 0.0002987/0.01382, allocations: 250 kB / 294.7 MB, free: 5.516 MB / 238.1 MB Notification: Performance of Detect States: time 0.000286/0.01412, allocations: 300.8 kB / 295 MB, free: 5.207 MB / 238.1 MB Notification: Performance of Partitioning: time 0.0004065/0.01454, allocations: 416.7 kB / 295.4 MB, free: 4.766 MB / 238.1 MB Notification: Performance of Causalize: time 0.002136/0.01668, allocations: 2.281 MB / 297.6 MB, free: 2.484 MB / 238.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008192/0.01751, allocations: 0.9457 MB / 298.6 MB, free: 1.512 MB / 238.1 MB Notification: Performance of Inline: time 0.001458/0.01898, allocations: 1.682 MB / 300.3 MB, free: 15.79 MB / 254.1 MB Notification: Performance of Partitioning: time 7.729e-05/0.01907, allocations: 71.62 kB / 300.3 MB, free: 15.71 MB / 254.1 MB Notification: Performance of Cleanup: time 6.611e-05/0.01914, allocations: 83.84 kB / 300.4 MB, free: 15.63 MB / 254.1 MB Notification: Performance of Causalize: time 0.00218/0.02132, allocations: 2.542 MB / 303 MB, free: 13.14 MB / 254.1 MB Notification: Performance of Tearing: time 0.0009443/0.02228, allocations: 1.055 MB / 304 MB, free: 11.99 MB / 254.1 MB Notification: Performance of Initialization: time 7.61e-07/0.0223, allocations: 3.938 kB / 304 MB, free: 11.99 MB / 254.1 MB Notification: Performance of Tearing: time 0.0008378/0.02314, allocations: 1.047 MB / 305.1 MB, free: 10.84 MB / 254.1 MB Notification: Performance of Categorize: time 1.641e-05/0.02317, allocations: 4 kB / 305.1 MB, free: 10.84 MB / 254.1 MB Notification: Performance of Solve: time 0.0002839/0.02346, allocations: 170.1 kB / 305.2 MB, free: 10.67 MB / 254.1 MB Notification: Performance of Jacobian: time 0.0008487/0.02431, allocations: 0.8682 MB / 306.1 MB, free: 9.766 MB / 254.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.0001242/0.02445, allocations: 59.81 kB / 306.2 MB, free: 9.715 MB / 254.1 MB Notification: Performance of SimCode: time 0.002081/0.02653, allocations: 2.434 MB / 308.6 MB, free: 7.242 MB / 254.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.