Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LowPass.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.LowPass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|firstOrder.c.v|firstOrder.opAmp.out.v|firstOrder.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LowPass") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.LowPass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|firstOrder.c.v|firstOrder.opAmp.out.v|firstOrder.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LowPass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 111.8 kB / 17.75 MB, free: 5.32 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.0009625/0.0009625, allocations: 189.8 kB / 18.68 MB, free: 4.395 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.32/1.32, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.093e-05/2.094e-05, allocations: 2.281 kB / 352 MB, free: 3.289 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LowPass): time 0.003768/0.003797, allocations: 3.076 MB / 355 MB, free: 200 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.005017, allocations: 0.7715 MB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.005172, allocations: 7.938 kB / 355.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.005357, allocations: 51.5 kB / 355.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.005566, allocations: 111 kB / 356 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003131/0.005895, allocations: 135.8 kB / 356.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004786/0.006383, allocations: 0.4982 MB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002559/0.006646, allocations: 143.1 kB / 356.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002233/0.006876, allocations: 183.3 kB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.007097, allocations: 191.2 kB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.927e-05/0.007163, allocations: 44 kB / 357.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.11e-05/0.00723, allocations: 44 kB / 357.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004183/0.007653, allocations: 0.5914 MB / 357.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001838/0.007844, allocations: 354.8 kB / 358.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.123e-05/0.007922, allocations: 67.81 kB / 358.2 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.65e-05/0.007974, allocations: 8 kB / 358.2 MB, free: 13 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: 68 (68) * Number of variables: 68 (68) Notification: Performance of Bindings: time 0.001538/0.009518, allocations: 1.792 MB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of FunctionAlias: time 6.735e-05/0.009592, allocations: 75.8 kB / 360.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0007948/0.01039, allocations: 0.8976 MB / 361 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simplify1: time 8.152e-05/0.01048, allocations: 79.91 kB / 361 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Alias: time 0.002044/0.01253, allocations: 1.775 MB / 362.8 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simplify2: time 5.448e-05/0.0126, allocations: 47.94 kB / 362.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of Events: time 0.0002301/0.01284, allocations: 156.4 kB / 363 MB, free: 7.863 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002877/0.01313, allocations: 234.1 kB / 363.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002649/0.01341, allocations: 255.4 kB / 363.5 MB, free: 7.348 MB / 302.1 MB Notification: Performance of Causalize: time 0.0009864/0.0144, allocations: 0.887 MB / 364.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005566/0.01496, allocations: 0.6352 MB / 365 MB, free: 5.773 MB / 302.1 MB Notification: Performance of Inline: time 0.001193/0.01617, allocations: 1.242 MB / 366.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of Partitioning: time 8.327e-05/0.01626, allocations: 83.55 kB / 366.3 MB, free: 4.402 MB / 302.1 MB Notification: Performance of Cleanup: time 5.435e-05/0.01632, allocations: 47.89 kB / 366.4 MB, free: 4.355 MB / 302.1 MB Notification: Performance of Causalize: time 0.002104/0.01843, allocations: 1.933 MB / 368.3 MB, free: 2.402 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003234/0.01876, allocations: 302.1 kB / 368.6 MB, free: 2.059 MB / 302.1 MB Notification: Performance of Initialization: time 4.51e-07/0.01877, allocations: 8 kB / 368.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002214/0.019, allocations: 298.2 kB / 368.9 MB, free: 1.711 MB / 302.1 MB Notification: Performance of Categorize: time 1.798e-05/0.01903, allocations: 11.92 kB / 368.9 MB, free: 1.699 MB / 302.1 MB Notification: Performance of Solve: time 0.0003003/0.01933, allocations: 202.1 kB / 369.1 MB, free: 1.5 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0003622/0.0197, allocations: 447 kB / 369.6 MB, free: 1.027 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: ......... 2 * 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: ............................. 1 (1) {firstOrder.v} * Number of discrete states: .................... 2 (2) {vIn.signalSource.count, vIn.signalSource.T_start} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 9 (9) {$SEV_8, $SEV_7, $SEV_6, $SEV_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: ........... 29 (scalar:29, array:0, record:0) * Number of multi strong components: ............ 2 (algorithm:0, when:2, 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: ........... 65 (scalar:65, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, 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.138e-05/0.01976, allocations: 29.39 kB / 369.6 MB, free: 1.004 MB / 302.1 MB Notification: Performance of SimCode: time 0.2151/0.2349, allocations: 1.896 MB / 371.5 MB, free: 18.93 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.