Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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.InvertingAmp,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.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,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.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 108 kB / 18.42 MB, free: 4.504 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.00149/0.00149, allocations: 194.7 kB / 19.35 MB, free: 3.586 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.392/1.392, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.971e-05/2.978e-05, allocations: 3.266 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.004425/0.004464, allocations: 2.698 MB / 331.9 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.006176, allocations: 0.7137 MB / 332.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002832/0.006476, allocations: 8 kB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002219/0.006706, allocations: 43.56 kB / 332.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003358/0.00705, allocations: 87.25 kB / 332.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.007498, allocations: 99.81 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005896/0.008098, allocations: 386.6 kB / 333.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002137/0.008321, allocations: 84.7 kB / 333.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002591/0.008588, allocations: 131.5 kB / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000205/0.008803, allocations: 151.2 kB / 333.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.987e-05/0.008869, allocations: 28 kB / 333.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.823e-05/0.008934, allocations: 32 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004264/0.009367, allocations: 482.9 kB / 334.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001891/0.009563, allocations: 279.9 kB / 334.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.009682, allocations: 47.81 kB / 334.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.373e-05/0.009753, allocations: 12 kB / 334.4 MB, free: 14.02 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.001506/0.01127, allocations: 1.361 MB / 335.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of FunctionAlias: time 8.696e-05/0.01136, allocations: 51.89 kB / 335.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006758/0.01204, allocations: 0.6556 MB / 336.5 MB, free: 11.82 MB / 286.1 MB Notification: Performance of simplify1: time 9.713e-05/0.01215, allocations: 59.92 kB / 336.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of Alias: time 0.001612/0.01377, allocations: 1.142 MB / 337.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of simplify2: time 8.305e-05/0.01387, allocations: 43.95 kB / 337.7 MB, free: 10.42 MB / 286.1 MB Notification: Performance of Events: time 0.0002775/0.01415, allocations: 129.2 kB / 337.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of Detect States: time 0.000337/0.0145, allocations: 209 kB / 338.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003032/0.01481, allocations: 208.2 kB / 338.3 MB, free: 9.848 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009738/0.0158, allocations: 0.726 MB / 339 MB, free: 9.098 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005864/0.0164, allocations: 0.5366 MB / 339.5 MB, free: 8.535 MB / 286.1 MB Notification: Performance of Inline: time 0.001149/0.01756, allocations: 1.019 MB / 340.6 MB, free: 7.48 MB / 286.1 MB Notification: Performance of Partitioning: time 8.37e-05/0.01765, allocations: 70.27 kB / 340.6 MB, free: 7.406 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001745/0.01783, allocations: 121 kB / 340.8 MB, free: 7.281 MB / 286.1 MB Notification: Performance of Causalize: time 0.003929/0.02177, allocations: 3.044 MB / 343.8 MB, free: 4.215 MB / 286.1 MB Notification: Performance of Tearing: time 0.000721/0.0225, allocations: 0.7694 MB / 344.6 MB, free: 3.348 MB / 286.1 MB Notification: Performance of Initialization: time 1.323e-06/0.02252, allocations: 0 / 344.6 MB, free: 3.348 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003233/0.02285, allocations: 418 kB / 345 MB, free: 2.891 MB / 286.1 MB Notification: Performance of Categorize: time 1.85e-05/0.02288, allocations: 4 kB / 345 MB, free: 2.887 MB / 286.1 MB Notification: Performance of Solve: time 0.0002958/0.02318, allocations: 154.7 kB / 345.1 MB, free: 2.738 MB / 286.1 MB Notification: Performance of Jacobian: time 3.898e-06/0.02319, allocations: 0 / 345.1 MB, free: 2.738 MB / 286.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: ....... 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: ........... 20 (scalar:20, 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: ........... 51 (scalar:51, 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: ........... 53 (scalar:53, 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 6.815e-05/0.02327, allocations: 41.52 kB / 345.2 MB, free: 2.699 MB / 286.1 MB Notification: Performance of SimCode: time 0.001492/0.02477, allocations: 1.569 MB / 346.7 MB, free: 1.109 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.