Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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="empty",numberOfIntervals=1998,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1998,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001192/0.001192, allocations: 108.5 kB / 16.42 MB, free: 6.512 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.001147/0.001147, allocations: 187.8 kB / 17.35 MB, free: 5.73 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.235/1.235, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.408e-05/2.409e-05, allocations: 2.281 kB / 327.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.003275/0.003307, allocations: 2.68 MB / 329.9 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.004526, allocations: 0.702 MB / 330.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.004682, allocations: 8 kB / 330.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.004858, allocations: 43.56 kB / 330.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.005058, allocations: 87.19 kB / 330.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002321/0.005297, allocations: 95.88 kB / 330.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003645/0.00567, allocations: 382.4 kB / 331.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.005884, allocations: 109.7 kB / 331.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.006058, allocations: 127.5 kB / 331.4 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.006215, allocations: 143.4 kB / 331.6 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.94e-05/0.006273, allocations: 31.94 kB / 331.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.046e-05/0.006319, allocations: 28 kB / 331.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003293/0.006653, allocations: 474.9 kB / 332.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001449/0.006804, allocations: 283.8 kB / 332.4 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.529e-05/0.006856, allocations: 55.81 kB / 332.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.736e-05/0.006888, allocations: 8 kB / 332.4 MB, free: 14.05 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.0012/0.008093, allocations: 1.358 MB / 333.8 MB, free: 12.58 MB / 286.1 MB Notification: Performance of FunctionAlias: time 5.797e-05/0.008157, allocations: 59.89 kB / 333.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005516/0.008714, allocations: 0.6479 MB / 334.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of simplify1: time 5.468e-05/0.008776, allocations: 63.86 kB / 334.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of Alias: time 0.001242/0.01002, allocations: 1.189 MB / 335.8 MB, free: 10.42 MB / 286.1 MB Notification: Performance of simplify2: time 3.953e-05/0.01007, allocations: 40.14 kB / 335.8 MB, free: 10.38 MB / 286.1 MB Notification: Performance of Events: time 0.000143/0.01022, allocations: 99.92 kB / 335.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002058/0.01044, allocations: 157.2 kB / 336 MB, free: 10.12 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002043/0.01065, allocations: 204.4 kB / 336.2 MB, free: 9.887 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009362/0.01159, allocations: 1.015 MB / 337.3 MB, free: 8.848 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003764/0.01198, allocations: 447.1 kB / 337.7 MB, free: 8.387 MB / 286.1 MB Notification: Performance of Inline: time 0.0007284/0.01271, allocations: 0.7934 MB / 338.5 MB, free: 7.555 MB / 286.1 MB Notification: Performance of Partitioning: time 5.021e-05/0.01277, allocations: 54.34 kB / 338.5 MB, free: 7.496 MB / 286.1 MB Notification: Performance of Cleanup: time 9.366e-05/0.01287, allocations: 101 kB / 338.6 MB, free: 7.395 MB / 286.1 MB Notification: Performance of Causalize: time 0.002343/0.01522, allocations: 2.794 MB / 341.4 MB, free: 4.629 MB / 286.1 MB Notification: Performance of Tearing: time 0.0006158/0.01585, allocations: 0.7701 MB / 342.2 MB, free: 3.762 MB / 286.1 MB Notification: Performance of Initialization: time 4.3e-07/0.01585, allocations: 3.938 kB / 342.2 MB, free: 3.758 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003005/0.01616, allocations: 418.2 kB / 342.6 MB, free: 3.301 MB / 286.1 MB Notification: Performance of Categorize: time 9.147e-06/0.01618, allocations: 0 / 342.6 MB, free: 3.301 MB / 286.1 MB Notification: Performance of Solve: time 0.0001985/0.01638, allocations: 141.9 kB / 342.8 MB, free: 3.16 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0003512/0.01674, allocations: 449.7 kB / 343.2 MB, free: 2.684 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 4.245e-05/0.01679, allocations: 56.66 kB / 343.2 MB, free: 2.633 MB / 286.1 MB Notification: Performance of SimCode: time 0.001088/0.01789, allocations: 1.619 MB / 344.9 MB, free: 0.9961 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.