Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001132/0.001132, allocations: 115.7 kB / 18.47 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 213.1 kB / 19.42 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.634e-05/2.634e-05, allocations: 5.094 kB / 359.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00402/0.004054, allocations: 3.506 MB / 362.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.005314, allocations: 0.8452 MB / 363.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.00547, allocations: 4 kB / 363.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.00567, allocations: 75.28 kB / 363.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.005881, allocations: 134.8 kB / 363.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003432/0.00624, allocations: 131.7 kB / 364 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005469/0.006798, allocations: 0.5758 MB / 364.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/0.007053, allocations: 131.2 kB / 364.7 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000272/0.007332, allocations: 211.2 kB / 364.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.007547, allocations: 207.1 kB / 365.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.233e-05/0.007605, allocations: 40 kB / 365.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.41e-05/0.007705, allocations: 40 kB / 365.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004946/0.008207, allocations: 0.7107 MB / 365.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002287/0.008442, allocations: 449.3 kB / 366.4 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.617e-05/0.008524, allocations: 75.75 kB / 366.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.278e-05/0.008593, allocations: 23.94 kB / 366.5 MB, free: 5.801 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.001746/0.01035, allocations: 1.967 MB / 368.4 MB, free: 3.715 MB / 302.1 MB Notification: Performance of FunctionAlias: time 7.311e-05/0.01043, allocations: 83.84 kB / 368.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0009304/0.01136, allocations: 1.034 MB / 369.6 MB, free: 2.57 MB / 302.1 MB Notification: Performance of simplify1: time 7.871e-05/0.01145, allocations: 91.89 kB / 369.6 MB, free: 2.48 MB / 302.1 MB Notification: Performance of Alias: time 0.002159/0.01362, allocations: 1.853 MB / 371.5 MB, free: 456 kB / 302.1 MB Notification: Performance of simplify2: time 5.581e-05/0.01368, allocations: 55.92 kB / 371.6 MB, free: 400 kB / 302.1 MB Notification: Performance of Events: time 0.0002115/0.0139, allocations: 135.8 kB / 371.7 MB, free: 264 kB / 302.1 MB Notification: Performance of Detect States: time 0.0001898/0.0141, allocations: 189.2 kB / 371.9 MB, free: 60 kB / 302.1 MB Notification: Performance of Partitioning: time 0.232/0.2461, allocations: 255.2 kB / 372.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of Causalize: time 0.001344/0.2475, allocations: 0.9587 MB / 373.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006433/0.2481, allocations: 0.6091 MB / 373.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of Inline: time 0.001459/0.2496, allocations: 1.287 MB / 375 MB, free: 14.6 MB / 302.1 MB Notification: Performance of Partitioning: time 7.894e-05/0.2497, allocations: 62.92 kB / 375 MB, free: 14.57 MB / 302.1 MB Notification: Performance of Cleanup: time 5.482e-05/0.2497, allocations: 55.53 kB / 375.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of Causalize: time 0.002097/0.2518, allocations: 1.672 MB / 376.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of Tearing: time 0.0007939/0.2526, allocations: 1.002 MB / 377.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Initialization: time 8.12e-07/0.2527, allocations: 0 / 377.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Tearing: time 0.0008364/0.2535, allocations: 1.015 MB / 378.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of Categorize: time 1.771e-05/0.2535, allocations: 1.375 kB / 378.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of Solve: time 0.0002616/0.2538, allocations: 136.9 kB / 378.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of Jacobian: time 3.276e-06/0.2538, allocations: 0 / 378.9 MB, free: 12.74 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: ........... 22 (scalar:22, 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: ........... 46 (scalar:46, 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 4.778e-05/0.2539, allocations: 33.97 kB / 378.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of SimCode: time 0.001976/0.2558, allocations: 1.991 MB / 380.9 MB, free: 11.56 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.