Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 108 kB / 17.75 MB, free: 5.348 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.001121/0.001121, allocations: 193.8 kB / 18.68 MB, free: 4.422 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.283/1.283, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.786e-05/1.787e-05, allocations: 5.234 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.003162/0.003188, allocations: 2.606 MB / 331.1 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.004295, allocations: 0.6944 MB / 331.8 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.004413, allocations: 11.84 kB / 331.8 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.004531, allocations: 35.64 kB / 331.9 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001401/0.004685, allocations: 79.33 kB / 332 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.00493, allocations: 91.75 kB / 332 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000342/0.005281, allocations: 366.6 kB / 332.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.005458, allocations: 88.7 kB / 332.5 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.005633, allocations: 115.6 kB / 332.6 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.005789, allocations: 147.4 kB / 332.8 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.855e-05/0.005833, allocations: 28 kB / 332.8 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.717e-05/0.005876, allocations: 28 kB / 332.8 MB, free: 15.01 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003195/0.0062, allocations: 443.2 kB / 333.2 MB, free: 14.57 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001335/0.00634, allocations: 260.3 kB / 333.5 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.849e-05/0.006394, allocations: 39.88 kB / 333.5 MB, free: 14.28 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.493e-05/0.006425, allocations: 11.94 kB / 333.5 MB, free: 14.27 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: 46 (46) * Number of variables: 46 (46) Notification: Performance of Bindings: time 0.001068/0.007499, allocations: 1.283 MB / 334.8 MB, free: 12.87 MB / 286.1 MB Notification: Performance of FunctionAlias: time 5.849e-05/0.007564, allocations: 63.88 kB / 334.9 MB, free: 12.81 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005374/0.008109, allocations: 0.6127 MB / 335.5 MB, free: 12.17 MB / 286.1 MB Notification: Performance of simplify1: time 5.368e-05/0.008169, allocations: 59.92 kB / 335.6 MB, free: 12.11 MB / 286.1 MB Notification: Performance of Alias: time 0.001015/0.009189, allocations: 0.9914 MB / 336.6 MB, free: 10.97 MB / 286.1 MB Notification: Performance of simplify2: time 3.662e-05/0.009237, allocations: 35.89 kB / 336.6 MB, free: 10.94 MB / 286.1 MB Notification: Performance of Events: time 0.0001843/0.009426, allocations: 123 kB / 336.7 MB, free: 10.82 MB / 286.1 MB Notification: Performance of Detect States: time 0.000219/0.009653, allocations: 188 kB / 336.9 MB, free: 10.62 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001831/0.009845, allocations: 176.2 kB / 337.1 MB, free: 10.43 MB / 286.1 MB Notification: Performance of Causalize: time 0.0008925/0.01075, allocations: 0.9237 MB / 338 MB, free: 9.496 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004297/0.01118, allocations: 0.4885 MB / 338.5 MB, free: 8.98 MB / 286.1 MB Notification: Performance of Inline: time 0.0009025/0.01209, allocations: 0.9515 MB / 339.4 MB, free: 7.996 MB / 286.1 MB Notification: Performance of Partitioning: time 5.602e-05/0.01216, allocations: 66.28 kB / 339.5 MB, free: 7.926 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001039/0.01227, allocations: 105.1 kB / 339.6 MB, free: 7.816 MB / 286.1 MB Notification: Performance of Causalize: time 0.003264/0.01554, allocations: 3.794 MB / 343.4 MB, free: 4.078 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004553/0.016, allocations: 0.5901 MB / 344 MB, free: 3.391 MB / 286.1 MB Notification: Performance of Initialization: time 4e-07/0.01601, allocations: 0 / 344 MB, free: 3.391 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002155/0.01624, allocations: 314.4 kB / 344.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of Categorize: time 8.186e-06/0.01625, allocations: 8 kB / 344.3 MB, free: 3.027 MB / 286.1 MB Notification: Performance of Solve: time 0.0002398/0.0165, allocations: 162.6 kB / 344.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0002675/0.01677, allocations: 386 kB / 344.8 MB, free: 2.453 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: ............... 1 * Number of algebraic event partitions: ......... 1 * 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: ............................. 1 (1) {c.v} * 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: ................. 8 (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: ........... 21 (scalar:21, 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.784e-05/0.01683, allocations: 51.08 kB / 344.9 MB, free: 2.41 MB / 286.1 MB Notification: Performance of SimCode: time 0.001044/0.01788, allocations: 1.514 MB / 346.4 MB, free: 0.8711 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.