Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.001123/0.001123, allocations: 105.4 kB / 16.42 MB, free: 6.492 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.0009177/0.0009177, 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.273/1.273, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.909e-05/1.91e-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.SchmittTrigger): time 0.003219/0.003246, allocations: 2.708 MB / 329.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.004288, allocations: 0.7137 MB / 330.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.004412, allocations: 7.938 kB / 330.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.004557, allocations: 43.58 kB / 330.7 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.004724, allocations: 87.25 kB / 330.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.004973, allocations: 91.83 kB / 330.9 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003782/0.005367, allocations: 402.5 kB / 331.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.00554, allocations: 80.73 kB / 331.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.005688, allocations: 135.5 kB / 331.5 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.005848, allocations: 143.4 kB / 331.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.634e-05/0.0059, allocations: 32 kB / 331.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.037e-05/0.005946, allocations: 28 kB / 331.7 MB, free: 14.83 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003458/0.006297, allocations: 486.8 kB / 332.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001491/0.006452, allocations: 287.8 kB / 332.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.324e-05/0.006512, allocations: 47.88 kB / 332.5 MB, free: 14.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.527e-05/0.006542, allocations: 8 kB / 332.5 MB, free: 14.01 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.001159/0.007706, allocations: 1.368 MB / 333.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of FunctionAlias: time 5.911e-05/0.007771, allocations: 59.89 kB / 333.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005407/0.008317, allocations: 0.6517 MB / 334.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of simplify1: time 5.433e-05/0.008378, allocations: 63.91 kB / 334.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of Alias: time 0.00108/0.009464, allocations: 1.042 MB / 335.7 MB, free: 10.53 MB / 286.1 MB Notification: Performance of simplify2: time 4.026e-05/0.009515, allocations: 47.94 kB / 335.7 MB, free: 10.48 MB / 286.1 MB Notification: Performance of Events: time 0.0001827/0.009704, allocations: 133.3 kB / 335.8 MB, free: 10.36 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002221/0.009934, allocations: 205 kB / 336 MB, free: 10.14 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001925/0.01013, allocations: 192.3 kB / 336.2 MB, free: 9.926 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009318/0.01107, allocations: 0.9934 MB / 337.2 MB, free: 8.918 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004291/0.01151, allocations: 0.5286 MB / 337.8 MB, free: 8.363 MB / 286.1 MB Notification: Performance of Inline: time 0.0009163/0.01244, allocations: 1.031 MB / 338.8 MB, free: 7.301 MB / 286.1 MB Notification: Performance of Partitioning: time 5.943e-05/0.01251, allocations: 66.3 kB / 338.8 MB, free: 7.227 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001038/0.01261, allocations: 117 kB / 339 MB, free: 7.109 MB / 286.1 MB Notification: Performance of Causalize: time 0.003478/0.0161, allocations: 4.104 MB / 343.1 MB, free: 3.066 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005239/0.01663, allocations: 0.6759 MB / 343.7 MB, free: 2.293 MB / 286.1 MB Notification: Performance of Initialization: time 5.11e-07/0.01664, allocations: 4 kB / 343.7 MB, free: 2.289 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002838/0.01693, allocations: 390 kB / 344.1 MB, free: 1.859 MB / 286.1 MB Notification: Performance of Categorize: time 1.288e-05/0.01695, allocations: 0 / 344.1 MB, free: 1.859 MB / 286.1 MB Notification: Performance of Solve: time 0.0002468/0.01721, allocations: 172.1 kB / 344.3 MB, free: 1.691 MB / 286.1 MB Notification: Performance of Jacobian: time 2.315e-06/0.01722, allocations: 0 / 344.3 MB, free: 1.691 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.01727, allocations: 51.97 kB / 344.3 MB, free: 1.652 MB / 286.1 MB Notification: Performance of SimCode: time 0.001022/0.01829, allocations: 1.568 MB / 345.9 MB, free: 64 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.