Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001705/0.001705, allocations: 108.4 kB / 16.42 MB, free: 6.516 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.001292/0.001292, allocations: 186 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.351/1.351, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.496e-05/2.497e-05, allocations: 2.281 kB / 327.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003614/0.003646, allocations: 2.669 MB / 329.9 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.005071, allocations: 0.7021 MB / 330.6 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001794/0.005261, allocations: 4 kB / 330.6 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.005416, allocations: 39.58 kB / 330.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.005551, allocations: 79.27 kB / 330.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003053/0.00588, allocations: 99.78 kB / 330.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003629/0.006252, allocations: 394.5 kB / 331.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.006461, allocations: 92.7 kB / 331.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.006669, allocations: 139.5 kB / 331.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.006853, allocations: 159.3 kB / 331.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.309e-05/0.006912, allocations: 32 kB / 331.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.545e-05/0.006963, allocations: 32 kB / 331.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003413/0.007309, allocations: 459.2 kB / 332.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001477/0.007464, allocations: 268 kB / 332.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.213e-05/0.007521, allocations: 55.81 kB / 332.4 MB, free: 14.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.515e-05/0.007551, allocations: 4 kB / 332.4 MB, free: 14.1 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.001166/0.008722, allocations: 1.33 MB / 333.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001912/0.008922, allocations: 131 kB / 333.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006784/0.009608, allocations: 0.7609 MB / 334.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of simplify1: time 8.335e-05/0.009698, allocations: 75.91 kB / 334.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of Alias: time 0.001262/0.01097, allocations: 1.121 MB / 335.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simplify2: time 5.677e-05/0.01103, allocations: 55.92 kB / 335.8 MB, free: 10.36 MB / 286.1 MB Notification: Performance of Events: time 0.0001682/0.01121, allocations: 128.3 kB / 336 MB, free: 10.23 MB / 286.1 MB Notification: Performance of Detect States: time 0.000249/0.01147, allocations: 197.1 kB / 336.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002721/0.01175, allocations: 217.4 kB / 336.4 MB, free: 9.789 MB / 286.1 MB Notification: Performance of Causalize: time 0.001096/0.01285, allocations: 1.178 MB / 337.5 MB, free: 8.594 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005239/0.01338, allocations: 0.6039 MB / 338.2 MB, free: 7.961 MB / 286.1 MB Notification: Performance of Inline: time 0.000915/0.0143, allocations: 0.9729 MB / 339.1 MB, free: 6.953 MB / 286.1 MB Notification: Performance of Partitioning: time 5.255e-05/0.01437, allocations: 46.38 kB / 339.2 MB, free: 6.898 MB / 286.1 MB Notification: Performance of Cleanup: time 4.364e-05/0.01442, allocations: 51.88 kB / 339.2 MB, free: 6.848 MB / 286.1 MB Notification: Performance of Causalize: time 0.001386/0.01581, allocations: 1.48 MB / 340.7 MB, free: 5.367 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005706/0.01639, allocations: 0.572 MB / 341.3 MB, free: 4.746 MB / 286.1 MB Notification: Performance of Initialization: time 6.11e-07/0.0164, allocations: 0.5625 kB / 341.3 MB, free: 4.746 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004898/0.01689, allocations: 0.5769 MB / 341.9 MB, free: 4.121 MB / 286.1 MB Notification: Performance of Categorize: time 1.593e-05/0.01692, allocations: 7.984 kB / 341.9 MB, free: 4.113 MB / 286.1 MB Notification: Performance of Solve: time 0.0001657/0.01709, allocations: 113.8 kB / 342 MB, free: 4.004 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0004626/0.01756, allocations: 498.8 kB / 342.5 MB, free: 3.48 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 4.263e-05/0.01761, allocations: 31.25 kB / 342.5 MB, free: 3.457 MB / 286.1 MB Notification: Performance of SimCode: time 0.001342/0.01896, allocations: 1.729 MB / 344.2 MB, free: 1.707 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.