Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001393/0.001393, allocations: 109.8 kB / 16.42 MB, free: 6.469 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.001314/0.001314, allocations: 187.2 kB / 17.35 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.392/1.392, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.941e-05/2.943e-05, allocations: 7.484 kB / 327.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003723/0.003761, allocations: 2.739 MB / 329.9 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.005147, allocations: 0.6825 MB / 330.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002505/0.005408, allocations: 4 kB / 330.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.005615, allocations: 43.56 kB / 330.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002748/0.005914, allocations: 87.2 kB / 330.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002974/0.006217, allocations: 91.81 kB / 330.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005085/0.006734, allocations: 422.4 kB / 331.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002397/0.006982, allocations: 122.9 kB / 331.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.007218, allocations: 143.5 kB / 331.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002248/0.00745, allocations: 167.2 kB / 331.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.191e-05/0.007518, allocations: 36 kB / 331.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.879e-05/0.007582, allocations: 32 kB / 331.8 MB, free: 14.73 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004064/0.007994, allocations: 0.5102 MB / 332.3 MB, free: 14.22 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002114/0.008212, allocations: 295.6 kB / 332.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.008327, allocations: 55.88 kB / 332.6 MB, free: 13.87 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.703e-05/0.008379, allocations: 11.94 kB / 332.6 MB, free: 13.86 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.001477/0.009861, allocations: 1.493 MB / 334.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of FunctionAlias: time 9.864e-05/0.009966, allocations: 63.89 kB / 334.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006905/0.01066, allocations: 0.7415 MB / 334.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of simplify1: time 9.237e-05/0.01076, allocations: 71.91 kB / 335 MB, free: 11.36 MB / 286.1 MB Notification: Performance of Alias: time 0.001555/0.01233, allocations: 1.328 MB / 336.3 MB, free: 9.84 MB / 286.1 MB Notification: Performance of simplify2: time 7.317e-05/0.01241, allocations: 51.92 kB / 336.4 MB, free: 9.789 MB / 286.1 MB Notification: Performance of Events: time 0.0002368/0.01265, allocations: 128.1 kB / 336.5 MB, free: 9.66 MB / 286.1 MB Notification: Performance of Detect States: time 0.000276/0.01294, allocations: 197.2 kB / 336.7 MB, free: 9.453 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002423/0.01319, allocations: 204.4 kB / 336.9 MB, free: 9.223 MB / 286.1 MB Notification: Performance of Causalize: time 0.001087/0.01428, allocations: 1.045 MB / 337.9 MB, free: 8.156 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.000504/0.0148, allocations: 0.5208 MB / 338.4 MB, free: 7.609 MB / 286.1 MB Notification: Performance of Inline: time 0.001113/0.01592, allocations: 1.027 MB / 339.5 MB, free: 6.547 MB / 286.1 MB Notification: Performance of Partitioning: time 7.818e-05/0.01601, allocations: 58.38 kB / 339.5 MB, free: 6.484 MB / 286.1 MB Notification: Performance of Cleanup: time 8.059e-05/0.0161, allocations: 35.95 kB / 339.6 MB, free: 6.449 MB / 286.1 MB Notification: Performance of Causalize: time 0.002218/0.01832, allocations: 2.013 MB / 341.6 MB, free: 4.465 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004415/0.01877, allocations: 409.9 kB / 342 MB, free: 4.016 MB / 286.1 MB Notification: Performance of Initialization: time 8.01e-07/0.01878, allocations: 0 / 342 MB, free: 4.016 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003444/0.01913, allocations: 410.1 kB / 342.4 MB, free: 3.566 MB / 286.1 MB Notification: Performance of Categorize: time 1.67e-05/0.01916, allocations: 7.984 kB / 342.4 MB, free: 3.559 MB / 286.1 MB Notification: Performance of Solve: time 0.0002055/0.01937, allocations: 133.9 kB / 342.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of Jacobian: time 3.306e-06/0.01938, allocations: 0 / 342.5 MB, free: 3.422 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 4.547e-05/0.01943, allocations: 28.12 kB / 342.5 MB, free: 3.398 MB / 286.1 MB Notification: Performance of SimCode: time 0.001245/0.02068, allocations: 1.585 MB / 344.1 MB, free: 1.793 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.