Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.InvertingSchmittTrigger,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.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_4.0.0_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.001412/0.001412, allocations: 105.5 kB / 17.75 MB, free: 5.312 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.001235/0.001235, allocations: 188.2 kB / 18.68 MB, free: 4.387 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.296/1.296, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.65e-05/2.65e-05, allocations: 2.281 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003693/0.003729, allocations: 2.75 MB / 354.7 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.00494, allocations: 0.6778 MB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.005078, allocations: 4 kB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.005222, allocations: 47.56 kB / 355.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.005405, allocations: 91.25 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.005681, allocations: 91.83 kB / 355.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004026/0.006092, allocations: 394.5 kB / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.006289, allocations: 88.56 kB / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.006447, allocations: 143.4 kB / 356.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.006618, allocations: 147.4 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.604e-05/0.00667, allocations: 28 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.235e-05/0.006728, allocations: 32 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003423/0.007076, allocations: 478.8 kB / 356.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001508/0.007233, allocations: 291.8 kB / 357.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.753e-05/0.007296, allocations: 43.88 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.171e-05/0.007344, allocations: 15.92 kB / 357.2 MB, free: 13.92 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.001208/0.008557, allocations: 1.357 MB / 358.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of FunctionAlias: time 4.625e-05/0.00861, allocations: 51.88 kB / 358.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0005688/0.009184, allocations: 0.6362 MB / 359.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simplify1: time 5.514e-05/0.009247, allocations: 55.94 kB / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Alias: time 0.00136/0.01061, allocations: 1.175 MB / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simplify2: time 4.345e-05/0.01067, allocations: 43.94 kB / 360.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of Events: time 0.0002141/0.01089, allocations: 136.8 kB / 360.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002469/0.01114, allocations: 201.1 kB / 360.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002052/0.01136, allocations: 184.9 kB / 361.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of Causalize: time 0.0007885/0.01215, allocations: 0.6858 MB / 361.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004697/0.01263, allocations: 0.5208 MB / 362.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of Inline: time 0.001011/0.01365, allocations: 1.033 MB / 363.3 MB, free: 7.441 MB / 302.1 MB Notification: Performance of Partitioning: time 6.906e-05/0.01373, allocations: 66.36 kB / 363.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of Cleanup: time 3.596e-05/0.01377, allocations: 31.97 kB / 363.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of Causalize: time 0.001731/0.01551, allocations: 1.537 MB / 364.9 MB, free: 5.785 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004018/0.01592, allocations: 397.9 kB / 365.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of Initialization: time 4.31e-07/0.01593, allocations: 0 / 365.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003145/0.01625, allocations: 385.9 kB / 365.7 MB, free: 4.922 MB / 302.1 MB Notification: Performance of Categorize: time 1.431e-05/0.01628, allocations: 4 kB / 365.7 MB, free: 4.918 MB / 302.1 MB Notification: Performance of Solve: time 0.0002063/0.01649, allocations: 134.2 kB / 365.8 MB, free: 4.789 MB / 302.1 MB Notification: Performance of Jacobian: time 7.283e-06/0.0165, allocations: 0 / 365.8 MB, free: 4.789 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.726e-05/0.01656, allocations: 30.77 kB / 365.9 MB, free: 4.762 MB / 302.1 MB Notification: Performance of SimCode: time 0.001201/0.01777, allocations: 1.503 MB / 367.4 MB, free: 3.238 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.