Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.HighPass.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.HighPass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|derivative.c.v|derivative.opAmp.out.v|derivative.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.HighPass") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.HighPass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|derivative.c.v|derivative.opAmp.out.v|derivative.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.HighPass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 113.1 kB / 17.75 MB, free: 5.309 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.001214/0.001215, allocations: 192.6 kB / 18.68 MB, free: 4.387 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.294/1.294, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.274e-05/2.275e-05, allocations: 2.281 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.HighPass): time 0.003831/0.003863, allocations: 3.061 MB / 355 MB, free: 196 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.005118, allocations: 0.7754 MB / 355.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.00528, allocations: 4 kB / 355.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.005448, allocations: 51.44 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000202/0.005665, allocations: 115.1 kB / 356 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003076/0.005979, allocations: 127.8 kB / 356.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004984/0.006486, allocations: 0.502 MB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002471/0.006741, allocations: 142.9 kB / 356.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002167/0.006967, allocations: 183.3 kB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/0.00718, allocations: 187.2 kB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.275e-05/0.007249, allocations: 44 kB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.007315, allocations: 44 kB / 357.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004378/0.007758, allocations: 0.5914 MB / 357.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001893/0.007957, allocations: 358.8 kB / 358.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.94e-05/0.008032, allocations: 63.81 kB / 358.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.201e-05/0.00808, allocations: 11.98 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.001601/0.009688, allocations: 1.784 MB / 360 MB, free: 11.1 MB / 302.1 MB Notification: Performance of FunctionAlias: time 7.385e-05/0.009768, allocations: 75.88 kB / 360 MB, free: 11.02 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0007896/0.01056, allocations: 0.8975 MB / 360.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simplify1: time 7.05e-05/0.01064, allocations: 71.91 kB / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of Alias: time 0.001974/0.01262, allocations: 1.775 MB / 362.8 MB, free: 8.078 MB / 302.1 MB Notification: Performance of simplify2: time 4.744e-05/0.01268, allocations: 47.94 kB / 362.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of Events: time 0.0002337/0.01292, allocations: 158.9 kB / 363 MB, free: 7.879 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002753/0.0132, allocations: 236.5 kB / 363.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002981/0.01351, allocations: 247.5 kB / 363.5 MB, free: 7.371 MB / 302.1 MB Notification: Performance of Causalize: time 0.0009884/0.01451, allocations: 0.8718 MB / 364.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005365/0.01506, allocations: 0.6193 MB / 365 MB, free: 5.828 MB / 302.1 MB Notification: Performance of Inline: time 0.001149/0.01622, allocations: 1.245 MB / 366.2 MB, free: 4.543 MB / 302.1 MB Notification: Performance of Partitioning: time 7.651e-05/0.01631, allocations: 83.61 kB / 366.3 MB, free: 4.457 MB / 302.1 MB Notification: Performance of Cleanup: time 4.393e-05/0.01636, allocations: 47.83 kB / 366.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of Causalize: time 0.002049/0.01841, allocations: 1.922 MB / 368.3 MB, free: 2.469 MB / 302.1 MB Notification: Performance of Tearing: time 0.000412/0.01884, allocations: 405.9 kB / 368.6 MB, free: 2.023 MB / 302.1 MB Notification: Performance of Initialization: time 2.134e-06/0.01885, allocations: 4 kB / 368.7 MB, free: 2.02 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003497/0.0192, allocations: 410 kB / 369.1 MB, free: 1.57 MB / 302.1 MB Notification: Performance of Categorize: time 1.346e-05/0.01923, allocations: 3.938 kB / 369.1 MB, free: 1.566 MB / 302.1 MB Notification: Performance of Solve: time 0.0003597/0.01959, allocations: 186 kB / 369.2 MB, free: 1.383 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0004464/0.02005, allocations: 483 kB / 369.7 MB, free: 0.875 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) {derivative.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: ........... 25 (scalar:25, 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: ........... 61 (scalar:61, 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 4.928e-05/0.02011, allocations: 41.47 kB / 369.7 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of SimCode: time 0.2035/0.2236, allocations: 1.979 MB / 371.7 MB, free: 18.81 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.