Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 111.8 kB / 17.75 MB, free: 5.348 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.001154/0.001154, allocations: 185.8 kB / 18.68 MB, free: 4.426 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.283/1.283, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.041e-05/2.042e-05, allocations: 11 kB / 328.5 MB, free: 3.355 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003373/0.003401, allocations: 2.661 MB / 331.2 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.004461, allocations: 0.7177 MB / 331.9 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.00458, allocations: 4 kB / 331.9 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.004737, allocations: 39.58 kB / 331.9 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.004878, allocations: 79.27 kB / 332 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.005161, allocations: 99.8 kB / 332.1 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003607/0.005531, allocations: 394.5 kB / 332.5 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.005712, allocations: 88.7 kB / 332.6 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.005899, allocations: 143.5 kB / 332.7 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.006061, allocations: 155.4 kB / 332.9 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.306e-05/0.00612, allocations: 32 kB / 332.9 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.331e-05/0.00617, allocations: 32 kB / 332.9 MB, free: 14.9 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003288/0.006503, allocations: 471.1 kB / 333.4 MB, free: 14.44 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001372/0.006647, allocations: 264 kB / 333.6 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.076e-05/0.006703, allocations: 47.81 kB / 333.7 MB, free: 14.13 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.633e-05/0.006734, allocations: 12 kB / 333.7 MB, free: 14.12 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.001139/0.007877, allocations: 1.326 MB / 335 MB, free: 12.68 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001698/0.008053, allocations: 135 kB / 335.2 MB, free: 12.55 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006672/0.008727, allocations: 0.7532 MB / 335.9 MB, free: 11.77 MB / 286.1 MB Notification: Performance of simplify1: time 8.481e-05/0.008825, allocations: 83.91 kB / 336 MB, free: 11.69 MB / 286.1 MB Notification: Performance of Alias: time 0.001232/0.01006, allocations: 1.106 MB / 337.1 MB, free: 10.45 MB / 286.1 MB Notification: Performance of simplify2: time 7.544e-05/0.01015, allocations: 67.92 kB / 337.2 MB, free: 10.38 MB / 286.1 MB Notification: Performance of Events: time 0.0001578/0.01031, allocations: 124.2 kB / 337.3 MB, free: 10.26 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002223/0.01054, allocations: 189.1 kB / 337.5 MB, free: 10.06 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002347/0.01079, allocations: 225.4 kB / 337.7 MB, free: 9.816 MB / 286.1 MB Notification: Performance of Causalize: time 0.001165/0.01196, allocations: 1.176 MB / 338.9 MB, free: 8.625 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005286/0.0125, allocations: 0.6042 MB / 339.5 MB, free: 7.992 MB / 286.1 MB Notification: Performance of Inline: time 0.0009292/0.01343, allocations: 0.9808 MB / 340.5 MB, free: 6.977 MB / 286.1 MB Notification: Performance of Partitioning: time 4.396e-05/0.01348, allocations: 38.38 kB / 340.5 MB, free: 6.93 MB / 286.1 MB Notification: Performance of Cleanup: time 4.449e-05/0.01353, allocations: 51.88 kB / 340.5 MB, free: 6.879 MB / 286.1 MB Notification: Performance of Causalize: time 0.001429/0.01497, allocations: 1.483 MB / 342 MB, free: 5.395 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005831/0.01556, allocations: 0.569 MB / 342.6 MB, free: 4.777 MB / 286.1 MB Notification: Performance of Initialization: time 2.255e-06/0.01558, allocations: 8 kB / 342.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004986/0.01608, allocations: 0.576 MB / 343.2 MB, free: 4.145 MB / 286.1 MB Notification: Performance of Categorize: time 1.145e-05/0.0161, allocations: 0 / 343.2 MB, free: 4.145 MB / 286.1 MB Notification: Performance of Solve: time 0.000188/0.0163, allocations: 125.8 kB / 343.3 MB, free: 4.023 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0004662/0.01677, allocations: 490.8 kB / 343.8 MB, free: 3.508 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: ......... 2 * 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: ............................. 1 (1) {CL.v} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 7 (7) {$SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 22 (scalar:22, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, 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] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 34 (scalar:34, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, 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.301e-05/0.01681, allocations: 26.86 kB / 343.8 MB, free: 3.488 MB / 286.1 MB Notification: Performance of SimCode: time 0.001338/0.01816, allocations: 1.725 MB / 345.5 MB, free: 1.742 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.