Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001247/0.001247, allocations: 103.3 kB / 16.42 MB, free: 6.465 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.001219/0.001219, allocations: 192.3 kB / 17.36 MB, free: 5.707 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.367/1.367, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.727e-05/2.729e-05, allocations: 10.16 kB / 327.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.003587/0.003623, allocations: 2.679 MB / 329.9 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.004838, allocations: 0.7061 MB / 330.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.004981, allocations: 7.938 kB / 330.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.005137, allocations: 39.58 kB / 330.7 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001821/0.005327, allocations: 87.25 kB / 330.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.005611, allocations: 95.8 kB / 330.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003865/0.006008, allocations: 382.3 kB / 331.2 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002252/0.006242, allocations: 117.7 kB / 331.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001807/0.00643, allocations: 123.5 kB / 331.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.006611, allocations: 143.4 kB / 331.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.3e-05/0.00666, allocations: 28 kB / 331.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.842e-05/0.006724, allocations: 28 kB / 331.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003662/0.007095, allocations: 474.9 kB / 332.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001669/0.007268, allocations: 287.7 kB / 332.4 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.603e-05/0.007329, allocations: 47.81 kB / 332.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.616e-05/0.007376, allocations: 15.94 kB / 332.4 MB, free: 14.04 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.001302/0.008684, allocations: 1.358 MB / 333.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of FunctionAlias: time 5.884e-05/0.008749, allocations: 59.89 kB / 333.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005816/0.009337, allocations: 0.644 MB / 334.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of simplify1: time 6.416e-05/0.009407, allocations: 63.86 kB / 334.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of Alias: time 0.001379/0.01079, allocations: 1.188 MB / 335.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simplify2: time 4.492e-05/0.01085, allocations: 43.95 kB / 335.8 MB, free: 10.37 MB / 286.1 MB Notification: Performance of Events: time 0.00015/0.01101, allocations: 100.4 kB / 335.9 MB, free: 10.27 MB / 286.1 MB Notification: Performance of Detect States: time 0.000225/0.01124, allocations: 165.2 kB / 336.1 MB, free: 10.09 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002322/0.01148, allocations: 200.4 kB / 336.3 MB, free: 9.867 MB / 286.1 MB Notification: Performance of Causalize: time 0.001006/0.01249, allocations: 1.007 MB / 337.3 MB, free: 8.836 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004062/0.01291, allocations: 446.8 kB / 337.7 MB, free: 8.375 MB / 286.1 MB Notification: Performance of Inline: time 0.0008087/0.01372, allocations: 0.7933 MB / 338.5 MB, free: 7.543 MB / 286.1 MB Notification: Performance of Partitioning: time 4.817e-05/0.01378, allocations: 46.38 kB / 338.5 MB, free: 7.492 MB / 286.1 MB Notification: Performance of Cleanup: time 9.574e-05/0.01388, allocations: 105 kB / 338.6 MB, free: 7.387 MB / 286.1 MB Notification: Performance of Causalize: time 0.002488/0.01638, allocations: 2.798 MB / 341.4 MB, free: 4.613 MB / 286.1 MB Notification: Performance of Tearing: time 0.0006705/0.01706, allocations: 0.7735 MB / 342.2 MB, free: 3.742 MB / 286.1 MB Notification: Performance of Initialization: time 6.11e-07/0.01707, allocations: 0 / 342.2 MB, free: 3.742 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003167/0.01739, allocations: 410.9 kB / 342.6 MB, free: 3.293 MB / 286.1 MB Notification: Performance of Categorize: time 1.647e-05/0.01742, allocations: 4 kB / 342.6 MB, free: 3.289 MB / 286.1 MB Notification: Performance of Solve: time 0.0002253/0.01765, allocations: 145.6 kB / 342.8 MB, free: 3.145 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0003585/0.01801, allocations: 449.7 kB / 343.2 MB, free: 2.668 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.988e-05/0.01807, allocations: 48.47 kB / 343.2 MB, free: 2.625 MB / 286.1 MB Notification: Performance of SimCode: time 0.001252/0.01933, allocations: 1.62 MB / 344.9 MB, free: 0.9883 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.