Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 113.3 kB / 17.75 MB, free: 5.305 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.001154/0.001154, allocations: 184.3 kB / 18.68 MB, free: 4.387 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.29/1.29, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.914e-05/2.915e-05, allocations: 5.375 kB / 351.9 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004033/0.004072, allocations: 2.784 MB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.00518, allocations: 0.6427 MB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.005318, allocations: 4 kB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.005492, allocations: 47.5 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001726/0.00568, allocations: 87.2 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002657/0.005952, allocations: 95.81 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004987/0.006459, allocations: 426.3 kB / 356 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.006702, allocations: 126.9 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.00687, allocations: 147.4 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.007066, allocations: 163.3 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/0.007121, allocations: 32 kB / 356.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.959e-05/0.007179, allocations: 36 kB / 356.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004067/0.00759, allocations: 0.5102 MB / 357 MB, free: 14.15 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001684/0.007765, allocations: 299.6 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.866e-05/0.007839, allocations: 55.81 kB / 357.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.453e-05/0.00789, allocations: 8 kB / 357.4 MB, free: 13.79 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.001347/0.009242, allocations: 1.489 MB / 358.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of FunctionAlias: time 6.283e-05/0.009313, allocations: 59.94 kB / 358.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006706/0.00999, allocations: 0.7337 MB / 359.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simplify1: time 7.184e-05/0.01007, allocations: 63.92 kB / 359.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of Alias: time 0.001807/0.01188, allocations: 1.495 MB / 361.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simplify2: time 4.453e-05/0.01194, allocations: 39.95 kB / 361.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of Events: time 0.0002231/0.01217, allocations: 135.4 kB / 361.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002595/0.01244, allocations: 201.2 kB / 361.6 MB, free: 9.246 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002326/0.01268, allocations: 204.9 kB / 361.8 MB, free: 9.016 MB / 302.1 MB Notification: Performance of Causalize: time 0.0008907/0.01358, allocations: 0.7319 MB / 362.5 MB, free: 8.25 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.000508/0.01409, allocations: 0.525 MB / 363 MB, free: 7.699 MB / 302.1 MB Notification: Performance of Inline: time 0.001076/0.01518, allocations: 1.026 MB / 364.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of Partitioning: time 6.113e-05/0.01525, allocations: 54.38 kB / 364.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of Cleanup: time 4.042e-05/0.01529, allocations: 39.89 kB / 364.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of Causalize: time 0.001889/0.01719, allocations: 1.515 MB / 365.7 MB, free: 5.016 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005045/0.0177, allocations: 421.9 kB / 366.1 MB, free: 4.555 MB / 302.1 MB Notification: Performance of Initialization: time 5.51e-07/0.01771, allocations: 0 / 366.1 MB, free: 4.555 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003876/0.01811, allocations: 410 kB / 366.5 MB, free: 4.105 MB / 302.1 MB Notification: Performance of Categorize: time 2.064e-05/0.01814, allocations: 7.938 kB / 366.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of Solve: time 0.0002239/0.01837, allocations: 133.9 kB / 366.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of Jacobian: time 3.928e-06/0.01838, allocations: 0 / 366.6 MB, free: 3.965 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 7.244e-05/0.01846, allocations: 35.05 kB / 366.7 MB, free: 3.934 MB / 302.1 MB Notification: Performance of SimCode: time 0.001464/0.01993, allocations: 1.566 MB / 368.2 MB, free: 2.34 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.