Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001138/0.001138, allocations: 110.8 kB / 17.69 MB, free: 5.523 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.0009328/0.0009328, allocations: 192 kB / 18.63 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.21/1.21, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.914e-05/2.916e-05, allocations: 6.219 kB / 302 MB, free: 5.223 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.004155/0.004202, allocations: 2.704 MB / 304.7 MB, free: 2.52 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.005313, allocations: 0.6596 MB / 305.4 MB, free: 1.855 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.005441, allocations: 4 kB / 305.4 MB, free: 1.852 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.005602, allocations: 51.5 kB / 305.4 MB, free: 1.801 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.005768, allocations: 87.23 kB / 305.5 MB, free: 1.715 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.006024, allocations: 99.77 kB / 305.6 MB, free: 1.617 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003519/0.006384, allocations: 378.4 kB / 306 MB, free: 1.246 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.006628, allocations: 109.7 kB / 306.1 MB, free: 1.141 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/0.00681, allocations: 131.5 kB / 306.2 MB, free: 1.012 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.006994, allocations: 139.3 kB / 306.4 MB, free: 0.875 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 4.513e-05/0.007046, allocations: 28 kB / 306.4 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.007097, allocations: 28 kB / 306.4 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0003883/0.00749, allocations: 470.9 kB / 306.9 MB, free: 364 kB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001523/0.00765, allocations: 287.9 kB / 307.2 MB, free: 72 kB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 6.332e-05/0.00772, allocations: 55.75 kB / 307.2 MB, free: 16 kB / 238.1 MB Notification: Performance of FrontEnd: time 3.911e-05/0.007765, allocations: 8 kB / 307.2 MB, free: 8 kB / 238.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.001231/0.009, allocations: 1.354 MB / 308.6 MB, free: 14.54 MB / 254.1 MB Notification: Performance of FunctionAlias: time 5.06e-05/0.009058, allocations: 59.83 kB / 308.6 MB, free: 14.48 MB / 254.1 MB Notification: Performance of Early Inline: time 0.0005276/0.00959, allocations: 0.64 MB / 309.3 MB, free: 13.81 MB / 254.1 MB Notification: Performance of simplify1: time 6.105e-05/0.009658, allocations: 63.92 kB / 309.3 MB, free: 13.75 MB / 254.1 MB Notification: Performance of Alias: time 0.00127/0.01093, allocations: 1.201 MB / 310.5 MB, free: 12.37 MB / 254.1 MB Notification: Performance of simplify2: time 3.928e-05/0.01098, allocations: 44.08 kB / 310.6 MB, free: 12.33 MB / 254.1 MB Notification: Performance of Events: time 0.0001251/0.01111, allocations: 87.61 kB / 310.7 MB, free: 12.25 MB / 254.1 MB Notification: Performance of Detect States: time 0.0002015/0.01132, allocations: 165.6 kB / 310.8 MB, free: 12.07 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0001974/0.01153, allocations: 197 kB / 311 MB, free: 11.85 MB / 254.1 MB Notification: Performance of Causalize: time 0.0008886/0.01242, allocations: 0.9657 MB / 312 MB, free: 10.86 MB / 254.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003568/0.01279, allocations: 433.4 kB / 312.4 MB, free: 10.41 MB / 254.1 MB Notification: Performance of Inline: time 0.0007189/0.01352, allocations: 0.7572 MB / 313.2 MB, free: 9.621 MB / 254.1 MB Notification: Performance of Partitioning: time 5.121e-05/0.01358, allocations: 50.36 kB / 313.2 MB, free: 9.562 MB / 254.1 MB Notification: Performance of Cleanup: time 2.889e-05/0.01361, allocations: 27.97 kB / 313.2 MB, free: 9.535 MB / 254.1 MB Notification: Performance of Causalize: time 0.001325/0.01494, allocations: 1.386 MB / 314.6 MB, free: 8.16 MB / 254.1 MB Notification: Performance of Tearing: time 0.0003746/0.01533, allocations: 386 kB / 315 MB, free: 7.734 MB / 254.1 MB Notification: Performance of Initialization: time 3.3e-07/0.01534, allocations: 0 / 315 MB, free: 7.734 MB / 254.1 MB Notification: Performance of Tearing: time 0.000312/0.01565, allocations: 393.9 kB / 315.4 MB, free: 7.301 MB / 254.1 MB Notification: Performance of Categorize: time 1.277e-05/0.01568, allocations: 0.6562 kB / 315.4 MB, free: 7.301 MB / 254.1 MB Notification: Performance of Solve: time 0.0001965/0.01588, allocations: 133.8 kB / 315.5 MB, free: 7.168 MB / 254.1 MB Notification: Performance of Jacobian: time 0.0003515/0.01624, allocations: 431.6 kB / 315.9 MB, free: 6.711 MB / 254.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 2.941e-05/0.01627, allocations: 23.91 kB / 316 MB, free: 6.695 MB / 254.1 MB Notification: Performance of SimCode: time 0.001108/0.01739, allocations: 1.556 MB / 317.5 MB, free: 5.109 MB / 254.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.