Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.OpAmps.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 116.9 kB / 17.76 MB, free: 5.344 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.0009593/0.0009592, allocations: 180.7 kB / 18.68 MB, free: 4.426 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.351/1.351, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.16e-05/3.163e-05, allocations: 2.281 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.004168/0.004208, allocations: 2.914 MB / 354.9 MB, free: 352 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.005617, allocations: 0.7323 MB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.005767, allocations: 8 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.005944, allocations: 51.5 kB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000183/0.006136, allocations: 103.1 kB / 355.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.006457, allocations: 119.9 kB / 355.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000458/0.006924, allocations: 474.3 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.007163, allocations: 127.3 kB / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001648/0.007335, allocations: 159.4 kB / 356.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.007526, allocations: 175.2 kB / 356.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.5e-05/0.007588, allocations: 44 kB / 356.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.062e-05/0.007644, allocations: 40 kB / 356.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.000404/0.008053, allocations: 0.5256 MB / 357.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001736/0.008235, allocations: 327.3 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.523e-05/0.008307, allocations: 59.81 kB / 357.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.699e-05/0.008359, allocations: 11.98 kB / 357.8 MB, free: 13.39 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: 61 (61) * Number of variables: 61 (61) Notification: Performance of Bindings: time 0.001503/0.009867, allocations: 1.613 MB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of FunctionAlias: time 5.903e-05/0.009933, allocations: 63.88 kB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Early Inline: time 0.00075/0.01069, allocations: 0.8235 MB / 360.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simplify1: time 6.561e-05/0.01076, allocations: 71.91 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of Alias: time 0.002117/0.01288, allocations: 1.56 MB / 361.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of simplify2: time 5.218e-05/0.01295, allocations: 43.94 kB / 362 MB, free: 8.922 MB / 302.1 MB Notification: Performance of Events: time 0.0002611/0.01322, allocations: 144.2 kB / 362.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003092/0.01353, allocations: 233.1 kB / 362.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002909/0.01383, allocations: 226.2 kB / 362.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of Causalize: time 0.001043/0.01488, allocations: 0.8365 MB / 363.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005627/0.01546, allocations: 0.6001 MB / 364 MB, free: 6.805 MB / 302.1 MB Notification: Performance of Inline: time 0.001205/0.01667, allocations: 1.167 MB / 365.2 MB, free: 5.605 MB / 302.1 MB Notification: Performance of Partitioning: time 6.958e-05/0.01675, allocations: 75.59 kB / 365.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of Cleanup: time 4.229e-05/0.0168, allocations: 43.95 kB / 365.3 MB, free: 5.484 MB / 302.1 MB Notification: Performance of Causalize: time 0.002042/0.01885, allocations: 1.806 MB / 367.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004326/0.01929, allocations: 406 kB / 367.5 MB, free: 3.227 MB / 302.1 MB Notification: Performance of Initialization: time 5.11e-07/0.0193, allocations: 4 kB / 367.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of Tearing: time 0.000348/0.01965, allocations: 418.2 kB / 367.9 MB, free: 2.766 MB / 302.1 MB Notification: Performance of Categorize: time 1.506e-05/0.01968, allocations: 4 kB / 367.9 MB, free: 2.762 MB / 302.1 MB Notification: Performance of Solve: time 0.0002367/0.01992, allocations: 162 kB / 368.1 MB, free: 2.602 MB / 302.1 MB Notification: Performance of Jacobian: time 3.978e-06/0.01994, allocations: 4 kB / 368.1 MB, free: 2.598 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: ......... 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: ........... 23 (scalar:23, 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: ........... 55 (scalar:55, 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.715e-05/0.01999, allocations: 29.61 kB / 368.1 MB, free: 2.574 MB / 302.1 MB Notification: Performance of SimCode: time 0.001442/0.02143, allocations: 1.775 MB / 369.9 MB, free: 0.7734 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.