Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 109.4 kB / 17.75 MB, free: 5.328 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.001184/0.001184, allocations: 188.3 kB / 18.68 MB, free: 4.402 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.26/1.26, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.752e-05/1.753e-05, allocations: 2.281 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003447/0.003473, allocations: 2.747 MB / 331.3 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.004494, allocations: 0.6749 MB / 331.9 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.004622, allocations: 4 kB / 331.9 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.004767, allocations: 47.56 kB / 332 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.004936, allocations: 95.17 kB / 332.1 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.00517, allocations: 87.83 kB / 332.2 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003709/0.00555, allocations: 418.3 kB / 332.6 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.005757, allocations: 119 kB / 332.7 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.005905, allocations: 147.5 kB / 332.8 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.006083, allocations: 167.2 kB / 333 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.63e-05/0.006135, allocations: 36 kB / 333 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.566e-05/0.006187, allocations: 32 kB / 333.1 MB, free: 14.73 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003599/0.006561, allocations: 0.5063 MB / 333.6 MB, free: 14.22 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001621/0.006729, allocations: 307.6 kB / 333.9 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.929e-05/0.006794, allocations: 51.88 kB / 333.9 MB, free: 13.86 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.83e-05/0.006827, allocations: 11.94 kB / 333.9 MB, free: 13.85 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: 60 (60) * Number of variables: 60 (60) Notification: Performance of Bindings: time 0.001282/0.008113, allocations: 1.5 MB / 335.4 MB, free: 12.24 MB / 286.1 MB Notification: Performance of FunctionAlias: time 7.721e-05/0.008196, allocations: 63.89 kB / 335.5 MB, free: 12.18 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006807/0.008883, allocations: 0.7298 MB / 336.2 MB, free: 11.42 MB / 286.1 MB Notification: Performance of simplify1: time 6.658e-05/0.008958, allocations: 71.86 kB / 336.3 MB, free: 11.35 MB / 286.1 MB Notification: Performance of Alias: time 0.001415/0.01038, allocations: 1.332 MB / 337.6 MB, free: 9.832 MB / 286.1 MB Notification: Performance of simplify2: time 4.079e-05/0.01043, allocations: 39.95 kB / 337.7 MB, free: 9.793 MB / 286.1 MB Notification: Performance of Events: time 0.000216/0.01065, allocations: 140 kB / 337.8 MB, free: 9.652 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002427/0.0109, allocations: 199.7 kB / 338 MB, free: 9.445 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002165/0.01113, allocations: 208.4 kB / 338.2 MB, free: 9.211 MB / 286.1 MB Notification: Performance of Causalize: time 0.001037/0.01217, allocations: 1.039 MB / 339.2 MB, free: 8.145 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004619/0.01264, allocations: 0.5171 MB / 339.8 MB, free: 7.602 MB / 286.1 MB Notification: Performance of Inline: time 0.001002/0.01365, allocations: 1.023 MB / 340.8 MB, free: 6.543 MB / 286.1 MB Notification: Performance of Partitioning: time 5.862e-05/0.01372, allocations: 62.34 kB / 340.8 MB, free: 6.477 MB / 286.1 MB Notification: Performance of Cleanup: time 3.627e-05/0.01376, allocations: 35.97 kB / 340.9 MB, free: 6.441 MB / 286.1 MB Notification: Performance of Causalize: time 0.001862/0.01563, allocations: 2.012 MB / 342.9 MB, free: 4.461 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003919/0.01603, allocations: 417.9 kB / 343.3 MB, free: 4.004 MB / 286.1 MB Notification: Performance of Initialization: time 5.01e-07/0.01604, allocations: 4 kB / 343.3 MB, free: 4 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003248/0.01637, allocations: 406 kB / 343.7 MB, free: 3.555 MB / 286.1 MB Notification: Performance of Categorize: time 1.145e-05/0.01639, allocations: 4 kB / 343.7 MB, free: 3.551 MB / 286.1 MB Notification: Performance of Solve: time 0.0001834/0.01658, allocations: 133.9 kB / 343.8 MB, free: 3.414 MB / 286.1 MB Notification: Performance of Jacobian: time 3.256e-06/0.01659, allocations: 0.625 kB / 343.8 MB, free: 3.414 MB / 286.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 1 * 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: ....... 0 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: ........... 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: Performance of backend: time 3.627e-05/0.01663, allocations: 31.5 kB / 343.9 MB, free: 3.387 MB / 286.1 MB Notification: Performance of SimCode: time 0.001165/0.01781, allocations: 1.581 MB / 345.5 MB, free: 1.785 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.