Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|c.v|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|c.v|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001038, allocations: 107.3 kB / 18.41 MB, free: 4.688 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.00104/0.001041, allocations: 193.4 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.455/1.455, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.553e-05/2.554e-05, allocations: 3.266 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.003775/0.003809, allocations: 2.593 MB / 331.8 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.005102, allocations: 0.6982 MB / 332.5 MB, free: 0 / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.005272, allocations: 7.984 kB / 332.5 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.005434, allocations: 35.59 kB / 332.5 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000177/0.005654, allocations: 79.33 kB / 332.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003059/0.005967, allocations: 99.75 kB / 332.7 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003852/0.006363, allocations: 362.6 kB / 333.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.006576, allocations: 84.72 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.006776, allocations: 119.6 kB / 333.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.006948, allocations: 143.4 kB / 333.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.678e-05/0.007003, allocations: 28 kB / 333.4 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.872e-05/0.007059, allocations: 28 kB / 333.5 MB, free: 15.03 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003617/0.007426, allocations: 447.2 kB / 333.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000153/0.007585, allocations: 256.3 kB / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.674e-05/0.00765, allocations: 47.88 kB / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.652e-05/0.007712, allocations: 8 kB / 334.2 MB, free: 14.28 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: 46 (46) * Number of variables: 46 (46) Notification: Performance of Bindings: time 0.001287/0.009005, allocations: 1.291 MB / 335.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of FunctionAlias: time 6.076e-05/0.009073, allocations: 47.91 kB / 335.5 MB, free: 12.83 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005855/0.009666, allocations: 0.6127 MB / 336.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of simplify1: time 5.818e-05/0.009737, allocations: 59.92 kB / 336.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of Alias: time 0.001417/0.01116, allocations: 1.089 MB / 337.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of simplify2: time 4.807e-05/0.01122, allocations: 35.95 kB / 337.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of Events: time 0.000197/0.01142, allocations: 122.3 kB / 337.5 MB, free: 10.74 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002751/0.01171, allocations: 200 kB / 337.6 MB, free: 10.53 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001948/0.01191, allocations: 176.1 kB / 337.8 MB, free: 10.34 MB / 286.1 MB Notification: Performance of Causalize: time 0.0007695/0.01269, allocations: 0.6406 MB / 338.5 MB, free: 9.691 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004468/0.01315, allocations: 492.2 kB / 338.9 MB, free: 9.184 MB / 286.1 MB Notification: Performance of Inline: time 0.0009978/0.01415, allocations: 0.9624 MB / 339.9 MB, free: 8.188 MB / 286.1 MB Notification: Performance of Partitioning: time 8.008e-05/0.01424, allocations: 66.28 kB / 340 MB, free: 8.113 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001097/0.01436, allocations: 105.1 kB / 340.1 MB, free: 8.008 MB / 286.1 MB Notification: Performance of Causalize: time 0.003262/0.01763, allocations: 2.856 MB / 342.9 MB, free: 5.133 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005549/0.0182, allocations: 0.5979 MB / 343.5 MB, free: 4.438 MB / 286.1 MB Notification: Performance of Initialization: time 7.42e-07/0.01821, allocations: 0 / 343.5 MB, free: 4.438 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002136/0.01843, allocations: 318.2 kB / 343.8 MB, free: 4.078 MB / 286.1 MB Notification: Performance of Categorize: time 1.249e-05/0.01845, allocations: 7.938 kB / 343.8 MB, free: 4.07 MB / 286.1 MB Notification: Performance of Solve: time 0.0002673/0.01872, allocations: 162.5 kB / 344 MB, free: 3.906 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0003199/0.01905, allocations: 378 kB / 344.4 MB, free: 3.5 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: ............... 1 * Number of algebraic event partitions: ......... 1 * 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: ............................. 1 (1) {c.v} * 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: ................. 8 (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: ........... 21 (scalar:21, 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: ........... 51 (scalar:51, 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: ........... 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: Performance of backend: time 5.409e-05/0.01911, allocations: 33.12 kB / 344.4 MB, free: 3.469 MB / 286.1 MB Notification: Performance of SimCode: time 0.001302/0.02042, allocations: 1.521 MB / 345.9 MB, free: 1.922 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.