Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|integrator.c.v|integrator.opAmp.out.v|integrator.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001157, allocations: 117 kB / 17.76 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.00112/0.00112, allocations: 188.6 kB / 18.69 MB, free: 4.402 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.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.48e-05/1.48e-05, allocations: 2.281 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.003364/0.003387, allocations: 2.858 MB / 354.8 MB, free: 364 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.004448, allocations: 0.7206 MB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.004568, allocations: 4 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.004708, allocations: 43.58 kB / 355.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.004883, allocations: 103.2 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002556/0.005145, allocations: 111.8 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003947/0.005548, allocations: 442.4 kB / 356.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.005762, allocations: 127.2 kB / 356.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001867/0.005955, allocations: 155.4 kB / 356.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.006122, allocations: 167.3 kB / 356.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.992e-05/0.006178, allocations: 36 kB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.598e-05/0.00624, allocations: 40 kB / 356.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003576/0.006603, allocations: 0.5102 MB / 357.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001683/0.006779, allocations: 307.5 kB / 357.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.728e-05/0.006846, allocations: 55.81 kB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.711e-05/0.00689, allocations: 12 kB / 357.6 MB, free: 13.53 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.001389/0.008284, allocations: 1.551 MB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FunctionAlias: time 6.558e-05/0.008356, allocations: 59.94 kB / 359.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006856/0.009047, allocations: 0.7845 MB / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simplify1: time 5.891e-05/0.009114, allocations: 59.92 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Alias: time 0.001736/0.01086, allocations: 1.555 MB / 361.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simplify2: time 4.057e-05/0.01091, allocations: 35.95 kB / 361.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of Events: time 0.0001863/0.0111, allocations: 130.5 kB / 361.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002435/0.01135, allocations: 217.5 kB / 362 MB, free: 8.836 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001902/0.01155, allocations: 184.7 kB / 362.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of Causalize: time 0.0007999/0.01237, allocations: 0.7494 MB / 362.9 MB, free: 7.875 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004471/0.01282, allocations: 0.5364 MB / 363.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of Inline: time 0.001019/0.01385, allocations: 1.081 MB / 364.5 MB, free: 6.195 MB / 302.1 MB Notification: Performance of Partitioning: time 7.333e-05/0.01393, allocations: 62.34 kB / 364.6 MB, free: 6.125 MB / 302.1 MB Notification: Performance of Cleanup: time 3.557e-05/0.01398, allocations: 35.97 kB / 364.6 MB, free: 6.09 MB / 302.1 MB Notification: Performance of Causalize: time 0.001788/0.01577, allocations: 1.677 MB / 366.3 MB, free: 4.402 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002713/0.01605, allocations: 306.1 kB / 366.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of Initialization: time 3.61e-07/0.01606, allocations: 0 / 366.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of Tearing: time 0.0001961/0.01626, allocations: 306.3 kB / 366.9 MB, free: 3.707 MB / 302.1 MB Notification: Performance of Categorize: time 7.184e-06/0.01628, allocations: 0 / 366.9 MB, free: 3.707 MB / 302.1 MB Notification: Performance of Solve: time 0.0002275/0.01651, allocations: 170 kB / 367.1 MB, free: 3.543 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0003142/0.01683, allocations: 405.9 kB / 367.5 MB, free: 3.109 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 3.991e-05/0.01688, allocations: 25.8 kB / 367.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of SimCode: time 0.001201/0.01808, allocations: 1.717 MB / 369.2 MB, free: 1.344 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.