Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.VoltageFollower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 111.9 kB / 18.42 MB, free: 4.551 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.001368/0.001368, allocations: 190.6 kB / 19.35 MB, free: 3.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.482e-05/2.484e-05, allocations: 3.125 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower): time 0.004599/0.004632, allocations: 2.696 MB / 331.9 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.006265, allocations: 0.706 MB / 332.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.006526, allocations: 7.938 kB / 332.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.006694, allocations: 43.58 kB / 332.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.006941, allocations: 87.25 kB / 332.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003004/0.007248, allocations: 95.81 kB / 332.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005983/0.007876, allocations: 386.6 kB / 333.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002064/0.008091, allocations: 84.7 kB / 333.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.008259, allocations: 127.5 kB / 333.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.008431, allocations: 151.3 kB / 333.6 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.604e-05/0.008496, allocations: 35.98 kB / 333.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.742e-05/0.008548, allocations: 28 kB / 333.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.000359/0.008913, allocations: 463 kB / 334.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001571/0.009078, allocations: 283.9 kB / 334.4 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.562e-05/0.009139, allocations: 47.81 kB / 334.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.226e-05/0.009187, allocations: 8 kB / 334.4 MB, free: 14.06 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 (49) * Number of variables: 49 (49) Notification: Performance of Bindings: time 0.001261/0.01045, allocations: 1.357 MB / 335.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of FunctionAlias: time 5.31e-05/0.01051, allocations: 51.84 kB / 335.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005574/0.01108, allocations: 0.6557 MB / 336.5 MB, free: 11.86 MB / 286.1 MB Notification: Performance of simplify1: time 5.519e-05/0.01114, allocations: 63.86 kB / 336.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of Alias: time 0.001424/0.01257, allocations: 1.146 MB / 337.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of simplify2: time 5.18e-05/0.01264, allocations: 43.95 kB / 337.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of Events: time 0.0002295/0.01288, allocations: 140.8 kB / 337.9 MB, free: 10.32 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002618/0.01315, allocations: 197.1 kB / 338.1 MB, free: 10.12 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002748/0.01343, allocations: 216.5 kB / 338.3 MB, free: 9.867 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009156/0.01436, allocations: 0.6906 MB / 339 MB, free: 9.141 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005123/0.01488, allocations: 0.5128 MB / 339.5 MB, free: 8.602 MB / 286.1 MB Notification: Performance of Inline: time 0.0009542/0.01584, allocations: 0.9873 MB / 340.5 MB, free: 7.582 MB / 286.1 MB Notification: Performance of Partitioning: time 6.151e-05/0.01592, allocations: 58.36 kB / 340.5 MB, free: 7.516 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001057/0.01603, allocations: 121 kB / 340.6 MB, free: 7.395 MB / 286.1 MB Notification: Performance of Causalize: time 0.003271/0.0193, allocations: 2.898 MB / 343.5 MB, free: 4.473 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004996/0.01982, allocations: 0.5394 MB / 344.1 MB, free: 3.836 MB / 286.1 MB Notification: Performance of Initialization: time 8.01e-07/0.01983, allocations: 0 / 344.1 MB, free: 3.836 MB / 286.1 MB Notification: Performance of Tearing: time 0.000225/0.02006, allocations: 302.2 kB / 344.4 MB, free: 3.492 MB / 286.1 MB Notification: Performance of Categorize: time 1.192e-05/0.02008, allocations: 0 / 344.4 MB, free: 3.492 MB / 286.1 MB Notification: Performance of Solve: time 0.0002765/0.02036, allocations: 176 kB / 344.5 MB, free: 3.324 MB / 286.1 MB Notification: Performance of Jacobian: time 3.487e-06/0.02037, allocations: 7.938 kB / 344.5 MB, free: 3.316 MB / 286.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 2 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 3 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * 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: ........... 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: ........... 54 (scalar:54, 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: [Initialization (lambda=0)] 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 8.072e-05/0.02046, allocations: 40.7 kB / 344.6 MB, free: 3.277 MB / 286.1 MB Notification: Performance of SimCode: time 0.001191/0.02166, allocations: 1.461 MB / 346 MB, free: 1.789 MB / 286.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.