Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.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.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 108.8 kB / 16.42 MB, free: 6.461 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.001215/0.001215, allocations: 189.5 kB / 17.36 MB, free: 5.73 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.283/1.283, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.628e-05/1.629e-05, allocations: 2.281 kB / 327.2 MB, free: 3.34 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003275/0.003299, allocations: 2.75 MB / 329.9 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.004388, allocations: 0.6825 MB / 330.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.00453, allocations: 4 kB / 330.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.004705, allocations: 39.58 kB / 330.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002123/0.004932, allocations: 91.19 kB / 330.8 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.005218, allocations: 87.83 kB / 330.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005213/0.00575, allocations: 422.4 kB / 331.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002919/0.006051, allocations: 119 kB / 331.4 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.006242, allocations: 147.5 kB / 331.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002977/0.006549, allocations: 167.2 kB / 331.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.958e-05/0.006619, allocations: 36 kB / 331.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.098e-05/0.006687, allocations: 32 kB / 331.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005845/0.007279, allocations: 0.5024 MB / 332.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002613/0.007549, allocations: 303.6 kB / 332.6 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.717e-05/0.007637, allocations: 55.88 kB / 332.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.428e-05/0.007678, allocations: 11.94 kB / 332.6 MB, free: 13.88 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: 60 (60) * Number of variables: 60 (60) Notification: Performance of Bindings: time 0.001574/0.009259, allocations: 1.496 MB / 334.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of FunctionAlias: time 7.589e-05/0.009343, allocations: 63.89 kB / 334.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0008707/0.01022, allocations: 0.7376 MB / 334.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of simplify1: time 9.099e-05/0.01033, allocations: 75.84 kB / 335 MB, free: 11.37 MB / 286.1 MB Notification: Performance of Alias: time 0.001978/0.01231, allocations: 1.325 MB / 336.3 MB, free: 9.859 MB / 286.1 MB Notification: Performance of simplify2: time 5.97e-05/0.01238, allocations: 43.95 kB / 336.4 MB, free: 9.816 MB / 286.1 MB Notification: Performance of Events: time 0.0002126/0.01261, allocations: 136 kB / 336.5 MB, free: 9.68 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002334/0.01285, allocations: 197.2 kB / 336.7 MB, free: 9.473 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002013/0.01306, allocations: 204.4 kB / 336.9 MB, free: 9.242 MB / 286.1 MB Notification: Performance of Causalize: time 0.001065/0.01413, allocations: 1.046 MB / 337.9 MB, free: 8.172 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005056/0.01464, allocations: 0.5208 MB / 338.4 MB, free: 7.625 MB / 286.1 MB Notification: Performance of Inline: time 0.001017/0.01567, allocations: 1.023 MB / 339.5 MB, free: 6.566 MB / 286.1 MB Notification: Performance of Partitioning: time 6.33e-05/0.01574, allocations: 62.36 kB / 339.5 MB, free: 6.5 MB / 286.1 MB Notification: Performance of Cleanup: time 3.716e-05/0.01578, allocations: 35.95 kB / 339.6 MB, free: 6.465 MB / 286.1 MB Notification: Performance of Causalize: time 0.001987/0.01778, allocations: 2.002 MB / 341.6 MB, free: 4.492 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003815/0.01817, allocations: 421.9 kB / 342 MB, free: 4.031 MB / 286.1 MB Notification: Performance of Initialization: time 3.61e-07/0.01818, allocations: 0 / 342 MB, free: 4.031 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002982/0.01848, allocations: 405.9 kB / 342.4 MB, free: 3.586 MB / 286.1 MB Notification: Performance of Categorize: time 1.264e-05/0.0185, allocations: 4.188 kB / 342.4 MB, free: 3.582 MB / 286.1 MB Notification: Performance of Solve: time 0.0001879/0.0187, allocations: 133.9 kB / 342.5 MB, free: 3.445 MB / 286.1 MB Notification: Performance of Jacobian: time 3.045e-06/0.01871, allocations: 3.938 kB / 342.5 MB, free: 3.441 MB / 286.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 1 * 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: ........... 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: Performance of backend: time 3.799e-05/0.01875, allocations: 28.12 kB / 342.5 MB, free: 3.418 MB / 286.1 MB Notification: Performance of SimCode: time 0.001165/0.01992, allocations: 1.585 MB / 344.1 MB, free: 1.812 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.