Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.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.NonInvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 106.1 kB / 16.42 MB, free: 6.473 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.00111/0.00111, allocations: 189.9 kB / 17.36 MB, free: 5.727 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.246/1.246, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.878e-05/1.879e-05, allocations: 3.547 kB / 327.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp): time 0.003415/0.003442, allocations: 2.699 MB / 329.9 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.004567, allocations: 0.7099 MB / 330.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.004694, allocations: 7.938 kB / 330.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.004844, allocations: 43.58 kB / 330.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001641/0.005014, allocations: 83.27 kB / 330.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.005293, allocations: 95.81 kB / 330.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003846/0.005688, allocations: 390.5 kB / 331.2 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.005868, allocations: 88.7 kB / 331.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.006018, allocations: 127.5 kB / 331.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.006185, allocations: 159.3 kB / 331.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.33e-05/0.006234, allocations: 28 kB / 331.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.298e-05/0.006282, allocations: 32 kB / 331.7 MB, free: 14.83 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003316/0.006619, allocations: 471 kB / 332.1 MB, free: 14.37 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000142/0.006767, allocations: 279.8 kB / 332.4 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.456e-05/0.006829, allocations: 55.81 kB / 332.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.524e-05/0.006859, allocations: 8 kB / 332.5 MB, free: 14.03 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.00125/0.008113, allocations: 1.365 MB / 333.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of FunctionAlias: time 6.396e-05/0.008183, allocations: 59.91 kB / 333.9 MB, free: 12.49 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005635/0.008752, allocations: 0.6478 MB / 334.5 MB, free: 11.82 MB / 286.1 MB Notification: Performance of simplify1: time 5.631e-05/0.008816, allocations: 67.91 kB / 334.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of Alias: time 0.001146/0.009967, allocations: 1.03 MB / 335.6 MB, free: 10.57 MB / 286.1 MB Notification: Performance of simplify2: time 4.189e-05/0.01002, allocations: 47.94 kB / 335.7 MB, free: 10.52 MB / 286.1 MB Notification: Performance of Events: time 0.0001945/0.01022, allocations: 132.8 kB / 335.8 MB, free: 10.39 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002395/0.01047, allocations: 205.8 kB / 336 MB, free: 10.18 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002089/0.01069, allocations: 200.2 kB / 336.2 MB, free: 9.957 MB / 286.1 MB Notification: Performance of Causalize: time 0.001006/0.0117, allocations: 1.026 MB / 337.2 MB, free: 8.91 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004713/0.01218, allocations: 0.5367 MB / 337.8 MB, free: 8.348 MB / 286.1 MB Notification: Performance of Inline: time 0.0009884/0.01317, allocations: 1.027 MB / 338.8 MB, free: 7.289 MB / 286.1 MB Notification: Performance of Partitioning: time 6.124e-05/0.01325, allocations: 58.36 kB / 338.8 MB, free: 7.223 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001254/0.01338, allocations: 125 kB / 339 MB, free: 7.098 MB / 286.1 MB Notification: Performance of Causalize: time 0.003472/0.01686, allocations: 4.065 MB / 343 MB, free: 3.098 MB / 286.1 MB Notification: Performance of Tearing: time 0.0006169/0.01748, allocations: 0.7774 MB / 343.8 MB, free: 2.223 MB / 286.1 MB Notification: Performance of Initialization: time 4.41e-07/0.01749, allocations: 0 / 343.8 MB, free: 2.223 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002932/0.01779, allocations: 414 kB / 344.2 MB, free: 1.77 MB / 286.1 MB Notification: Performance of Categorize: time 1.025e-05/0.01781, allocations: 3.938 kB / 344.2 MB, free: 1.766 MB / 286.1 MB Notification: Performance of Solve: time 0.000216/0.01803, allocations: 142.8 kB / 344.4 MB, free: 1.629 MB / 286.1 MB Notification: Performance of Jacobian: time 2.735e-06/0.01804, allocations: 4.188 kB / 344.4 MB, free: 1.625 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 4.345e-05/0.01809, allocations: 41.09 kB / 344.4 MB, free: 1.59 MB / 286.1 MB Notification: Performance of SimCode: time 0.001227/0.01933, allocations: 1.581 MB / 346 MB, free: 15.98 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.