Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.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.OpAmps.NonInvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 114 kB / 17.75 MB, free: 5.215 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.001217/0.001217, allocations: 196.6 kB / 18.69 MB, free: 4.289 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.271/1.271, allocations: 205.1 MB / 224.6 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.124e-05/2.125e-05, allocations: 3.266 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp): time 0.003523/0.003552, allocations: 2.702 MB / 331.2 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.004709, allocations: 0.7099 MB / 332 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.004837, allocations: 7.938 kB / 332 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.004979, allocations: 39.58 kB / 332 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.005158, allocations: 87.25 kB / 332.1 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000292/0.005464, allocations: 99.81 kB / 332.2 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004052/0.00588, allocations: 390.5 kB / 332.6 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.006072, allocations: 80.72 kB / 332.6 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.006219, allocations: 135.5 kB / 332.8 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.006401, allocations: 147.3 kB / 332.9 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.704e-05/0.006454, allocations: 28 kB / 332.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.269e-05/0.006502, allocations: 32 kB / 333 MB, free: 14.84 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003751/0.006881, allocations: 478.9 kB / 333.4 MB, free: 14.37 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001575/0.007047, allocations: 287.8 kB / 333.7 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.701e-05/0.007119, allocations: 47.81 kB / 333.8 MB, free: 14.04 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.944e-05/0.007154, allocations: 8 kB / 333.8 MB, free: 14.03 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: 49 (49) * Number of variables: 49 (49) Notification: Performance of Bindings: time 0.001237/0.008395, allocations: 1.361 MB / 335.1 MB, free: 12.56 MB / 286.1 MB Notification: Performance of FunctionAlias: time 6.734e-05/0.008469, allocations: 59.89 kB / 335.2 MB, free: 12.5 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005737/0.00905, allocations: 0.6517 MB / 335.8 MB, free: 11.82 MB / 286.1 MB Notification: Performance of simplify1: time 6.76e-05/0.009124, allocations: 59.91 kB / 335.9 MB, free: 11.77 MB / 286.1 MB Notification: Performance of Alias: time 0.001147/0.01028, allocations: 1.042 MB / 336.9 MB, free: 10.57 MB / 286.1 MB Notification: Performance of simplify2: time 4.64e-05/0.01033, allocations: 47.92 kB / 337 MB, free: 10.52 MB / 286.1 MB Notification: Performance of Events: time 0.0002042/0.01054, allocations: 132.8 kB / 337.1 MB, free: 10.39 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002627/0.01081, allocations: 201.1 kB / 337.3 MB, free: 10.18 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002213/0.01104, allocations: 200.2 kB / 337.5 MB, free: 9.961 MB / 286.1 MB Notification: Performance of Causalize: time 0.001027/0.01208, allocations: 1.027 MB / 338.5 MB, free: 8.91 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004614/0.01255, allocations: 0.5289 MB / 339.1 MB, free: 8.355 MB / 286.1 MB Notification: Performance of Inline: time 0.0009462/0.0135, allocations: 1.027 MB / 340.1 MB, free: 7.297 MB / 286.1 MB Notification: Performance of Partitioning: time 6.93e-05/0.01358, allocations: 62.34 kB / 340.2 MB, free: 7.227 MB / 286.1 MB Notification: Performance of Cleanup: time 9.966e-05/0.01369, allocations: 121 kB / 340.3 MB, free: 7.105 MB / 286.1 MB Notification: Performance of Causalize: time 0.00371/0.0174, allocations: 4.069 MB / 344.3 MB, free: 3.102 MB / 286.1 MB Notification: Performance of Tearing: time 0.0006824/0.0181, allocations: 0.7739 MB / 345.1 MB, free: 2.23 MB / 286.1 MB Notification: Performance of Initialization: time 5.21e-07/0.01811, allocations: 0 / 345.1 MB, free: 2.23 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003122/0.01842, allocations: 418 kB / 345.5 MB, free: 1.773 MB / 286.1 MB Notification: Performance of Categorize: time 1.43e-05/0.01845, allocations: 7.938 kB / 345.5 MB, free: 1.766 MB / 286.1 MB Notification: Performance of Solve: time 0.0002344/0.01869, allocations: 146.8 kB / 345.7 MB, free: 1.625 MB / 286.1 MB Notification: Performance of Jacobian: time 2.936e-06/0.0187, allocations: 192 / 345.7 MB, free: 1.625 MB / 286.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: ....... 1 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: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 53 (scalar:53, 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.634e-05/0.01875, allocations: 47.06 kB / 345.7 MB, free: 1.586 MB / 286.1 MB Notification: Performance of SimCode: time 0.001194/0.01995, allocations: 1.574 MB / 347.3 MB, free: 15.98 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.