Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 111.8 kB / 17.75 MB, free: 5.312 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.001004/0.001004, allocations: 185.8 kB / 18.68 MB, free: 4.398 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.3/1.3, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.391e-05/2.392e-05, allocations: 5.797 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004013/0.004045, allocations: 3.349 MB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.005312, allocations: 0.8181 MB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.005478, allocations: 8 kB / 356.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001907/0.005675, allocations: 63.36 kB / 356.2 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002089/0.005903, allocations: 115 kB / 356.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000307/0.006216, allocations: 147.8 kB / 356.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005121/0.006737, allocations: 0.5526 MB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003078/0.007052, allocations: 177.3 kB / 357.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.007282, allocations: 187.4 kB / 357.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.00749, allocations: 199.1 kB / 357.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.17e-05/0.007558, allocations: 48 kB / 357.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.129e-05/0.007625, allocations: 48 kB / 357.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004425/0.008072, allocations: 0.6608 MB / 358.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002248/0.008304, allocations: 398.1 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.559e-05/0.008386, allocations: 79.75 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.242e-05/0.008454, allocations: 8 kB / 358.8 MB, free: 12.38 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.001814/0.01027, allocations: 2.017 MB / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001496/0.01043, allocations: 97.59 kB / 360.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0009883/0.01143, allocations: 0.9913 MB / 361.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simplify1: time 9.794e-05/0.01154, allocations: 99.88 kB / 362 MB, free: 9.031 MB / 302.1 MB Notification: Performance of Alias: time 0.002544/0.01409, allocations: 2.171 MB / 364.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of simplify2: time 5.773e-05/0.01416, allocations: 55.94 kB / 364.2 MB, free: 6.598 MB / 302.1 MB Notification: Performance of Events: time 0.0001991/0.01436, allocations: 139.6 kB / 364.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002137/0.01458, allocations: 202.3 kB / 364.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002966/0.01489, allocations: 291.8 kB / 364.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of Causalize: time 0.001161/0.01606, allocations: 1.015 MB / 365.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.000622/0.01669, allocations: 0.6283 MB / 366.5 MB, free: 4.211 MB / 302.1 MB Notification: Performance of Inline: time 0.001122/0.01782, allocations: 1.161 MB / 367.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of Partitioning: time 7.906e-05/0.01791, allocations: 79.55 kB / 367.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of Cleanup: time 5.073e-05/0.01797, allocations: 47.89 kB / 367.8 MB, free: 2.887 MB / 302.1 MB Notification: Performance of Causalize: time 0.002112/0.02008, allocations: 1.827 MB / 369.6 MB, free: 1.039 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006887/0.02078, allocations: 0.715 MB / 370.3 MB, free: 232 kB / 302.1 MB Notification: Performance of Initialization: time 6.41e-07/0.02079, allocations: 0 / 370.3 MB, free: 232 kB / 302.1 MB Notification: Performance of Tearing: time 0.2161/0.2369, allocations: 0.7152 MB / 371 MB, free: 19.21 MB / 302.1 MB Notification: Performance of Categorize: time 3.991e-05/0.237, allocations: 1.281 kB / 371 MB, free: 19.21 MB / 302.1 MB Notification: Performance of Solve: time 0.00054/0.2375, allocations: 148.9 kB / 371.2 MB, free: 19.21 MB / 302.1 MB Notification: Performance of Jacobian: time 4.989e-06/0.2375, allocations: 0 / 371.2 MB, free: 19.21 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: ........... 28 (scalar:28, 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: ........... 55 (scalar:55, 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.886e-05/0.2376, allocations: 27.98 kB / 371.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of SimCode: time 0.002121/0.2397, allocations: 2.107 MB / 373.3 MB, free: 18.26 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.