Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001249/0.00125, allocations: 115.3 kB / 18.47 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 202.7 kB / 19.42 MB, free: 3.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.937e-05/2.938e-05, allocations: 4.953 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004904/0.004942, allocations: 2.946 MB / 362.3 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002139/0.007097, allocations: 0.7712 MB / 363.1 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004056/0.007517, allocations: 8 kB / 363.1 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002673/0.007792, allocations: 47.5 kB / 363.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003657/0.008165, allocations: 103.1 kB / 363.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.008619, allocations: 119.8 kB / 363.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005229/0.009152, allocations: 466.4 kB / 363.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002916/0.009452, allocations: 131.1 kB / 363.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.009659, allocations: 151.5 kB / 364.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.009863, allocations: 175.2 kB / 364.3 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.009927, allocations: 40 kB / 364.3 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.429e-05/0.009987, allocations: 44 kB / 364.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0006096/0.0106, allocations: 0.5295 MB / 364.9 MB, free: 7.367 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002452/0.01086, allocations: 323.2 kB / 365.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.515e-05/0.01094, allocations: 55.88 kB / 365.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.931e-05/0.01101, allocations: 15.88 kB / 365.3 MB, free: 6.977 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.001843/0.01287, allocations: 1.621 MB / 366.9 MB, free: 5.242 MB / 302.1 MB Notification: Performance of FunctionAlias: time 7.046e-05/0.01294, allocations: 63.89 kB / 366.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0007767/0.01373, allocations: 0.8196 MB / 367.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of simplify1: time 7.044e-05/0.01381, allocations: 71.91 kB / 367.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of Alias: time 0.001932/0.01574, allocations: 1.559 MB / 369.4 MB, free: 2.543 MB / 302.1 MB Notification: Performance of simplify2: time 4.358e-05/0.0158, allocations: 43.95 kB / 369.4 MB, free: 2.5 MB / 302.1 MB Notification: Performance of Events: time 0.0002332/0.01604, allocations: 144.2 kB / 369.6 MB, free: 2.359 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003719/0.01642, allocations: 223.4 kB / 369.8 MB, free: 2.133 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002785/0.01671, allocations: 226.3 kB / 370 MB, free: 1.887 MB / 302.1 MB Notification: Performance of Causalize: time 0.0009173/0.01764, allocations: 0.8321 MB / 370.8 MB, free: 1.031 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005643/0.01821, allocations: 0.604 MB / 371.4 MB, free: 412 kB / 302.1 MB Notification: Performance of Inline: time 0.211/0.2292, allocations: 1.144 MB / 372.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001765/0.2295, allocations: 73.33 kB / 372.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of Cleanup: time 6.145e-05/0.2295, allocations: 42.97 kB / 372.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of Causalize: time 0.002954/0.2325, allocations: 1.783 MB / 374.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005874/0.2331, allocations: 408.4 kB / 374.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of Initialization: time 3.707e-06/0.2331, allocations: 1.906 kB / 374.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004008/0.2335, allocations: 423.8 kB / 375.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of Categorize: time 2.063e-05/0.2336, allocations: 6.75 kB / 375.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of Solve: time 0.0003083/0.2339, allocations: 146.3 kB / 375.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of Jacobian: time 4.909e-06/0.2339, allocations: 5.359 kB / 375.5 MB, free: 14.57 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 6.275e-05/0.234, allocations: 31.02 kB / 375.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of SimCode: time 0.001927/0.2359, allocations: 1.767 MB / 377.3 MB, free: 13.64 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.