Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.LCOscillator,tolerance=0.0001,outputFormat="mat",numberOfIntervals=1998,variableFilter="time|c.v|l.i|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator,tolerance=0.0001,outputFormat="mat",numberOfIntervals=1998,variableFilter="time|c.v|l.i|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 107.3 kB / 18.41 MB, free: 4.688 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.001364/0.001364, allocations: 193.4 kB / 19.35 MB, free: 3.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.419e-05, allocations: 5.234 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.003591/0.003624, allocations: 2.679 MB / 331.9 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.004954, allocations: 0.7021 MB / 332.6 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.005177, allocations: 4 kB / 332.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.00536, allocations: 47.56 kB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.0056, allocations: 87.25 kB / 332.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002937/0.00592, allocations: 91.81 kB / 332.8 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004368/0.006367, allocations: 382.3 kB / 333.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002153/0.00659, allocations: 109.7 kB / 333.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002245/0.006822, allocations: 131.5 kB / 333.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.007002, allocations: 143.4 kB / 333.6 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.695e-05/0.007076, allocations: 28 kB / 333.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.344e-05/0.007139, allocations: 28 kB / 333.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003657/0.00751, allocations: 474.9 kB / 334.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001642/0.00768, allocations: 287.8 kB / 334.4 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.989e-05/0.007756, allocations: 47.81 kB / 334.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.888e-05/0.007812, allocations: 12 kB / 334.4 MB, free: 14.07 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 (61) * Number of variables: 61 (61) Notification: Performance of Bindings: time 0.001312/0.009129, allocations: 1.358 MB / 335.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of FunctionAlias: time 7.92e-05/0.009215, allocations: 63.88 kB / 335.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006038/0.009826, allocations: 0.6401 MB / 336.5 MB, free: 11.87 MB / 286.1 MB Notification: Performance of simplify1: time 8.263e-05/0.009916, allocations: 71.84 kB / 336.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of Alias: time 0.001685/0.01161, allocations: 1.321 MB / 337.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simplify2: time 7.082e-05/0.01169, allocations: 43.94 kB / 337.9 MB, free: 10.26 MB / 286.1 MB Notification: Performance of Events: time 0.0001682/0.01187, allocations: 95.33 kB / 338 MB, free: 10.16 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002938/0.01217, allocations: 169.4 kB / 338.2 MB, free: 9.984 MB / 286.1 MB Notification: Performance of Partitioning: time 0.000292/0.01247, allocations: 204.4 kB / 338.4 MB, free: 9.754 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009602/0.01344, allocations: 0.7461 MB / 339.1 MB, free: 8.977 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004644/0.01391, allocations: 458.3 kB / 339.6 MB, free: 8.5 MB / 286.1 MB Notification: Performance of Inline: time 0.0008901/0.01481, allocations: 0.7894 MB / 340.4 MB, free: 7.676 MB / 286.1 MB Notification: Performance of Partitioning: time 6.568e-05/0.01489, allocations: 46.38 kB / 340.4 MB, free: 7.621 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001268/0.01502, allocations: 97.03 kB / 340.5 MB, free: 7.523 MB / 286.1 MB Notification: Performance of Causalize: time 0.002697/0.01773, allocations: 2.181 MB / 342.7 MB, free: 5.332 MB / 286.1 MB Notification: Performance of Tearing: time 0.000791/0.01853, allocations: 0.7655 MB / 343.4 MB, free: 4.469 MB / 286.1 MB Notification: Performance of Initialization: time 1.933e-06/0.01855, allocations: 0 / 343.4 MB, free: 4.469 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004204/0.01897, allocations: 426 kB / 343.9 MB, free: 4.004 MB / 286.1 MB Notification: Performance of Categorize: time 1.762e-05/0.019, allocations: 0 / 343.9 MB, free: 4.004 MB / 286.1 MB Notification: Performance of Solve: time 0.0003035/0.01931, allocations: 141.8 kB / 344 MB, free: 3.863 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0004173/0.01974, allocations: 445.7 kB / 344.4 MB, free: 3.391 MB / 286.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: ............... 1 * Number of algebraic event partitions: ......... 3 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 2 (2) {c.v, l.i} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 5 (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: ........... 23 (scalar:23, 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: ........... 41 (scalar:41, 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 (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 43 (scalar:43, 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 6.342e-05/0.01981, allocations: 39.77 kB / 344.5 MB, free: 3.352 MB / 286.1 MB Notification: Performance of SimCode: time 0.001496/0.02131, allocations: 1.619 MB / 346.1 MB, free: 1.711 MB / 286.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.