Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009933/0.0009934, allocations: 113.4 kB / 17.75 MB, free: 5.344 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.0009439/0.0009439, allocations: 180.2 kB / 18.68 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.568e-05/2.57e-05, allocations: 5.516 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003543/0.003577, allocations: 2.738 MB / 354.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.004727, allocations: 0.6817 MB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.004873, allocations: 4 kB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.00503, allocations: 43.56 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.005244, allocations: 95.25 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002909/0.005554, allocations: 91.81 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004642/0.006027, allocations: 402.5 kB / 356 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001989/0.006235, allocations: 92.55 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.006401, allocations: 135.4 kB / 356.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.006558, allocations: 147.4 kB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.945e-05/0.006613, allocations: 28 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.428e-05/0.006664, allocations: 28 kB / 356.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.000373/0.007042, allocations: 486.8 kB / 356.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001746/0.007223, allocations: 283.8 kB / 357.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.725e-05/0.007285, allocations: 43.88 kB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.87e-05/0.007341, allocations: 15.94 kB / 357.2 MB, free: 13.94 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.001341/0.008687, allocations: 1.361 MB / 358.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of FunctionAlias: time 5.346e-05/0.008747, allocations: 51.89 kB / 358.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of Early Inline: time 0.000582/0.009335, allocations: 0.6284 MB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simplify1: time 5.55e-05/0.0094, allocations: 63.92 kB / 359.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of Alias: time 0.001467/0.01087, allocations: 1.171 MB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simplify2: time 4.912e-05/0.01093, allocations: 47.88 kB / 360.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of Events: time 0.0002254/0.01116, allocations: 128.8 kB / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002809/0.01145, allocations: 201.1 kB / 360.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002232/0.01169, allocations: 184.8 kB / 361.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of Causalize: time 0.0008365/0.01253, allocations: 0.6974 MB / 361.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005008/0.01304, allocations: 0.521 MB / 362.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of Inline: time 0.001107/0.01416, allocations: 1.014 MB / 363.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of Partitioning: time 7.129e-05/0.01424, allocations: 70.3 kB / 363.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of Cleanup: time 3.782e-05/0.01429, allocations: 39.89 kB / 363.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of Causalize: time 0.001897/0.01619, allocations: 1.533 MB / 364.9 MB, free: 5.809 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003914/0.01659, allocations: 382 kB / 365.3 MB, free: 5.387 MB / 302.1 MB Notification: Performance of Initialization: time 9.71e-07/0.0166, allocations: 4 kB / 365.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003158/0.01692, allocations: 389.9 kB / 365.7 MB, free: 4.953 MB / 302.1 MB Notification: Performance of Categorize: time 1.376e-05/0.01695, allocations: 4 kB / 365.7 MB, free: 4.949 MB / 302.1 MB Notification: Performance of Solve: time 0.0002092/0.01716, allocations: 138.2 kB / 365.8 MB, free: 4.816 MB / 302.1 MB Notification: Performance of Jacobian: time 4.459e-06/0.01717, allocations: 0 / 365.8 MB, free: 4.816 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 6.263e-05/0.01724, allocations: 29.77 kB / 365.9 MB, free: 4.793 MB / 302.1 MB Notification: Performance of SimCode: time 0.001264/0.01851, allocations: 1.507 MB / 367.4 MB, free: 3.262 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.