Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_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.001188/0.001187, allocations: 110.4 kB / 18.36 MB, free: 4.715 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.001181/0.001181, allocations: 196.7 kB / 19.3 MB, free: 3.785 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.247/1.247, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.287e-05/2.307e-05, allocations: 2.281 kB / 282 MB, free: 2.516 MB / 222.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003317/0.003358, allocations: 2.676 MB / 284.7 MB, free: 15.82 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.004461, allocations: 0.7057 MB / 285.4 MB, free: 15.1 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.004574, allocations: 4 kB / 285.4 MB, free: 15.1 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.004721, allocations: 47.56 kB / 285.5 MB, free: 15.05 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.004847, allocations: 71.28 kB / 285.6 MB, free: 14.98 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002737/0.005154, allocations: 103.8 kB / 285.7 MB, free: 14.88 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003628/0.005526, allocations: 402.4 kB / 286 MB, free: 14.48 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.005712, allocations: 88.7 kB / 286.1 MB, free: 14.39 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001796/0.005899, allocations: 139.5 kB / 286.3 MB, free: 14.26 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.006061, allocations: 163.4 kB / 286.4 MB, free: 14.1 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.00611, allocations: 32 kB / 286.5 MB, free: 14.07 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.247e-05/0.006159, allocations: 28 kB / 286.5 MB, free: 14.04 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0003112/0.006475, allocations: 463.1 kB / 286.9 MB, free: 13.58 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001183/0.0066, allocations: 264.1 kB / 287.2 MB, free: 13.32 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 4.743e-05/0.006654, allocations: 47.81 kB / 287.2 MB, free: 13.27 MB / 238.1 MB Notification: Performance of FrontEnd: time 2.966e-05/0.006689, allocations: 8 kB / 287.3 MB, free: 13.27 MB / 238.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.00114/0.007834, allocations: 1.322 MB / 288.6 MB, free: 11.84 MB / 238.1 MB Notification: Performance of FunctionAlias: time 0.000192/0.008033, allocations: 137 kB / 288.7 MB, free: 11.71 MB / 238.1 MB Notification: Performance of Early Inline: time 0.000659/0.008701, allocations: 0.7532 MB / 289.5 MB, free: 10.93 MB / 238.1 MB Notification: Performance of simplify1: time 8.59e-05/0.008794, allocations: 91.83 kB / 289.5 MB, free: 10.84 MB / 238.1 MB Notification: Performance of Alias: time 0.001299/0.0101, allocations: 1.102 MB / 290.7 MB, free: 9.602 MB / 238.1 MB Notification: Performance of simplify2: time 6.188e-05/0.01017, allocations: 67.91 kB / 290.7 MB, free: 9.535 MB / 238.1 MB Notification: Performance of Events: time 0.0001694/0.01035, allocations: 124.2 kB / 290.8 MB, free: 9.414 MB / 238.1 MB Notification: Performance of Detect States: time 0.0002149/0.01057, allocations: 185.1 kB / 291 MB, free: 9.219 MB / 238.1 MB Notification: Performance of Partitioning: time 0.0002363/0.01082, allocations: 229.3 kB / 291.2 MB, free: 8.969 MB / 238.1 MB Notification: Performance of Causalize: time 0.001153/0.01198, allocations: 1.172 MB / 292.4 MB, free: 7.777 MB / 238.1 MB Notification: Performance of After Index Reduction Inline: time 0.000571/0.01256, allocations: 0.6039 MB / 293 MB, free: 7.145 MB / 238.1 MB Notification: Performance of Inline: time 0.0009705/0.01354, allocations: 0.9631 MB / 294 MB, free: 6.148 MB / 238.1 MB Notification: Performance of Partitioning: time 5.497e-05/0.01361, allocations: 46.36 kB / 294 MB, free: 6.094 MB / 238.1 MB Notification: Performance of Cleanup: time 5.019e-05/0.01366, allocations: 51.88 kB / 294.1 MB, free: 6.043 MB / 238.1 MB Notification: Performance of Causalize: time 0.001517/0.01519, allocations: 1.476 MB / 295.6 MB, free: 4.578 MB / 238.1 MB Notification: Performance of Tearing: time 0.0006247/0.01582, allocations: 0.584 MB / 296.1 MB, free: 3.945 MB / 238.1 MB Notification: Performance of Initialization: time 9.22e-07/0.01583, allocations: 0 / 296.1 MB, free: 3.945 MB / 238.1 MB Notification: Performance of Tearing: time 0.0005474/0.01639, allocations: 0.5917 MB / 296.7 MB, free: 3.305 MB / 238.1 MB Notification: Performance of Categorize: time 1.508e-05/0.01641, allocations: 3.984 kB / 296.7 MB, free: 3.301 MB / 238.1 MB Notification: Performance of Solve: time 0.0001989/0.01662, allocations: 117.9 kB / 296.8 MB, free: 3.184 MB / 238.1 MB Notification: Performance of Jacobian: time 0.0004283/0.01706, allocations: 495 kB / 297.3 MB, free: 2.664 MB / 238.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.563e-05/0.0171, allocations: 22.8 kB / 297.4 MB, free: 2.648 MB / 238.1 MB Notification: Performance of SimCode: time 0.001309/0.01841, allocations: 1.725 MB / 299.1 MB, free: 0.9023 MB / 238.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.