Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001183/0.001184, allocations: 109.5 kB / 17.75 MB, free: 5.352 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.001138/0.001138, allocations: 188.2 kB / 18.68 MB, free: 4.426 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.274/1.274, allocations: 205.1 MB / 224.6 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.522e-05/2.522e-05, allocations: 7.125 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.003374/0.003407, allocations: 2.672 MB / 331.2 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.00471, allocations: 0.7098 MB / 331.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000226/0.004948, allocations: 4 kB / 331.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.005128, allocations: 47.58 kB / 332 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.005389, allocations: 87.19 kB / 332.1 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.005703, allocations: 91.89 kB / 332.2 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004435/0.006155, allocations: 382.4 kB / 332.5 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.006407, allocations: 109.7 kB / 332.6 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002385/0.006652, allocations: 131.5 kB / 332.8 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.006856, allocations: 139.4 kB / 332.9 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.07e-05/0.006914, allocations: 27.94 kB / 332.9 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.749e-05/0.006969, allocations: 28 kB / 333 MB, free: 14.87 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003367/0.007311, allocations: 474.9 kB / 333.4 MB, free: 14.4 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001702/0.007488, allocations: 287.7 kB / 333.7 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.097e-05/0.007575, allocations: 55.81 kB / 333.8 MB, free: 14.06 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.168e-05/0.007623, allocations: 8 kB / 333.8 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.001282/0.00891, allocations: 1.351 MB / 335.1 MB, free: 12.59 MB / 286.1 MB Notification: Performance of FunctionAlias: time 9.429e-05/0.009011, allocations: 63.89 kB / 335.2 MB, free: 12.53 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005941/0.009611, allocations: 0.644 MB / 335.8 MB, free: 11.86 MB / 286.1 MB Notification: Performance of simplify1: time 7.957e-05/0.009697, allocations: 63.92 kB / 335.9 MB, free: 11.79 MB / 286.1 MB Notification: Performance of Alias: time 0.001409/0.01111, allocations: 1.192 MB / 337.1 MB, free: 10.43 MB / 286.1 MB Notification: Performance of simplify2: time 6.494e-05/0.01119, allocations: 40.39 kB / 337.1 MB, free: 10.39 MB / 286.1 MB Notification: Performance of Events: time 0.0001619/0.01135, allocations: 98.94 kB / 337.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002271/0.01159, allocations: 162 kB / 337.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002584/0.01186, allocations: 208.4 kB / 337.6 MB, free: 9.883 MB / 286.1 MB Notification: Performance of Causalize: time 0.001004/0.01287, allocations: 1.002 MB / 338.6 MB, free: 8.859 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004082/0.01328, allocations: 459 kB / 339 MB, free: 8.387 MB / 286.1 MB Notification: Performance of Inline: time 0.0008558/0.01415, allocations: 0.7894 MB / 339.8 MB, free: 7.559 MB / 286.1 MB Notification: Performance of Partitioning: time 5.611e-05/0.01421, allocations: 46.5 kB / 339.9 MB, free: 7.508 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001429/0.01436, allocations: 105 kB / 340 MB, free: 7.402 MB / 286.1 MB Notification: Performance of Causalize: time 0.002569/0.01693, allocations: 2.797 MB / 342.8 MB, free: 4.629 MB / 286.1 MB Notification: Performance of Tearing: time 0.0006712/0.01762, allocations: 0.7734 MB / 343.5 MB, free: 3.758 MB / 286.1 MB Notification: Performance of Initialization: time 9.92e-07/0.01763, allocations: 3.938 kB / 343.5 MB, free: 3.754 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003127/0.01794, allocations: 410 kB / 343.9 MB, free: 3.305 MB / 286.1 MB Notification: Performance of Categorize: time 1.483e-05/0.01797, allocations: 4 kB / 343.9 MB, free: 3.301 MB / 286.1 MB Notification: Performance of Solve: time 0.0002425/0.01822, allocations: 145.7 kB / 344.1 MB, free: 3.156 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0003741/0.0186, allocations: 441.8 kB / 344.5 MB, free: 2.688 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 5.653e-05/0.01866, allocations: 52.5 kB / 344.6 MB, free: 2.641 MB / 286.1 MB Notification: Performance of SimCode: time 0.001206/0.01987, allocations: 1.619 MB / 346.2 MB, free: 1.004 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.