Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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 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.SchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001181/0.001181, allocations: 113 kB / 17.75 MB, free: 5.305 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.001107/0.001107, allocations: 184.7 kB / 18.68 MB, free: 4.383 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.253/1.253, allocations: 205.1 MB / 224.6 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.201e-05/2.202e-05, allocations: 6.219 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.00332/0.00335, allocations: 2.714 MB / 331.3 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.004418, allocations: 0.7137 MB / 332 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.004537, allocations: 4 kB / 332 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.00467, allocations: 39.58 kB / 332 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.004834, allocations: 87.25 kB / 332.1 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.005082, allocations: 103.8 kB / 332.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003752/0.005466, allocations: 394.5 kB / 332.6 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.00564, allocations: 84.7 kB / 332.7 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.005787, allocations: 131.4 kB / 332.8 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.005948, allocations: 151.4 kB / 332.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.584e-05/0.006, allocations: 32 kB / 333 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.074e-05/0.006046, allocations: 28 kB / 333 MB, free: 14.82 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003348/0.006385, allocations: 478.9 kB / 333.5 MB, free: 14.34 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001525/0.006544, allocations: 287.8 kB / 333.7 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.568e-05/0.006604, allocations: 47.88 kB / 333.8 MB, free: 14.01 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.605e-05/0.006637, allocations: 12 kB / 333.8 MB, free: 14 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.001223/0.007865, allocations: 1.368 MB / 335.2 MB, free: 12.52 MB / 286.1 MB Notification: Performance of FunctionAlias: time 6.242e-05/0.007934, allocations: 59.84 kB / 335.2 MB, free: 12.46 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005549/0.008495, allocations: 0.6556 MB / 335.9 MB, free: 11.78 MB / 286.1 MB Notification: Performance of simplify1: time 6.018e-05/0.008561, allocations: 59.92 kB / 335.9 MB, free: 11.72 MB / 286.1 MB Notification: Performance of Alias: time 0.001096/0.009664, allocations: 1.046 MB / 337 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simplify2: time 4.064e-05/0.009716, allocations: 43.95 kB / 337 MB, free: 10.48 MB / 286.1 MB Notification: Performance of Events: time 0.0001972/0.009919, allocations: 137.4 kB / 337.2 MB, free: 10.34 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003243/0.01025, allocations: 205.1 kB / 337.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001872/0.01045, allocations: 188.3 kB / 337.6 MB, free: 9.918 MB / 286.1 MB Notification: Performance of Causalize: time 0.000949/0.0114, allocations: 0.9952 MB / 338.6 MB, free: 8.902 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004437/0.01185, allocations: 0.5208 MB / 339.1 MB, free: 8.355 MB / 286.1 MB Notification: Performance of Inline: time 0.0009294/0.01279, allocations: 1.038 MB / 340.1 MB, free: 7.285 MB / 286.1 MB Notification: Performance of Partitioning: time 5.966e-05/0.01286, allocations: 66.34 kB / 340.2 MB, free: 7.211 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001012/0.01297, allocations: 113 kB / 340.3 MB, free: 7.098 MB / 286.1 MB Notification: Performance of Causalize: time 0.003411/0.01638, allocations: 4.105 MB / 344.4 MB, free: 3.059 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005103/0.0169, allocations: 0.6798 MB / 345.1 MB, free: 2.281 MB / 286.1 MB Notification: Performance of Initialization: time 2.716e-06/0.01692, allocations: 8 kB / 345.1 MB, free: 2.273 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002696/0.01719, allocations: 390 kB / 345.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of Categorize: time 9.928e-06/0.01721, allocations: 3.938 kB / 345.5 MB, free: 1.84 MB / 286.1 MB Notification: Performance of Solve: time 0.0002357/0.01745, allocations: 164.2 kB / 345.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of Jacobian: time 2.745e-06/0.01746, allocations: 0 / 345.6 MB, free: 1.68 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 4.136e-05/0.01751, allocations: 52.11 kB / 345.7 MB, free: 1.641 MB / 286.1 MB Notification: Performance of SimCode: time 0.0009886/0.0185, allocations: 1.561 MB / 347.2 MB, free: 60 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.