Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001427, allocations: 106.5 kB / 16.42 MB, free: 6.465 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.001173/0.001173, allocations: 189.5 kB / 17.36 MB, free: 5.707 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.372/1.372, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.981e-05/2.981e-05, allocations: 6.219 kB / 327.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004328/0.004366, allocations: 3.44 MB / 330.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.005635, allocations: 0.7838 MB / 331.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.005797, allocations: 8 kB / 331.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.005998, allocations: 67.28 kB / 331.5 MB, free: 15 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.006212, allocations: 134.8 kB / 331.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002755/0.006515, allocations: 111.8 kB / 331.7 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004983/0.007023, allocations: 0.5602 MB / 332.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.007286, allocations: 139.2 kB / 332.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.007498, allocations: 191.3 kB / 332.6 MB, free: 13.87 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.007718, allocations: 211 kB / 332.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.535e-05/0.00778, allocations: 40 kB / 332.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.757e-05/0.007847, allocations: 44 kB / 332.9 MB, free: 13.58 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004901/0.008342, allocations: 0.6914 MB / 333.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002266/0.008575, allocations: 437.5 kB / 334 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.049e-05/0.008652, allocations: 75.75 kB / 334.1 MB, free: 12.37 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.254e-05/0.0087, allocations: 16 kB / 334.1 MB, free: 12.36 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: 80 (80) * Number of variables: 80 (80) Notification: Performance of Bindings: time 0.001633/0.01034, allocations: 1.963 MB / 336.1 MB, free: 10.28 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001661/0.01051, allocations: 122.2 kB / 336.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0008527/0.01137, allocations: 0.8975 MB / 337.1 MB, free: 9.238 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001029/0.01148, allocations: 95.89 kB / 337.2 MB, free: 9.145 MB / 286.1 MB Notification: Performance of Alias: time 0.001952/0.01344, allocations: 1.64 MB / 338.8 MB, free: 7.324 MB / 286.1 MB Notification: Performance of simplify2: time 5.569e-05/0.01351, allocations: 59.92 kB / 338.9 MB, free: 7.266 MB / 286.1 MB Notification: Performance of Events: time 0.0001892/0.01371, allocations: 139.7 kB / 339 MB, free: 7.129 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002202/0.01394, allocations: 210.1 kB / 339.2 MB, free: 6.91 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003169/0.01426, allocations: 271.5 kB / 339.5 MB, free: 6.613 MB / 286.1 MB Notification: Performance of Causalize: time 0.001581/0.01585, allocations: 1.391 MB / 340.9 MB, free: 5.199 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006761/0.01654, allocations: 0.6286 MB / 341.5 MB, free: 4.543 MB / 286.1 MB Notification: Performance of Inline: time 0.001308/0.01786, allocations: 1.142 MB / 342.6 MB, free: 3.367 MB / 286.1 MB Notification: Performance of Partitioning: time 8.943e-05/0.01796, allocations: 71.62 kB / 342.7 MB, free: 3.289 MB / 286.1 MB Notification: Performance of Cleanup: time 5.439e-05/0.01802, allocations: 43.94 kB / 342.8 MB, free: 3.246 MB / 286.1 MB Notification: Performance of Causalize: time 0.002247/0.02027, allocations: 2.083 MB / 344.8 MB, free: 1.199 MB / 286.1 MB Notification: Performance of Tearing: time 0.001041/0.02133, allocations: 1.002 MB / 345.8 MB, free: 52 kB / 286.1 MB Notification: Performance of Initialization: time 9.62e-07/0.02134, allocations: 0 / 345.8 MB, free: 52 kB / 286.1 MB Notification: Performance of Tearing: time 0.0007663/0.02211, allocations: 1.018 MB / 346.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Categorize: time 1.481e-05/0.02214, allocations: 4 kB / 346.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of Solve: time 0.0002099/0.02235, allocations: 130 kB / 347 MB, free: 14.76 MB / 302.1 MB Notification: Performance of Jacobian: time 3.316e-06/0.02236, allocations: 480 / 347 MB, free: 14.76 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: ............... 0 * 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: ............................. 0 (0) {} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 12 (12) {Ideal.off, With_Ron_Goff.off, With_Ron_Goff_Vknee.off, $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: ........... 25 (scalar:25, 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: ... 3 (linear: 0, nonlinear:3) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 49 (scalar:49, 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: ... 3 (linear: 0, nonlinear:3) Notification: Performance of backend: time 5.067e-05/0.02242, allocations: 41.94 kB / 347 MB, free: 14.73 MB / 302.1 MB Notification: Performance of SimCode: time 0.001644/0.02407, allocations: 1.981 MB / 349 MB, free: 12.71 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.