Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00126/0.00126, allocations: 110.6 kB / 17.75 MB, free: 5.324 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.001194/0.001194, allocations: 187.1 kB / 18.68 MB, free: 4.41 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.249/1.249, allocations: 205.1 MB / 224.6 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.078e-05/2.079e-05, allocations: 2.281 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003456/0.003484, allocations: 2.716 MB / 331.3 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.004563, allocations: 0.7176 MB / 332 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.00468, allocations: 4 kB / 332 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.004816, allocations: 39.58 kB / 332 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.004982, allocations: 83.27 kB / 332.1 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.00526, allocations: 99.81 kB / 332.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003683/0.005637, allocations: 394.5 kB / 332.6 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.005816, allocations: 80.72 kB / 332.7 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.005968, allocations: 139.4 kB / 332.8 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.006132, allocations: 147.4 kB / 332.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.469e-05/0.006182, allocations: 32 kB / 333 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.003e-05/0.006227, allocations: 28 kB / 333 MB, free: 14.82 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003277/0.00656, allocations: 486.8 kB / 333.5 MB, free: 14.34 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001405/0.006706, allocations: 283.8 kB / 333.8 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.235e-05/0.006775, allocations: 55.88 kB / 333.8 MB, free: 14 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.566e-05/0.006806, allocations: 4 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.001154/0.007964, allocations: 1.372 MB / 335.2 MB, free: 12.52 MB / 286.1 MB Notification: Performance of FunctionAlias: time 6.766e-05/0.008038, allocations: 59.84 kB / 335.2 MB, free: 12.46 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005423/0.008586, allocations: 0.6479 MB / 335.9 MB, free: 11.79 MB / 286.1 MB Notification: Performance of simplify1: time 5.505e-05/0.008654, allocations: 67.86 kB / 336 MB, free: 11.72 MB / 286.1 MB Notification: Performance of Alias: time 0.001101/0.00976, allocations: 1.043 MB / 337 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simplify2: time 4.412e-05/0.009815, allocations: 51.88 kB / 337 MB, free: 10.47 MB / 286.1 MB Notification: Performance of Events: time 0.0002021/0.01002, allocations: 132.8 kB / 337.2 MB, free: 10.34 MB / 286.1 MB Notification: Performance of Detect States: time 0.000225/0.01026, allocations: 201.1 kB / 337.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001983/0.01046, allocations: 192.3 kB / 337.6 MB, free: 9.914 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009431/0.01141, allocations: 0.9936 MB / 338.6 MB, free: 8.902 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004624/0.01188, allocations: 0.5249 MB / 339.1 MB, free: 8.352 MB / 286.1 MB Notification: Performance of Inline: time 0.0009735/0.01287, allocations: 1.042 MB / 340.1 MB, free: 7.277 MB / 286.1 MB Notification: Performance of Partitioning: time 7.149e-05/0.01295, allocations: 66.3 kB / 340.2 MB, free: 7.203 MB / 286.1 MB Notification: Performance of Cleanup: time 0.000104/0.01306, allocations: 117.1 kB / 340.3 MB, free: 7.086 MB / 286.1 MB Notification: Performance of Causalize: time 0.003592/0.01665, allocations: 4.099 MB / 344.4 MB, free: 3.047 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005484/0.01721, allocations: 0.6841 MB / 345.1 MB, free: 2.266 MB / 286.1 MB Notification: Performance of Initialization: time 3.81e-07/0.01722, allocations: 0 / 345.1 MB, free: 2.266 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002858/0.01751, allocations: 393.9 kB / 345.5 MB, free: 1.832 MB / 286.1 MB Notification: Performance of Categorize: time 1.295e-05/0.01754, allocations: 4 kB / 345.5 MB, free: 1.828 MB / 286.1 MB Notification: Performance of Solve: time 0.0002561/0.0178, allocations: 164.2 kB / 345.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of Jacobian: time 3.066e-06/0.01781, allocations: 4 kB / 345.6 MB, free: 1.664 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.284e-05/0.01786, allocations: 52.69 kB / 345.7 MB, free: 1.625 MB / 286.1 MB Notification: Performance of SimCode: time 0.001082/0.01895, allocations: 1.56 MB / 347.2 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.