Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 104.3 kB / 16.42 MB, free: 6.512 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.001608/0.001608, allocations: 188.3 kB / 17.36 MB, free: 5.73 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.299/1.299, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.898e-05/1.899e-05, allocations: 3.547 kB / 327.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003006/0.003033, allocations: 2.462 MB / 329.6 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.004051, allocations: 0.6749 MB / 330.3 MB, free: 176 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.004173, allocations: 8 kB / 330.3 MB, free: 168 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.00431, allocations: 31.66 kB / 330.4 MB, free: 136 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.004425, allocations: 71.34 kB / 330.4 MB, free: 64 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.004709, allocations: 71.92 kB / 330.5 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.005007, allocations: 310.7 kB / 330.8 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.005176, allocations: 84.28 kB / 330.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.005325, allocations: 115.5 kB / 331 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.005457, allocations: 115.5 kB / 331.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.776e-05/0.005501, allocations: 20 kB / 331.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.443e-05/0.00558, allocations: 35.98 kB / 331.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0002665/0.005853, allocations: 387.7 kB / 331.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001079/0.005969, allocations: 224.6 kB / 331.8 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.308e-05/0.006017, allocations: 43.88 kB / 331.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.013e-05/0.006057, allocations: 11.94 kB / 331.8 MB, free: 14.66 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: 49 (49) * Number of variables: 49 (49) Notification: Performance of Bindings: time 0.0009588/0.007022, allocations: 1.141 MB / 333 MB, free: 13.41 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000104/0.007133, allocations: 74.88 kB / 333 MB, free: 13.34 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005472/0.007687, allocations: 0.6673 MB / 333.7 MB, free: 12.65 MB / 286.1 MB Notification: Performance of simplify1: time 4.956e-05/0.007748, allocations: 55.92 kB / 333.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of Alias: time 0.001104/0.008858, allocations: 1.059 MB / 334.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of simplify2: time 3.452e-05/0.008903, allocations: 39.89 kB / 334.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of Events: time 0.0001009/0.00901, allocations: 64.38 kB / 334.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003204/0.009338, allocations: 152.7 kB / 335.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001828/0.009529, allocations: 164.3 kB / 335.2 MB, free: 10.96 MB / 286.1 MB Notification: Performance of Causalize: time 0.0007847/0.01032, allocations: 0.8035 MB / 336 MB, free: 10.13 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.000354/0.01069, allocations: 385.7 kB / 336.4 MB, free: 9.727 MB / 286.1 MB Notification: Performance of Inline: time 0.0006582/0.01136, allocations: 0.7152 MB / 337.1 MB, free: 8.977 MB / 286.1 MB Notification: Performance of Partitioning: time 4.096e-05/0.01141, allocations: 38.36 kB / 337.2 MB, free: 8.93 MB / 286.1 MB Notification: Performance of Cleanup: time 2.644e-05/0.01144, allocations: 31.91 kB / 337.2 MB, free: 8.898 MB / 286.1 MB Notification: Performance of Causalize: time 0.0008918/0.01234, allocations: 1.05 MB / 338.2 MB, free: 7.855 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004263/0.01278, allocations: 450.3 kB / 338.7 MB, free: 7.367 MB / 286.1 MB Notification: Performance of Initialization: time 4.11e-07/0.01279, allocations: 0 / 338.7 MB, free: 7.367 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003434/0.01314, allocations: 466.1 kB / 339.1 MB, free: 6.863 MB / 286.1 MB Notification: Performance of Categorize: time 9.679e-06/0.01315, allocations: 0 / 339.1 MB, free: 6.863 MB / 286.1 MB Notification: Performance of Solve: time 0.0001363/0.01329, allocations: 92.2 kB / 339.2 MB, free: 6.773 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0003031/0.01361, allocations: 413.8 kB / 339.6 MB, free: 6.332 MB / 286.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: ......... 2 * 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: ................. 4 (4) {$SEV_2, $SEV_1, $SEV_0, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 17 (scalar:17, 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 26 (scalar:26, 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: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 4.002e-05/0.01365, allocations: 34.7 kB / 339.7 MB, free: 6.301 MB / 286.1 MB Notification: Performance of SimCode: time 0.001225/0.01489, allocations: 1.497 MB / 341.2 MB, free: 4.777 MB / 286.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.