Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.Adder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Adder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001216, allocations: 115.3 kB / 17.75 MB, free: 5.195 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.0009403/0.0009403, allocations: 189.9 kB / 18.68 MB, free: 4.27 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.311/1.311, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.451e-05/2.452e-05, allocations: 2.281 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.003956/0.00399, allocations: 3.167 MB / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.005186, allocations: 0.7673 MB / 355.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.005349, allocations: 7.938 kB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.005534, allocations: 63.42 kB / 356 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001926/0.005741, allocations: 107 kB / 356.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.006028, allocations: 123.8 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004944/0.006533, allocations: 0.4904 MB / 356.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.00681, allocations: 163.9 kB / 356.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.007012, allocations: 175.3 kB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.007219, allocations: 179.2 kB / 357.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.409e-05/0.007279, allocations: 40 kB / 357.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.52e-05/0.007341, allocations: 44 kB / 357.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004124/0.007759, allocations: 0.5912 MB / 357.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001954/0.00796, allocations: 362.7 kB / 358.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.126e-05/0.008038, allocations: 71.75 kB / 358.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.619e-05/0.00809, allocations: 15.94 kB / 358.3 MB, free: 12.89 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: 78 (78) * Number of variables: 78 (78) Notification: Performance of Bindings: time 0.00154/0.009636, allocations: 1.815 MB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000121/0.009763, allocations: 89.47 kB / 360.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0007847/0.01056, allocations: 0.8898 MB / 361.1 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simplify1: time 7.483e-05/0.01064, allocations: 79.91 kB / 361.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of Alias: time 0.002155/0.0128, allocations: 1.96 MB / 363.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simplify2: time 4.826e-05/0.01286, allocations: 43.95 kB / 363.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of Events: time 0.0001403/0.01301, allocations: 103.6 kB / 363.3 MB, free: 7.594 MB / 302.1 MB Notification: Performance of Detect States: time 0.0001714/0.01319, allocations: 173.2 kB / 363.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002441/0.01344, allocations: 247.6 kB / 363.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of Causalize: time 0.0009544/0.0144, allocations: 0.8687 MB / 364.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004556/0.01486, allocations: 0.5262 MB / 365.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of Inline: time 0.0009275/0.0158, allocations: 1.014 MB / 366.1 MB, free: 4.633 MB / 302.1 MB Notification: Performance of Partitioning: time 6.937e-05/0.01588, allocations: 70.3 kB / 366.2 MB, free: 4.559 MB / 302.1 MB Notification: Performance of Cleanup: time 3.892e-05/0.01593, allocations: 43.89 kB / 366.2 MB, free: 4.516 MB / 302.1 MB Notification: Performance of Causalize: time 0.001656/0.01759, allocations: 1.529 MB / 367.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004551/0.01805, allocations: 461.8 kB / 368.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of Initialization: time 3.81e-07/0.01806, allocations: 0 / 368.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of Tearing: time 0.000379/0.01845, allocations: 462 kB / 368.6 MB, free: 1.977 MB / 302.1 MB Notification: Performance of Categorize: time 1.246e-05/0.01847, allocations: 0 / 368.6 MB, free: 1.977 MB / 302.1 MB Notification: Performance of Solve: time 0.000199/0.01868, allocations: 137.9 kB / 368.8 MB, free: 1.836 MB / 302.1 MB Notification: Performance of Jacobian: time 3.436e-06/0.01869, allocations: 0 / 368.8 MB, free: 1.836 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: ......... 4 * 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: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 6 (6) {$SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 25 (scalar:25, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, 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] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 50 (scalar:50, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, 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 5.151e-05/0.01874, allocations: 41.05 kB / 368.8 MB, free: 1.801 MB / 302.1 MB Notification: Performance of SimCode: time 0.211/0.2298, allocations: 1.907 MB / 370.7 MB, free: 18.57 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.