Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001091, allocations: 108 kB / 18.41 MB, free: 4.664 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.001083/0.001084, allocations: 194.6 kB / 19.35 MB, free: 3.742 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.584/1.584, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.857e-05/2.858e-05, allocations: 2.281 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004625/0.004663, allocations: 2.743 MB / 331.9 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.006052, allocations: 0.6786 MB / 332.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.00624, allocations: 8 kB / 332.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001987/0.006445, allocations: 43.56 kB / 332.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.006664, allocations: 87.19 kB / 332.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000364/0.007053, allocations: 87.81 kB / 332.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004799/0.007542, allocations: 426.4 kB / 333.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.00781, allocations: 122.9 kB / 333.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.007984, allocations: 147.5 kB / 333.5 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.008186, allocations: 167.2 kB / 333.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.543e-05/0.008248, allocations: 32 kB / 333.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.439e-05/0.008308, allocations: 36 kB / 333.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004011/0.008714, allocations: 0.4986 MB / 334.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001668/0.008895, allocations: 303.6 kB / 334.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.513e-05/0.008967, allocations: 55.81 kB / 334.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.801e-05/0.009021, allocations: 8 kB / 334.6 MB, free: 13.87 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: 60 (60) * Number of variables: 60 (60) Notification: Performance of Bindings: time 0.00142/0.01045, allocations: 1.489 MB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of FunctionAlias: time 6.526e-05/0.01052, allocations: 67.83 kB / 336.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0007205/0.01125, allocations: 0.7298 MB / 336.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of simplify1: time 7.595e-05/0.01133, allocations: 67.92 kB / 336.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of Alias: time 0.001858/0.0132, allocations: 1.491 MB / 338.4 MB, free: 9.703 MB / 286.1 MB Notification: Performance of simplify2: time 4.997e-05/0.01326, allocations: 43.94 kB / 338.5 MB, free: 9.66 MB / 286.1 MB Notification: Performance of Events: time 0.0002317/0.0135, allocations: 131.5 kB / 338.6 MB, free: 9.527 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002598/0.01377, allocations: 203.6 kB / 338.8 MB, free: 9.316 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002312/0.01401, allocations: 204.4 kB / 339 MB, free: 9.086 MB / 286.1 MB Notification: Performance of Causalize: time 0.000918/0.01494, allocations: 0.7349 MB / 339.7 MB, free: 8.324 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005019/0.01545, allocations: 0.5169 MB / 340.3 MB, free: 7.777 MB / 286.1 MB Notification: Performance of Inline: time 0.001029/0.01649, allocations: 1.03 MB / 341.3 MB, free: 6.715 MB / 286.1 MB Notification: Performance of Partitioning: time 6.778e-05/0.01657, allocations: 62.36 kB / 341.3 MB, free: 6.645 MB / 286.1 MB Notification: Performance of Cleanup: time 3.999e-05/0.01661, allocations: 35.95 kB / 341.4 MB, free: 6.609 MB / 286.1 MB Notification: Performance of Causalize: time 0.00176/0.01838, allocations: 1.519 MB / 342.9 MB, free: 5.078 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004247/0.01881, allocations: 409.9 kB / 343.3 MB, free: 4.629 MB / 286.1 MB Notification: Performance of Initialization: time 7.22e-07/0.01883, allocations: 8 kB / 343.3 MB, free: 4.621 MB / 286.1 MB Notification: Performance of Tearing: time 0.000362/0.01919, allocations: 402 kB / 343.7 MB, free: 4.18 MB / 286.1 MB Notification: Performance of Categorize: time 1.297e-05/0.01922, allocations: 4 kB / 343.7 MB, free: 4.176 MB / 286.1 MB Notification: Performance of Solve: time 0.0002005/0.01942, allocations: 137.9 kB / 343.8 MB, free: 4.043 MB / 286.1 MB Notification: Performance of Jacobian: time 3.727e-06/0.01943, allocations: 0 / 343.8 MB, free: 4.043 MB / 286.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 1 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 3 * 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: .................... 2 (2) {vIn.signalSource.count, vIn.signalSource.T_start} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 9 (9) {$SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 20 (scalar:20, array:0, record:0) * Number of multi strong components: ............ 2 (algorithm:0, when:2, 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: ........... 51 (scalar:51, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, 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 5.328e-05/0.01949, allocations: 32.72 kB / 343.9 MB, free: 4.012 MB / 286.1 MB Notification: Performance of SimCode: time 0.001264/0.02076, allocations: 1.582 MB / 345.5 MB, free: 2.406 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.