Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001205/0.001206, allocations: 107 kB / 16.42 MB, free: 6.512 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.001153/0.001153, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.391/1.391, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.928e-05/1.929e-05, allocations: 2.281 kB / 327.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.003286/0.003315, allocations: 2.594 MB / 329.8 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001159/0.004487, allocations: 0.7059 MB / 330.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.004617, allocations: 4 kB / 330.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.00477, allocations: 39.64 kB / 330.6 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000157/0.004933, allocations: 83.27 kB / 330.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002627/0.005209, allocations: 95.81 kB / 330.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003722/0.005589, allocations: 358.6 kB / 331.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.005784, allocations: 88.7 kB / 331.2 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.005971, allocations: 127.5 kB / 331.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.00612, allocations: 135.4 kB / 331.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.628e-05/0.006182, allocations: 28 kB / 331.5 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.997e-05/0.006228, allocations: 28 kB / 331.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003252/0.006558, allocations: 443.2 kB / 331.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001502/0.006714, allocations: 260.2 kB / 332.2 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.044e-05/0.006771, allocations: 47.88 kB / 332.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.667e-05/0.006802, allocations: 4 kB / 332.2 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.001124/0.007931, allocations: 1.287 MB / 333.5 MB, free: 12.87 MB / 286.1 MB Notification: Performance of FunctionAlias: time 6.097e-05/0.007997, allocations: 55.89 kB / 333.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005329/0.008536, allocations: 0.6244 MB / 334.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of simplify1: time 5.095e-05/0.008593, allocations: 51.94 kB / 334.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of Alias: time 0.001074/0.009672, allocations: 0.9879 MB / 335.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of simplify2: time 4.857e-05/0.009731, allocations: 39.94 kB / 335.3 MB, free: 10.94 MB / 286.1 MB Notification: Performance of Events: time 0.0001866/0.009923, allocations: 122.5 kB / 335.4 MB, free: 10.82 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002417/0.01017, allocations: 192 kB / 335.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001873/0.01037, allocations: 176.2 kB / 335.7 MB, free: 10.43 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009291/0.0113, allocations: 0.9204 MB / 336.7 MB, free: 9.504 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004412/0.01175, allocations: 0.4885 MB / 337.1 MB, free: 8.988 MB / 286.1 MB Notification: Performance of Inline: time 0.0009355/0.0127, allocations: 0.9704 MB / 338.1 MB, free: 7.984 MB / 286.1 MB Notification: Performance of Partitioning: time 5.824e-05/0.01276, allocations: 58.36 kB / 338.2 MB, free: 7.922 MB / 286.1 MB Notification: Performance of Cleanup: time 9.505e-05/0.01286, allocations: 101.1 kB / 338.3 MB, free: 7.816 MB / 286.1 MB Notification: Performance of Causalize: time 0.003393/0.01627, allocations: 3.786 MB / 342.1 MB, free: 4.082 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005002/0.01678, allocations: 0.5902 MB / 342.7 MB, free: 3.395 MB / 286.1 MB Notification: Performance of Initialization: time 6.31e-07/0.01679, allocations: 4 kB / 342.7 MB, free: 3.391 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002265/0.01702, allocations: 318.2 kB / 343 MB, free: 3.031 MB / 286.1 MB Notification: Performance of Categorize: time 9.097e-06/0.01704, allocations: 0 / 343 MB, free: 3.031 MB / 286.1 MB Notification: Performance of Solve: time 0.0002431/0.01728, allocations: 158.5 kB / 343.1 MB, free: 2.875 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0002931/0.01759, allocations: 393.9 kB / 343.5 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.344e-05/0.01764, allocations: 42.8 kB / 343.5 MB, free: 2.418 MB / 286.1 MB Notification: Performance of SimCode: time 0.001111/0.01875, allocations: 1.514 MB / 345.1 MB, free: 0.8789 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.