Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 119.7 kB / 18.47 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 205.1 kB / 19.42 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 247.6 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.582e-05/2.583e-05, allocations: 6.219 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004296/0.00433, allocations: 3.388 MB / 362.8 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.005861, allocations: 0.8611 MB / 363.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000224/0.006097, allocations: 7.938 kB / 363.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.006317, allocations: 71.34 kB / 363.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002266/0.006568, allocations: 119 kB / 363.8 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003787/0.006954, allocations: 147.8 kB / 364 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005536/0.007517, allocations: 0.5563 MB / 364.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003034/0.00783, allocations: 177.3 kB / 364.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000272/0.008112, allocations: 199.3 kB / 364.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.008336, allocations: 199.2 kB / 365.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-05/0.008403, allocations: 48 kB / 365.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.008511, allocations: 52 kB / 365.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004642/0.008982, allocations: 0.6685 MB / 365.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002262/0.009215, allocations: 398.1 kB / 366.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.347e-05/0.009296, allocations: 79.75 kB / 366.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.377e-05/0.009365, allocations: 8 kB / 366.3 MB, free: 5.965 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: 87 (87) * Number of variables: 87 (87) Notification: Performance of Bindings: time 0.001714/0.01109, allocations: 2.032 MB / 368.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of FunctionAlias: time 7.76e-05/0.01117, allocations: 91.86 kB / 368.4 MB, free: 3.727 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0009899/0.01217, allocations: 1.147 MB / 369.6 MB, free: 2.551 MB / 302.1 MB Notification: Performance of simplify1: time 8.651e-05/0.01226, allocations: 95.89 kB / 369.7 MB, free: 2.457 MB / 302.1 MB Notification: Performance of Alias: time 0.002419/0.01469, allocations: 2.152 MB / 371.8 MB, free: 100 kB / 302.1 MB Notification: Performance of simplify2: time 5.456e-05/0.01476, allocations: 59.88 kB / 371.9 MB, free: 40 kB / 302.1 MB Notification: Performance of Events: time 0.2334/0.2481, allocations: 121.3 kB / 372 MB, free: 15.21 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003452/0.2485, allocations: 204.4 kB / 372.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0004413/0.249, allocations: 288.2 kB / 372.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of Causalize: time 0.001441/0.2504, allocations: 0.9987 MB / 373.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008363/0.2513, allocations: 0.6241 MB / 374.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of Inline: time 0.001602/0.2529, allocations: 1.305 MB / 375.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001066/0.253, allocations: 76.34 kB / 375.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of Cleanup: time 5.215e-05/0.2531, allocations: 54.86 kB / 375.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Causalize: time 0.002322/0.2554, allocations: 1.812 MB / 377.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006734/0.2561, allocations: 0.7126 MB / 378.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of Initialization: time 1.073e-06/0.2561, allocations: 0 / 378.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005576/0.2567, allocations: 0.719 MB / 378.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of Categorize: time 2.179e-05/0.2567, allocations: 4.344 kB / 378.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of Solve: time 0.0003123/0.257, allocations: 153.1 kB / 378.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of Jacobian: time 3.907e-06/0.257, allocations: 0 / 378.9 MB, free: 13.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: ......... 5 * 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: ................. 7 (7) {$SEV_5, $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: ........... 27 (scalar:27, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 54 (scalar:54, 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: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 4.961e-05/0.2571, allocations: 30.36 kB / 379 MB, free: 13.09 MB / 302.1 MB Notification: Performance of SimCode: time 0.002172/0.2593, allocations: 2.109 MB / 381.1 MB, free: 11.88 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.