Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Adder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001137, allocations: 112.4 kB / 18.47 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 214.2 kB / 19.42 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.568e-05/2.568e-05, allocations: 6.219 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.003983/0.004017, allocations: 3.201 MB / 362.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.005346, allocations: 0.8219 MB / 363.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.005503, allocations: 4 kB / 363.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.00569, allocations: 63.42 kB / 363.5 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.005895, allocations: 103 kB / 363.6 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003222/0.006224, allocations: 135.8 kB / 363.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004884/0.006722, allocations: 0.4981 MB / 364.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002707/0.007001, allocations: 155.9 kB / 364.3 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002444/0.007254, allocations: 171.4 kB / 364.5 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.007456, allocations: 179.2 kB / 364.7 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.446e-05/0.007516, allocations: 44 kB / 364.7 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.121e-05/0.007613, allocations: 52 kB / 364.8 MB, free: 7.5 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004272/0.008046, allocations: 0.6027 MB / 365.4 MB, free: 6.891 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001846/0.008237, allocations: 366.7 kB / 365.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.692e-05/0.008309, allocations: 63.81 kB / 365.8 MB, free: 6.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.921e-05/0.008364, allocations: 15.88 kB / 365.8 MB, free: 6.449 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.009909, allocations: 1.826 MB / 367.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of FunctionAlias: time 7.087e-05/0.009987, allocations: 75.88 kB / 367.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0009252/0.01092, allocations: 1.026 MB / 368.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of simplify1: time 7.972e-05/0.01101, allocations: 83.91 kB / 368.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of Alias: time 0.002213/0.01323, allocations: 1.943 MB / 370.8 MB, free: 1.168 MB / 302.1 MB Notification: Performance of simplify2: time 4.735e-05/0.01329, allocations: 47.95 kB / 370.8 MB, free: 1.121 MB / 302.1 MB Notification: Performance of Events: time 0.0001719/0.01346, allocations: 112.8 kB / 370.9 MB, free: 1.008 MB / 302.1 MB Notification: Performance of Detect States: time 0.0001745/0.01365, allocations: 181.1 kB / 371.1 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002364/0.01389, allocations: 237.5 kB / 371.3 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of Causalize: time 0.2362/0.2501, allocations: 0.8291 MB / 372.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006206/0.2508, allocations: 0.5237 MB / 372.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of Inline: time 0.001232/0.252, allocations: 1.128 MB / 373.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of Partitioning: time 6.806e-05/0.2521, allocations: 59.47 kB / 373.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of Cleanup: time 5.132e-05/0.2521, allocations: 41.42 kB / 373.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of Causalize: time 0.001992/0.2541, allocations: 1.521 MB / 375.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004817/0.2546, allocations: 465.7 kB / 375.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of Initialization: time 4.71e-07/0.2546, allocations: 3.094 kB / 375.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003559/0.255, allocations: 468.1 kB / 376.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of Categorize: time 1.697e-05/0.255, allocations: 6.969 kB / 376.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of Solve: time 0.0002435/0.2553, allocations: 130.1 kB / 376.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of Jacobian: time 2.715e-06/0.2553, allocations: 0 / 376.5 MB, free: 14.1 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: ........... 24 (scalar:24, 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: ........... 49 (scalar:49, 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 4.917e-05/0.2553, allocations: 36.59 kB / 376.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of SimCode: time 0.001825/0.2572, allocations: 1.913 MB / 378.4 MB, free: 13.13 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.