Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001123/0.001123, allocations: 115.7 kB / 18.47 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001036/0.001036, allocations: 213.1 kB / 19.42 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.457e-05/2.458e-05, allocations: 4.531 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003479/0.003512, allocations: 2.771 MB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.004686, allocations: 0.7128 MB / 362.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.004824, allocations: 7.938 kB / 362.9 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.004979, allocations: 39.58 kB / 362.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001675/0.005154, allocations: 91.19 kB / 363 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.005433, allocations: 99.81 kB / 363.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000405/0.005848, allocations: 394.5 kB / 363.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.006034, allocations: 78.36 kB / 363.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.006186, allocations: 131.5 kB / 363.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.006358, allocations: 155.3 kB / 363.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.742e-05/0.006422, allocations: 32 kB / 363.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.46e-05/0.006474, allocations: 32 kB / 363.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003343/0.006814, allocations: 478.8 kB / 364.4 MB, free: 7.922 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001426/0.006964, allocations: 287.8 kB / 364.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.692e-05/0.007037, allocations: 47.81 kB / 364.7 MB, free: 7.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.213e-05/0.007085, allocations: 12 kB / 364.7 MB, free: 7.578 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.001179/0.008269, allocations: 1.357 MB / 366.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of FunctionAlias: time 5.186e-05/0.008328, allocations: 51.89 kB / 366.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0005703/0.008904, allocations: 0.6555 MB / 366.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of simplify1: time 5.968e-05/0.008971, allocations: 55.92 kB / 366.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of Alias: time 0.001323/0.0103, allocations: 1.171 MB / 368 MB, free: 3.988 MB / 302.1 MB Notification: Performance of simplify2: time 4.654e-05/0.01036, allocations: 39.95 kB / 368 MB, free: 3.949 MB / 302.1 MB Notification: Performance of Events: time 0.0002135/0.01058, allocations: 128.8 kB / 368.2 MB, free: 3.824 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002322/0.01082, allocations: 201 kB / 368.4 MB, free: 3.613 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002021/0.01103, allocations: 192.3 kB / 368.5 MB, free: 3.402 MB / 302.1 MB Notification: Performance of Causalize: time 0.0007683/0.0118, allocations: 0.6891 MB / 369.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004561/0.01227, allocations: 0.5171 MB / 369.7 MB, free: 2.145 MB / 302.1 MB Notification: Performance of Inline: time 0.0009804/0.01326, allocations: 1.011 MB / 370.8 MB, free: 1.098 MB / 302.1 MB Notification: Performance of Partitioning: time 6.341e-05/0.01333, allocations: 62.3 kB / 370.8 MB, free: 1.027 MB / 302.1 MB Notification: Performance of Cleanup: time 4.064e-05/0.01338, allocations: 35.95 kB / 370.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of Causalize: time 0.2328/0.2462, allocations: 1.526 MB / 372.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004611/0.2467, allocations: 391 kB / 372.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Initialization: time 1.483e-06/0.2467, allocations: 0 / 372.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002942/0.247, allocations: 395.8 kB / 373.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Categorize: time 1.815e-05/0.247, allocations: 1.312 kB / 373.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Solve: time 0.0002743/0.2473, allocations: 136 kB / 373.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Jacobian: time 2.976e-06/0.2473, allocations: 0 / 373.3 MB, free: 14.39 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 4.702e-05/0.2474, allocations: 31.28 kB / 373.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of SimCode: time 0.00134/0.2487, allocations: 1.511 MB / 374.8 MB, free: 13.51 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.