Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001132/0.001133, allocations: 114.6 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.001197/0.001197, allocations: 208 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.216/1.216, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.604e-05/1.605e-05, allocations: 2.281 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003293/0.003318, allocations: 2.808 MB / 362.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.00436, allocations: 0.6739 MB / 362.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.004483, allocations: 8 kB / 362.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.004651, allocations: 51.52 kB / 362.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.004818, allocations: 87.19 kB / 363 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.005051, allocations: 87.88 kB / 363.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004114/0.005471, allocations: 418.4 kB / 363.5 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.005695, allocations: 130.9 kB / 363.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.005842, allocations: 143.4 kB / 363.7 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.006013, allocations: 159.4 kB / 363.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.281e-05/0.006074, allocations: 39.98 kB / 363.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.318e-05/0.006133, allocations: 36 kB / 364 MB, free: 8.34 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003811/0.006519, allocations: 0.5062 MB / 364.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001488/0.006675, allocations: 299.6 kB / 364.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.442e-05/0.006734, allocations: 51.81 kB / 364.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.357e-05/0.006774, allocations: 12 kB / 364.8 MB, free: 7.469 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: 60 (60) * Number of variables: 60 (60) Notification: Performance of Bindings: time 0.001253/0.008034, allocations: 1.489 MB / 366.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of FunctionAlias: time 5.01e-05/0.00809, allocations: 51.94 kB / 366.4 MB, free: 5.816 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006451/0.008741, allocations: 0.7415 MB / 367.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of simplify1: time 6.651e-05/0.008815, allocations: 67.92 kB / 367.2 MB, free: 4.98 MB / 302.1 MB Notification: Performance of Alias: time 0.001669/0.01049, allocations: 1.488 MB / 368.7 MB, free: 3.305 MB / 302.1 MB Notification: Performance of simplify2: time 4.127e-05/0.01054, allocations: 39.94 kB / 368.7 MB, free: 3.266 MB / 302.1 MB Notification: Performance of Events: time 0.0001976/0.01075, allocations: 143.4 kB / 368.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002319/0.01099, allocations: 213 kB / 369.1 MB, free: 2.898 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000217/0.01121, allocations: 200.4 kB / 369.2 MB, free: 2.672 MB / 302.1 MB Notification: Performance of Causalize: time 0.000811/0.01203, allocations: 0.7362 MB / 370 MB, free: 1.906 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004568/0.0125, allocations: 0.5212 MB / 370.5 MB, free: 1.359 MB / 302.1 MB Notification: Performance of Inline: time 0.000948/0.01345, allocations: 1.011 MB / 371.5 MB, free: 316 kB / 302.1 MB Notification: Performance of Partitioning: time 5.937e-05/0.01352, allocations: 54.38 kB / 371.6 MB, free: 256 kB / 302.1 MB Notification: Performance of Cleanup: time 3.735e-05/0.01356, allocations: 39.89 kB / 371.6 MB, free: 216 kB / 302.1 MB Notification: Performance of Causalize: time 0.1582/0.1717, allocations: 1.529 MB / 373.1 MB, free: 16 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004152/0.1722, allocations: 409.4 kB / 373.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of Initialization: time 1.172e-06/0.1722, allocations: 3.969 kB / 373.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002945/0.1725, allocations: 414.1 kB / 373.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of Categorize: time 1.708e-05/0.1725, allocations: 1.938 kB / 373.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of Solve: time 0.0002358/0.1728, allocations: 125.6 kB / 374.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Jacobian: time 3.637e-06/0.1728, allocations: 1 kB / 374.1 MB, free: 15.54 MB / 302.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 1 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 3 * 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: .................... 2 (2) {vIn.signalSource.count, vIn.signalSource.T_start} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 9 (9) {$SEV_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: ........... 20 (scalar:20, 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: Performance of backend: time 4.673e-05/0.1728, allocations: 41.53 kB / 374.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of SimCode: time 0.001222/0.174, allocations: 1.575 MB / 375.7 MB, free: 14.63 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.