Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001115/0.001115, allocations: 112.4 kB / 18.47 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 210.2 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.935e-05/1.936e-05, allocations: 6.219 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.003145/0.003172, allocations: 2.706 MB / 362.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.004253, allocations: 0.7126 MB / 362.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.004382, allocations: 4 kB / 362.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.004539, allocations: 55.5 kB / 362.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.004705, allocations: 87.23 kB / 362.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002428/0.004953, allocations: 91.83 kB / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003506/0.005312, allocations: 378.5 kB / 363.4 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.005524, allocations: 117.6 kB / 363.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.005746, allocations: 131.5 kB / 363.6 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.005911, allocations: 143.3 kB / 363.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.035e-05/0.005957, allocations: 28 kB / 363.8 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.475e-05/0.006008, allocations: 28 kB / 363.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003394/0.006352, allocations: 474.9 kB / 364.3 MB, free: 7.988 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.000146/0.006503, allocations: 279.8 kB / 364.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.225e-05/0.006561, allocations: 47.88 kB / 364.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.394e-05/0.006599, allocations: 15.92 kB / 364.6 MB, free: 7.648 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: 61 (61) * Number of variables: 61 (61) Notification: Performance of Bindings: time 0.001146/0.00775, allocations: 1.358 MB / 366 MB, free: 6.18 MB / 302.1 MB Notification: Performance of FunctionAlias: time 5.174e-05/0.007808, allocations: 63.83 kB / 366.1 MB, free: 6.117 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0005265/0.00834, allocations: 0.6284 MB / 366.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of simplify1: time 6.162e-05/0.008408, allocations: 63.92 kB / 366.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of Alias: time 0.001422/0.009837, allocations: 1.352 MB / 368.1 MB, free: 3.863 MB / 302.1 MB Notification: Performance of simplify2: time 5.006e-05/0.009898, allocations: 43.94 kB / 368.1 MB, free: 3.82 MB / 302.1 MB Notification: Performance of Events: time 0.0001175/0.01002, allocations: 79.86 kB / 368.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of Detect States: time 0.0001866/0.01021, allocations: 166.3 kB / 368.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001954/0.01042, allocations: 196.4 kB / 368.6 MB, free: 3.344 MB / 302.1 MB Notification: Performance of Causalize: time 0.0007536/0.01118, allocations: 0.7049 MB / 369.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003655/0.01155, allocations: 445.6 kB / 369.7 MB, free: 2.145 MB / 302.1 MB Notification: Performance of Inline: time 0.000717/0.01228, allocations: 0.7765 MB / 370.5 MB, free: 1.332 MB / 302.1 MB Notification: Performance of Partitioning: time 4.788e-05/0.01233, allocations: 46.38 kB / 370.5 MB, free: 1.277 MB / 302.1 MB Notification: Performance of Cleanup: time 2.842e-05/0.01237, allocations: 31.91 kB / 370.6 MB, free: 1.246 MB / 302.1 MB Notification: Performance of Causalize: time 0.001112/0.01348, allocations: 1.058 MB / 371.6 MB, free: 188 kB / 302.1 MB Notification: Performance of Tearing: time 0.1569/0.1704, allocations: 390.4 kB / 372 MB, free: 15.9 MB / 302.1 MB Notification: Performance of Initialization: time 1.633e-06/0.1704, allocations: 0.6875 kB / 372 MB, free: 15.9 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002926/0.1707, allocations: 388.1 kB / 372.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Categorize: time 1.763e-05/0.1708, allocations: 4.359 kB / 372.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Solve: time 0.0003024/0.1711, allocations: 136.1 kB / 372.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0003209/0.1714, allocations: 424.8 kB / 372.9 MB, free: 15.48 MB / 302.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: ....... 0 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: Performance of backend: time 4.637e-05/0.1714, allocations: 24.98 kB / 373 MB, free: 15.48 MB / 302.1 MB Notification: Performance of SimCode: time 0.001203/0.1727, allocations: 1.557 MB / 374.5 MB, free: 14.57 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.