Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001041/0.001041, allocations: 101.4 kB / 16.42 MB, free: 6.52 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.001107/0.001107, allocations: 188.3 kB / 17.35 MB, free: 5.73 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.304/1.304, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.379e-05/2.379e-05, allocations: 6.219 kB / 327.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.00328/0.003312, allocations: 2.664 MB / 329.9 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.004375, allocations: 0.706 MB / 330.6 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.004489, allocations: 4 kB / 330.6 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.004637, allocations: 51.5 kB / 330.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001216/0.004765, allocations: 67.34 kB / 330.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000266/0.005052, allocations: 99.78 kB / 330.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.005411, allocations: 398.5 kB / 331.2 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.005592, allocations: 88.7 kB / 331.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.005775, allocations: 135.5 kB / 331.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.005938, allocations: 167.3 kB / 331.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.005991, allocations: 32 kB / 331.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.086e-05/0.006038, allocations: 28 kB / 331.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.000329/0.006372, allocations: 467.2 kB / 332.1 MB, free: 14.43 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001308/0.00651, allocations: 268 kB / 332.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.185e-05/0.006568, allocations: 59.75 kB / 332.4 MB, free: 14.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.43e-05/0.006598, allocations: 8 kB / 332.4 MB, free: 14.09 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.001113/0.007715, allocations: 1.322 MB / 333.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001773/0.007899, allocations: 126.8 kB / 333.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006321/0.008538, allocations: 0.7532 MB / 334.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of simplify1: time 8.893e-05/0.008634, allocations: 83.89 kB / 334.7 MB, free: 11.68 MB / 286.1 MB Notification: Performance of Alias: time 0.001203/0.009844, allocations: 1.117 MB / 335.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of simplify2: time 6.335e-05/0.009918, allocations: 63.92 kB / 335.8 MB, free: 10.36 MB / 286.1 MB Notification: Performance of Events: time 0.0001611/0.01009, allocations: 124.3 kB / 336 MB, free: 10.24 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002147/0.01031, allocations: 193.1 kB / 336.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002542/0.01057, allocations: 221.4 kB / 336.4 MB, free: 9.797 MB / 286.1 MB Notification: Performance of Causalize: time 0.001148/0.01173, allocations: 1.169 MB / 337.5 MB, free: 8.609 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005136/0.01225, allocations: 0.6078 MB / 338.2 MB, free: 7.973 MB / 286.1 MB Notification: Performance of Inline: time 0.0008995/0.01316, allocations: 0.9731 MB / 339.1 MB, free: 6.965 MB / 286.1 MB Notification: Performance of Partitioning: time 4.422e-05/0.01321, allocations: 38.38 kB / 339.2 MB, free: 6.918 MB / 286.1 MB Notification: Performance of Cleanup: time 4.421e-05/0.01326, allocations: 55.88 kB / 339.2 MB, free: 6.863 MB / 286.1 MB Notification: Performance of Causalize: time 0.001224/0.01449, allocations: 1.487 MB / 340.7 MB, free: 5.375 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005096/0.01501, allocations: 0.5642 MB / 341.3 MB, free: 4.762 MB / 286.1 MB Notification: Performance of Initialization: time 4.71e-07/0.01502, allocations: 0 / 341.3 MB, free: 4.762 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004527/0.01548, allocations: 0.588 MB / 341.9 MB, free: 4.125 MB / 286.1 MB Notification: Performance of Categorize: time 1.037e-05/0.01549, allocations: 0 / 341.9 MB, free: 4.125 MB / 286.1 MB Notification: Performance of Solve: time 0.0001588/0.01566, allocations: 125.7 kB / 342 MB, free: 4.004 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0003996/0.01607, allocations: 490.8 kB / 342.5 MB, free: 3.488 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.344e-05/0.01611, allocations: 26.78 kB / 342.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of SimCode: time 0.001183/0.0173, allocations: 1.726 MB / 344.2 MB, free: 1.723 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.