Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001173/0.001173, allocations: 111.7 kB / 18.47 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00123/0.00123, 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.235/1.235, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.477e-05/2.477e-05, allocations: 2.281 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.004261/0.004296, allocations: 2.952 MB / 362.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.005945, allocations: 0.7673 MB / 363.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003031/0.006259, allocations: 4 kB / 363.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000206/0.006474, allocations: 51.45 kB / 363.1 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002831/0.006764, allocations: 107.2 kB / 363.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.007115, allocations: 115.7 kB / 363.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005342/0.007658, allocations: 462.4 kB / 363.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.007914, allocations: 135.2 kB / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002468/0.008169, allocations: 155.4 kB / 364.1 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.008406, allocations: 175.2 kB / 364.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.431e-05/0.008488, allocations: 44 kB / 364.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.786e-05/0.008572, allocations: 40 kB / 364.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004438/0.009021, allocations: 0.5295 MB / 364.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002122/0.00924, allocations: 323.2 kB / 365.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.009352, allocations: 55.88 kB / 365.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.302e-05/0.009431, allocations: 11.94 kB / 365.3 MB, free: 7.031 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: 61 (61) * Number of variables: 61 (61) Notification: Performance of Bindings: time 0.001629/0.01107, allocations: 1.621 MB / 366.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001234/0.0112, allocations: 63.89 kB / 366.9 MB, free: 5.234 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0008334/0.01204, allocations: 0.8235 MB / 367.8 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simplify1: time 9.768e-05/0.01214, allocations: 67.91 kB / 367.8 MB, free: 4.316 MB / 302.1 MB Notification: Performance of Alias: time 0.001897/0.01405, allocations: 1.56 MB / 369.4 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simplify2: time 6.609e-05/0.01412, allocations: 47.89 kB / 369.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of Events: time 0.0002525/0.01438, allocations: 148.5 kB / 369.6 MB, free: 2.406 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003136/0.0147, allocations: 221 kB / 369.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002278/0.01494, allocations: 234.3 kB / 370 MB, free: 1.922 MB / 302.1 MB Notification: Performance of Causalize: time 0.0008158/0.01576, allocations: 0.8321 MB / 370.9 MB, free: 1.066 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005053/0.01628, allocations: 0.5962 MB / 371.5 MB, free: 456 kB / 302.1 MB Notification: Performance of Inline: time 0.1625/0.1788, allocations: 1.158 MB / 372.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001388/0.179, allocations: 71.83 kB / 372.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Cleanup: time 5.517e-05/0.1791, allocations: 42.23 kB / 372.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Causalize: time 0.002306/0.1814, allocations: 1.814 MB / 374.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004057/0.1818, allocations: 416 kB / 374.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of Initialization: time 9.42e-07/0.1818, allocations: 4 kB / 374.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of Tearing: time 0.000286/0.1821, allocations: 413.3 kB / 375.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of Categorize: time 1.72e-05/0.1821, allocations: 2.656 kB / 375.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of Solve: time 0.0002779/0.1824, allocations: 154.4 kB / 375.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Jacobian: time 2.856e-06/0.1824, allocations: 0 / 375.5 MB, free: 14.62 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: ............... 0 * Number of algebraic event partitions: ......... 3 * 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: ............................. 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: ........... 23 (scalar:23, 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: ........... 55 (scalar:55, 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.376e-05/0.1825, allocations: 25.44 kB / 375.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of SimCode: time 0.001395/0.1839, allocations: 1.773 MB / 377.3 MB, free: 13.7 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.