Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.00137/0.00137, allocations: 99.28 kB / 16.42 MB, free: 6.523 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.001254/0.001254, 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.404/1.404, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.595e-05/2.596e-05, allocations: 2.281 kB / 327.2 MB, free: 3.352 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003771/0.003805, allocations: 2.463 MB / 329.6 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.005185, allocations: 0.6749 MB / 330.3 MB, free: 192 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002039/0.005402, allocations: 4 kB / 330.3 MB, free: 188 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.005603, allocations: 35.64 kB / 330.4 MB, free: 152 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002164/0.005826, allocations: 67.34 kB / 330.4 MB, free: 84 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003942/0.006247, allocations: 79.83 kB / 330.5 MB, free: 4 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000439/0.006695, allocations: 310.7 kB / 330.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.006899, allocations: 84.34 kB / 330.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002518/0.007159, allocations: 115.5 kB / 331 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.007365, allocations: 119.5 kB / 331.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.436e-05/0.007417, allocations: 24 kB / 331.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.007533, allocations: 32 kB / 331.2 MB, free: 15.33 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003099/0.00785, allocations: 371.8 kB / 331.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001381/0.007997, allocations: 236.6 kB / 331.8 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.865e-05/0.008083, allocations: 43.88 kB / 331.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.303e-05/0.008131, allocations: 8 kB / 331.8 MB, free: 14.68 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.001089/0.009225, allocations: 1.141 MB / 333 MB, free: 13.43 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001378/0.00937, allocations: 70.95 kB / 333 MB, free: 13.36 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006784/0.01006, allocations: 0.6673 MB / 333.7 MB, free: 12.67 MB / 286.1 MB Notification: Performance of simplify1: time 7.304e-05/0.01014, allocations: 59.92 kB / 333.8 MB, free: 12.61 MB / 286.1 MB Notification: Performance of Alias: time 0.001351/0.0115, allocations: 1.067 MB / 334.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of simplify2: time 5.499e-05/0.01156, allocations: 35.95 kB / 334.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of Events: time 0.0001138/0.01168, allocations: 63.88 kB / 334.9 MB, free: 11.32 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003039/0.01199, allocations: 140.1 kB / 335.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001971/0.0122, allocations: 160.3 kB / 335.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of Causalize: time 0.0008388/0.01305, allocations: 0.8099 MB / 336 MB, free: 10.15 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003554/0.01341, allocations: 389.7 kB / 336.4 MB, free: 9.742 MB / 286.1 MB Notification: Performance of Inline: time 0.0007248/0.01414, allocations: 0.7113 MB / 337.1 MB, free: 8.996 MB / 286.1 MB Notification: Performance of Partitioning: time 4.439e-05/0.0142, allocations: 34.56 kB / 337.1 MB, free: 8.953 MB / 286.1 MB Notification: Performance of Cleanup: time 4.987e-05/0.01425, allocations: 35.89 kB / 337.2 MB, free: 8.918 MB / 286.1 MB Notification: Performance of Causalize: time 0.00101/0.01527, allocations: 1.05 MB / 338.2 MB, free: 7.875 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004599/0.01574, allocations: 461.9 kB / 338.7 MB, free: 7.375 MB / 286.1 MB Notification: Performance of Initialization: time 7.92e-07/0.01575, allocations: 0 / 338.7 MB, free: 7.375 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003816/0.01613, allocations: 453.9 kB / 339.1 MB, free: 6.883 MB / 286.1 MB Notification: Performance of Categorize: time 1.605e-05/0.01616, allocations: 4 kB / 339.1 MB, free: 6.879 MB / 286.1 MB Notification: Performance of Solve: time 0.0001751/0.01634, allocations: 92.14 kB / 339.2 MB, free: 6.789 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0003749/0.01672, allocations: 417.8 kB / 339.6 MB, free: 6.344 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 6.015e-05/0.01679, allocations: 36.91 kB / 339.7 MB, free: 6.312 MB / 286.1 MB Notification: Performance of SimCode: time 0.001443/0.01824, allocations: 1.501 MB / 341.2 MB, free: 4.785 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.