Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_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.001324/0.001324, allocations: 106.7 kB / 17.75 MB, free: 5.352 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.001183/0.001183, allocations: 187 kB / 18.68 MB, free: 4.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.102e-05/2.103e-05, allocations: 2.281 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.0041/0.00413, allocations: 3.488 MB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.00529, allocations: 0.7517 MB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.005452, allocations: 7.938 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001844/0.005643, allocations: 63.36 kB / 356.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002065/0.005857, allocations: 130.8 kB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.006158, allocations: 111.8 kB / 356.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005154/0.006681, allocations: 0.5639 MB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002437/0.006934, allocations: 147.2 kB / 357.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.007141, allocations: 191.3 kB / 357.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.007357, allocations: 207.1 kB / 357.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.753e-05/0.007421, allocations: 40 kB / 357.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.872e-05/0.007486, allocations: 40 kB / 357.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0005075/0.007998, allocations: 0.6991 MB / 358.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002279/0.008232, allocations: 433.5 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.974e-05/0.008308, allocations: 75.75 kB / 358.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.764e-05/0.008373, allocations: 27.94 kB / 358.9 MB, free: 12.29 MB / 302.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.001549/0.009928, allocations: 1.952 MB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000162/0.0101, allocations: 125.2 kB / 360.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0007709/0.01088, allocations: 0.8937 MB / 361.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simplify1: time 8.718e-05/0.01097, allocations: 91.83 kB / 361.9 MB, free: 9.082 MB / 302.1 MB Notification: Performance of Alias: time 0.001979/0.01296, allocations: 1.864 MB / 363.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of simplify2: time 5.539e-05/0.01302, allocations: 59.92 kB / 363.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of Events: time 0.0001728/0.0132, allocations: 139.7 kB / 364 MB, free: 6.844 MB / 302.1 MB Notification: Performance of Detect States: time 0.0001795/0.01339, allocations: 186.3 kB / 364.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000271/0.01367, allocations: 279.8 kB / 364.4 MB, free: 6.34 MB / 302.1 MB Notification: Performance of Causalize: time 0.001057/0.01473, allocations: 1.002 MB / 365.4 MB, free: 5.305 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005137/0.01526, allocations: 0.6248 MB / 366.1 MB, free: 4.652 MB / 302.1 MB Notification: Performance of Inline: time 0.0009999/0.01626, allocations: 1.161 MB / 367.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of Partitioning: time 6.921e-05/0.01634, allocations: 71.59 kB / 367.3 MB, free: 3.379 MB / 302.1 MB Notification: Performance of Cleanup: time 4.359e-05/0.01639, allocations: 55.88 kB / 367.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of Causalize: time 0.001786/0.01818, allocations: 1.703 MB / 369.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of Tearing: time 0.0007967/0.01899, allocations: 1.003 MB / 370.1 MB, free: 472 kB / 302.1 MB Notification: Performance of Initialization: time 7.31e-07/0.019, allocations: 0 / 370.1 MB, free: 472 kB / 302.1 MB Notification: Performance of Tearing: time 0.2114/0.2304, allocations: 1.009 MB / 371.1 MB, free: 18.71 MB / 302.1 MB Notification: Performance of Categorize: time 3.298e-05/0.2305, allocations: 5.484 kB / 371.1 MB, free: 18.71 MB / 302.1 MB Notification: Performance of Solve: time 0.0004585/0.2309, allocations: 127.7 kB / 371.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of Jacobian: time 4.989e-06/0.2309, allocations: 0 / 371.2 MB, free: 18.71 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.838e-05/0.231, allocations: 34.84 kB / 371.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of SimCode: time 0.002026/0.233, allocations: 1.99 MB / 373.2 MB, free: 17.73 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.