Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001303/0.001303, allocations: 110.1 kB / 18.42 MB, free: 4.684 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.001486/0.001486, allocations: 190.6 kB / 19.35 MB, free: 3.762 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.493/1.493, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.723e-05/2.725e-05, allocations: 6.219 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.00404/0.004076, allocations: 2.719 MB / 331.9 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.005772, allocations: 0.7138 MB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003098/0.006094, allocations: 4 kB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002119/0.006313, allocations: 39.58 kB / 332.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003513/0.006672, allocations: 91.25 kB / 332.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004143/0.007095, allocations: 103.8 kB / 332.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006536/0.00778, allocations: 394.4 kB / 333.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002218/0.008013, allocations: 84.7 kB / 333.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002473/0.008268, allocations: 135.4 kB / 333.5 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.008516, allocations: 147.4 kB / 333.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.484e-05/0.008579, allocations: 28 kB / 333.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.379e-05/0.008639, allocations: 32 kB / 333.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003736/0.009018, allocations: 486.8 kB / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001905/0.009218, allocations: 287.8 kB / 334.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.383e-05/0.009318, allocations: 47.88 kB / 334.5 MB, free: 14.01 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.798e-05/0.009381, allocations: 8 kB / 334.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.001292/0.01068, allocations: 1.368 MB / 335.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of FunctionAlias: time 9.629e-05/0.01078, allocations: 59.83 kB / 335.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006323/0.01142, allocations: 0.6479 MB / 336.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of simplify1: time 7.489e-05/0.0115, allocations: 59.92 kB / 336.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of Alias: time 0.001461/0.01297, allocations: 1.159 MB / 337.8 MB, free: 10.42 MB / 286.1 MB Notification: Performance of simplify2: time 6.557e-05/0.01305, allocations: 35.89 kB / 337.8 MB, free: 10.38 MB / 286.1 MB Notification: Performance of Events: time 0.0002185/0.01328, allocations: 140.8 kB / 337.9 MB, free: 10.25 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002652/0.01355, allocations: 197.1 kB / 338.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002426/0.0138, allocations: 200.3 kB / 338.3 MB, free: 9.816 MB / 286.1 MB Notification: Performance of Causalize: time 0.0008542/0.01466, allocations: 0.6891 MB / 339 MB, free: 9.105 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005156/0.01519, allocations: 0.521 MB / 339.5 MB, free: 8.559 MB / 286.1 MB Notification: Performance of Inline: time 0.001145/0.01634, allocations: 1.026 MB / 340.6 MB, free: 7.496 MB / 286.1 MB Notification: Performance of Partitioning: time 7.975e-05/0.01643, allocations: 74.23 kB / 340.6 MB, free: 7.418 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001403/0.01658, allocations: 117.1 kB / 340.8 MB, free: 7.297 MB / 286.1 MB Notification: Performance of Causalize: time 0.003846/0.02043, allocations: 3.159 MB / 343.9 MB, free: 4.121 MB / 286.1 MB Notification: Performance of Tearing: time 0.0006022/0.02104, allocations: 0.6758 MB / 344.6 MB, free: 3.348 MB / 286.1 MB Notification: Performance of Initialization: time 2.225e-06/0.02106, allocations: 4 kB / 344.6 MB, free: 3.344 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002944/0.02136, allocations: 390 kB / 345 MB, free: 2.914 MB / 286.1 MB Notification: Performance of Categorize: time 2.043e-05/0.02139, allocations: 7.984 kB / 345 MB, free: 2.906 MB / 286.1 MB Notification: Performance of Solve: time 0.00028/0.02167, allocations: 160.2 kB / 345.1 MB, free: 2.746 MB / 286.1 MB Notification: Performance of Jacobian: time 5.34e-06/0.02169, allocations: 0 / 345.1 MB, free: 2.746 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 5.917e-05/0.02175, allocations: 44.7 kB / 345.2 MB, free: 2.703 MB / 286.1 MB Notification: Performance of SimCode: time 0.001217/0.02297, allocations: 1.561 MB / 346.7 MB, free: 1.125 MB / 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.