Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|integrator.c.v|integrator.opAmp.out.v|integrator.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|integrator.c.v|integrator.opAmp.out.v|integrator.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001078/0.001078, allocations: 115.7 kB / 18.47 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001081/0.001081, allocations: 213.1 kB / 19.42 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.175e-05/2.176e-05, allocations: 6.219 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.003913/0.003945, allocations: 2.876 MB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.005158, allocations: 0.7596 MB / 363 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.005305, allocations: 4 kB / 363 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.005479, allocations: 51.5 kB / 363.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001805/0.005674, allocations: 99.25 kB / 363.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.005975, allocations: 111.8 kB / 363.3 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004481/0.006432, allocations: 442.5 kB / 363.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002336/0.006678, allocations: 127.2 kB / 363.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002544/0.006939, allocations: 155.4 kB / 364 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.007136, allocations: 171.2 kB / 364.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.91e-05/0.007193, allocations: 44 kB / 364.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.069e-05/0.00725, allocations: 36 kB / 364.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003741/0.007629, allocations: 0.5141 MB / 364.7 MB, free: 7.547 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001604/0.007796, allocations: 303.5 kB / 365 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.415e-05/0.007865, allocations: 55.88 kB / 365.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.281e-05/0.007913, allocations: 4 kB / 365.1 MB, free: 7.188 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: 59 (59) * Number of variables: 59 (59) Notification: Performance of Bindings: time 0.00135/0.009268, allocations: 1.551 MB / 366.6 MB, free: 5.523 MB / 302.1 MB Notification: Performance of FunctionAlias: time 5.967e-05/0.009334, allocations: 67.89 kB / 366.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006807/0.01002, allocations: 0.7844 MB / 367.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of simplify1: time 6.249e-05/0.01009, allocations: 67.92 kB / 367.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of Alias: time 0.001738/0.01183, allocations: 1.535 MB / 369.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of simplify2: time 4.418e-05/0.01189, allocations: 43.95 kB / 369.1 MB, free: 2.84 MB / 302.1 MB Notification: Performance of Events: time 0.0001978/0.01209, allocations: 124.8 kB / 369.2 MB, free: 2.719 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003883/0.01249, allocations: 225 kB / 369.5 MB, free: 2.48 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001995/0.0127, allocations: 192.2 kB / 369.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of Causalize: time 0.0008401/0.01355, allocations: 0.7377 MB / 370.4 MB, free: 1.527 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004852/0.01404, allocations: 0.5286 MB / 370.9 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of Inline: time 0.2046/0.2187, allocations: 1.078 MB / 372 MB, free: 15.41 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001567/0.2188, allocations: 65.92 kB / 372.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of Cleanup: time 9.65e-05/0.219, allocations: 38.17 kB / 372.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of Causalize: time 0.002355/0.2213, allocations: 1.661 MB / 373.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003171/0.2216, allocations: 309.1 kB / 374.1 MB, free: 15 MB / 302.1 MB Notification: Performance of Initialization: time 1.022e-06/0.2217, allocations: 0.5938 kB / 374.1 MB, free: 15 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002228/0.2219, allocations: 307 kB / 374.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Categorize: time 1.575e-05/0.2219, allocations: 3.109 kB / 374.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Solve: time 0.0003639/0.2223, allocations: 167.1 kB / 374.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0003389/0.2226, allocations: 404.7 kB / 374.9 MB, free: 14.55 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: ......... 1 * 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) {integrator.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: ................. 8 (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: ........... 24 (scalar:24, 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: ........... 56 (scalar:56, 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.012e-05/0.2227, allocations: 40.72 kB / 375 MB, free: 14.54 MB / 302.1 MB Notification: Performance of SimCode: time 0.001425/0.2241, allocations: 1.709 MB / 376.7 MB, free: 13.61 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.