Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001107/0.001107, allocations: 119.7 kB / 18.47 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 205 kB / 19.42 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.695e-05/1.696e-05, allocations: 2.281 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003274/0.003299, allocations: 2.775 MB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.004365, allocations: 0.7167 MB / 362.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.004483, allocations: 4 kB / 362.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.004617, allocations: 43.58 kB / 362.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.004782, allocations: 95.12 kB / 363 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002332/0.005032, allocations: 95.81 kB / 363.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003507/0.005391, allocations: 390.5 kB / 363.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.005557, allocations: 86.34 kB / 363.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.0057, allocations: 135.5 kB / 363.7 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.005855, allocations: 147.3 kB / 363.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.568e-05/0.005907, allocations: 28 kB / 363.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.35e-05/0.00597, allocations: 32 kB / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003335/0.006309, allocations: 490.8 kB / 364.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.000144/0.006459, allocations: 283.8 kB / 364.6 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.203e-05/0.006517, allocations: 47.81 kB / 364.7 MB, free: 7.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.592e-05/0.006558, allocations: 8 kB / 364.7 MB, free: 7.539 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: 49 (49) * Number of variables: 49 (49) Notification: Performance of Bindings: time 0.001125/0.007688, allocations: 1.361 MB / 366.1 MB, free: 6.07 MB / 302.1 MB Notification: Performance of FunctionAlias: time 4.51e-05/0.007741, allocations: 51.91 kB / 366.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0005382/0.008285, allocations: 0.6516 MB / 366.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simplify1: time 5.495e-05/0.008347, allocations: 59.92 kB / 366.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of Alias: time 0.001237/0.00959, allocations: 1.163 MB / 368 MB, free: 3.953 MB / 302.1 MB Notification: Performance of simplify2: time 4.265e-05/0.009644, allocations: 43.94 kB / 368 MB, free: 3.91 MB / 302.1 MB Notification: Performance of Events: time 0.0001744/0.009824, allocations: 128.8 kB / 368.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002367/0.01007, allocations: 207.1 kB / 368.4 MB, free: 3.57 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001928/0.01027, allocations: 184.3 kB / 368.5 MB, free: 3.367 MB / 302.1 MB Notification: Performance of Causalize: time 0.0007334/0.01101, allocations: 0.6814 MB / 369.2 MB, free: 2.66 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004677/0.01149, allocations: 0.5287 MB / 369.7 MB, free: 2.105 MB / 302.1 MB Notification: Performance of Inline: time 0.0009793/0.01247, allocations: 1.022 MB / 370.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of Partitioning: time 6.455e-05/0.01255, allocations: 62.36 kB / 370.8 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of Cleanup: time 4.698e-05/0.0126, allocations: 43.94 kB / 370.9 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of Causalize: time 0.1582/0.1708, allocations: 1.521 MB / 372.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003125/0.1711, allocations: 397.8 kB / 372.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of Initialization: time 1.112e-06/0.1711, allocations: 1 kB / 372.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002584/0.1714, allocations: 389.4 kB / 373.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of Categorize: time 1.499e-05/0.1714, allocations: 6.156 kB / 373.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of Solve: time 0.0002412/0.1717, allocations: 135.1 kB / 373.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of Jacobian: time 2.816e-06/0.1717, allocations: 3.75 kB / 373.3 MB, free: 14.97 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: ........... 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: ........... 52 (scalar:52, 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.867e-05/0.1717, allocations: 38.47 kB / 373.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of SimCode: time 0.001096/0.1728, allocations: 1.5 MB / 374.8 MB, free: 14.08 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.