Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_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.00111/0.00111, allocations: 106.7 kB / 17.75 MB, free: 5.352 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.001093/0.001093, allocations: 187 kB / 18.68 MB, free: 4.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.2/1.2, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/1.973e-05, allocations: 2.281 kB / 351.9 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003408/0.003438, allocations: 2.679 MB / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.004628, allocations: 0.6817 MB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002084/0.004847, allocations: 4 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.005014, allocations: 39.58 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.005217, allocations: 83.27 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.005554, allocations: 99.8 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004197/0.005984, allocations: 398.5 kB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.006173, allocations: 92.69 kB / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002143/0.006395, allocations: 135.5 kB / 356.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001918/0.006596, allocations: 159.4 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.255e-05/0.006656, allocations: 32 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.682e-05/0.00672, allocations: 36 kB / 356.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003397/0.007065, allocations: 471 kB / 356.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001521/0.007224, allocations: 252.2 kB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.792e-05/0.007308, allocations: 51.81 kB / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.107e-05/0.007354, allocations: 8 kB / 357.1 MB, free: 14.05 MB / 302.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.001135/0.008496, allocations: 1.33 MB / 358.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002065/0.00871, allocations: 127.7 kB / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006897/0.009407, allocations: 0.7493 MB / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001119/0.009525, allocations: 83.91 kB / 359.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of Alias: time 0.001432/0.01097, allocations: 1.237 MB / 360.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simplify2: time 9.768e-05/0.01107, allocations: 71.91 kB / 360.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of Events: time 0.0001643/0.01124, allocations: 132.6 kB / 360.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002209/0.01147, allocations: 179.8 kB / 361 MB, free: 9.875 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002456/0.01173, allocations: 234.2 kB / 361.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of Causalize: time 0.0009555/0.01269, allocations: 0.8217 MB / 362.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.000541/0.01324, allocations: 0.6118 MB / 362.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of Inline: time 0.000942/0.01419, allocations: 0.9728 MB / 363.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of Partitioning: time 5.857e-05/0.01425, allocations: 54.3 kB / 363.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of Cleanup: time 6.74e-05/0.01433, allocations: 47.92 kB / 363.8 MB, free: 7.02 MB / 302.1 MB Notification: Performance of Causalize: time 0.001334/0.01567, allocations: 1.129 MB / 364.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005563/0.01623, allocations: 0.5837 MB / 365.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of Initialization: time 6.81e-07/0.01625, allocations: 4 kB / 365.5 MB, free: 5.246 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005044/0.01675, allocations: 0.5799 MB / 366 MB, free: 4.617 MB / 302.1 MB Notification: Performance of Categorize: time 1.187e-05/0.01678, allocations: 4 kB / 366.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of Solve: time 0.0001768/0.01696, allocations: 117.8 kB / 366.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0004489/0.01741, allocations: 483.1 kB / 366.6 MB, free: 3.992 MB / 302.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 5.232e-05/0.01748, allocations: 33 kB / 366.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of SimCode: time 0.001279/0.01877, allocations: 1.727 MB / 368.4 MB, free: 2.211 MB / 302.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.