Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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 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.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001307/0.001307, allocations: 106.8 kB / 16.42 MB, free: 6.484 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.00138/0.00138, allocations: 189.9 kB / 17.35 MB, free: 5.754 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.366/1.366, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.98e-05/2.981e-05, allocations: 2.281 kB / 327.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003685/0.003723, allocations: 2.712 MB / 329.9 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.004839, allocations: 0.7098 MB / 330.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.004969, allocations: 4 kB / 330.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.00514, allocations: 47.56 kB / 330.7 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.00531, allocations: 91.25 kB / 330.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.005583, allocations: 91.83 kB / 330.9 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003992/0.00599, allocations: 406.5 kB / 331.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.006177, allocations: 80.72 kB / 331.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.006336, allocations: 139.4 kB / 331.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.006499, allocations: 143.4 kB / 331.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.56e-05/0.006551, allocations: 28 kB / 331.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.169e-05/0.006598, allocations: 28 kB / 331.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003456/0.00695, allocations: 486.8 kB / 332.2 MB, free: 14.34 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001566/0.007113, allocations: 295.8 kB / 332.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.807e-05/0.007176, allocations: 43.88 kB / 332.5 MB, free: 14 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.708e-05/0.007208, allocations: 4 kB / 332.5 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.001229/0.008443, allocations: 1.368 MB / 333.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of FunctionAlias: time 6.72e-05/0.008517, allocations: 71.81 kB / 333.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005729/0.009096, allocations: 0.6401 MB / 334.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of simplify1: time 6.505e-05/0.009168, allocations: 59.92 kB / 334.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of Alias: time 0.001146/0.01032, allocations: 1.051 MB / 335.7 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simplify2: time 4.206e-05/0.01037, allocations: 39.94 kB / 335.7 MB, free: 10.48 MB / 286.1 MB Notification: Performance of Events: time 0.0002043/0.01058, allocations: 144.7 kB / 335.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002417/0.01083, allocations: 197.1 kB / 336 MB, free: 10.13 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002052/0.01105, allocations: 192.3 kB / 336.2 MB, free: 9.918 MB / 286.1 MB Notification: Performance of Causalize: time 0.000968/0.01202, allocations: 0.9974 MB / 337.2 MB, free: 8.906 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004589/0.01249, allocations: 0.5246 MB / 337.8 MB, free: 8.355 MB / 286.1 MB Notification: Performance of Inline: time 0.0009846/0.01349, allocations: 1.042 MB / 338.8 MB, free: 7.281 MB / 286.1 MB Notification: Performance of Partitioning: time 6.201e-05/0.01356, allocations: 66.25 kB / 338.9 MB, free: 7.207 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001107/0.01368, allocations: 117.1 kB / 339 MB, free: 7.09 MB / 286.1 MB Notification: Performance of Causalize: time 0.003609/0.01729, allocations: 4.1 MB / 343.1 MB, free: 3.047 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005529/0.01786, allocations: 0.676 MB / 343.8 MB, free: 2.273 MB / 286.1 MB Notification: Performance of Initialization: time 5.41e-07/0.01787, allocations: 0 / 343.8 MB, free: 2.273 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002959/0.01817, allocations: 401.9 kB / 344.1 MB, free: 1.832 MB / 286.1 MB Notification: Performance of Categorize: time 1.135e-05/0.01819, allocations: 128 / 344.1 MB, free: 1.832 MB / 286.1 MB Notification: Performance of Solve: time 0.0002549/0.01845, allocations: 164.2 kB / 344.3 MB, free: 1.672 MB / 286.1 MB Notification: Performance of Jacobian: time 4.389e-06/0.01846, allocations: 4 kB / 344.3 MB, free: 1.668 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.466e-05/0.01851, allocations: 52.28 kB / 344.4 MB, free: 1.629 MB / 286.1 MB Notification: Performance of SimCode: time 0.001124/0.01964, allocations: 1.565 MB / 345.9 MB, free: 44 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.