Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 107.5 kB / 16.42 MB, free: 6.457 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.001335/0.001335, allocations: 187.1 kB / 17.35 MB, free: 5.707 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.265/1.265, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.337e-05/2.338e-05, allocations: 2.281 kB / 327.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003539/0.003571, allocations: 2.712 MB / 329.9 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.004756, allocations: 0.7098 MB / 330.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.004896, allocations: 4 kB / 330.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.005036, allocations: 43.58 kB / 330.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.005207, allocations: 87.25 kB / 330.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002575/0.005486, allocations: 103.8 kB / 330.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003931/0.005888, allocations: 398.5 kB / 331.3 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.00608, allocations: 84.69 kB / 331.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.006245, allocations: 131.4 kB / 331.5 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.006408, allocations: 143.4 kB / 331.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.844e-05/0.006462, allocations: 28 kB / 331.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.435e-05/0.006523, allocations: 35.94 kB / 331.7 MB, free: 14.81 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003632/0.006891, allocations: 486.8 kB / 332.1 MB, free: 14.33 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001597/0.007057, allocations: 291.8 kB / 332.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.212e-05/0.007114, allocations: 47.88 kB / 332.5 MB, free: 13.99 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.151e-05/0.007152, allocations: 7.938 kB / 332.5 MB, free: 13.98 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.001248/0.008405, allocations: 1.372 MB / 333.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of FunctionAlias: time 7.348e-05/0.008486, allocations: 67.81 kB / 333.9 MB, free: 12.43 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006098/0.009102, allocations: 0.644 MB / 334.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of simplify1: time 5.76e-05/0.009168, allocations: 55.92 kB / 334.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of Alias: time 0.001179/0.01035, allocations: 1.051 MB / 335.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of simplify2: time 3.831e-05/0.0104, allocations: 43.89 kB / 335.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of Events: time 0.000217/0.01063, allocations: 144.8 kB / 335.9 MB, free: 10.32 MB / 286.1 MB Notification: Performance of Detect States: time 0.000248/0.01088, allocations: 195.4 kB / 336.1 MB, free: 10.11 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002064/0.0111, allocations: 192.3 kB / 336.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009852/0.01209, allocations: 0.9944 MB / 337.2 MB, free: 8.891 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004742/0.01258, allocations: 0.5289 MB / 337.8 MB, free: 8.336 MB / 286.1 MB Notification: Performance of Inline: time 0.001006/0.01359, allocations: 1.046 MB / 338.8 MB, free: 7.258 MB / 286.1 MB Notification: Performance of Partitioning: time 6.438e-05/0.01366, allocations: 58.36 kB / 338.9 MB, free: 7.191 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001101/0.01378, allocations: 117.1 kB / 339 MB, free: 7.074 MB / 286.1 MB Notification: Performance of Causalize: time 0.003767/0.01755, allocations: 4.1 MB / 343.1 MB, free: 3.031 MB / 286.1 MB Notification: Performance of Tearing: time 0.0006285/0.01821, allocations: 0.6797 MB / 343.8 MB, free: 2.254 MB / 286.1 MB Notification: Performance of Initialization: time 6.91e-07/0.01822, allocations: 0 / 343.8 MB, free: 2.254 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003176/0.01854, allocations: 397.9 kB / 344.1 MB, free: 1.816 MB / 286.1 MB Notification: Performance of Categorize: time 1.481e-05/0.01856, allocations: 0 / 344.1 MB, free: 1.816 MB / 286.1 MB Notification: Performance of Solve: time 0.000271/0.01884, allocations: 172.2 kB / 344.3 MB, free: 1.648 MB / 286.1 MB Notification: Performance of Jacobian: time 3.707e-06/0.01885, allocations: 0 / 344.3 MB, free: 1.648 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: ........... 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: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 57 (scalar:57, 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.395e-05/0.01892, allocations: 54.16 kB / 344.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of SimCode: time 0.001308/0.02024, allocations: 1.557 MB / 345.9 MB, free: 32 kB / 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.