Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.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.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 108 kB / 18.42 MB, free: 4.637 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.001618/0.001618, allocations: 194.7 kB / 19.35 MB, free: 3.719 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.453/1.453, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.178e-05/3.178e-05, allocations: 3.125 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.0409/0.04094, allocations: 32.57 MB / 361.8 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01884/0.05983, allocations: 15.73 MB / 377.5 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003071/0.06019, allocations: 7.938 kB / 377.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008353/0.06104, allocations: 262.4 kB / 377.8 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006592/0.06171, allocations: 357.9 kB / 378.1 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2239/0.2857, allocations: 5.782 MB / 383.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001409/0.2872, allocations: 1.077 MB / 385 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.2874, allocations: 133 kB / 385.1 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004782/0.2922, allocations: 2.224 MB / 387.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.2925, allocations: 280.9 kB / 387.6 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.587e-05/0.2926, allocations: 41.75 kB / 387.7 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01197/0.3046, allocations: 5.591 MB / 393.2 MB, free: 11.2 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.00116/0.3058, allocations: 0.652 MB / 393.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002229/0.306, allocations: 384.8 kB / 394.3 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001843/0.3062, allocations: 82.5 kB / 394.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 0.0001084/0.3063, allocations: 5.562 kB / 394.4 MB, free: 10.79 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 (78) * Number of variables: 78 (78) Notification: Performance of Bindings: time 0.001763/0.3081, allocations: 2.061 MB / 396.4 MB, free: 9.914 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001525/0.3083, allocations: 124 kB / 396.5 MB, free: 9.898 MB / 318.1 MB Notification: Performance of Early Inline: time 0.001092/0.3094, allocations: 1.156 MB / 397.7 MB, free: 9.797 MB / 318.1 MB Notification: Performance of simplify1: time 7.306e-05/0.3094, allocations: 74.89 kB / 397.8 MB, free: 9.797 MB / 318.1 MB Notification: Performance of Alias: time 0.001655/0.3111, allocations: 1.653 MB / 399.4 MB, free: 9.211 MB / 318.1 MB Notification: Performance of simplify2: time 5.515e-05/0.3112, allocations: 66.92 kB / 399.5 MB, free: 9.211 MB / 318.1 MB Notification: Performance of Events: time 0.000253/0.3114, allocations: 210 kB / 399.7 MB, free: 9.148 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002819/0.3117, allocations: 311.7 kB / 400 MB, free: 9.09 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003263/0.3121, allocations: 448.5 kB / 400.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of Causalize: time 0.001427/0.3135, allocations: 1.621 MB / 402.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006935/0.3142, allocations: 0.8501 MB / 402.9 MB, free: 8.301 MB / 318.1 MB Notification: Performance of Inline: time 0.001082/0.3153, allocations: 1.254 MB / 404.2 MB, free: 8.039 MB / 318.1 MB Notification: Performance of Partitioning: time 7.103e-05/0.3154, allocations: 79.11 kB / 404.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of Cleanup: time 5.045e-05/0.3154, allocations: 59.42 kB / 404.3 MB, free: 7.949 MB / 318.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) volume.T_start = T_start ($RES_BND_111) slice: {}; Notification: Performance of Causalize: time 0.002827/0.3183, allocations: 3.004 MB / 407.3 MB, free: 6.859 MB / 318.1 MB Notification: Performance of Tearing: time 0.0001838/0.3184, allocations: 256.2 kB / 407.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of Initialization: time 5.71e-07/0.3185, allocations: 0 / 407.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of Tearing: time 0.0002674/0.3187, allocations: 0.5272 MB / 408.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of Categorize: time 2.203e-05/0.3188, allocations: 3.438 kB / 408.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of Solve: time 0.0003518/0.3191, allocations: 266 kB / 408.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0002768/0.3194, allocations: 451.9 kB / 408.8 MB, free: 5.699 MB / 318.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 4 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 7 * 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: ............................. 2 (2) {volume.m, volume.U} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 15 (15) {volume.medium.state.phase, volume.medium.phase, fixedMassFlowRate.medium.state.phase, fixedMassFlowRate.medium.phase, ambient.medium.state.phase, ambient.medium.phase, $SEV_8, $SEV_7[$i1], $SEV_6, $SEV_5, $SEV_4[$i1], $SEV_3, $SEV_2, $SEV_1[$i1], $SEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 49 (scalar:46, array:3, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 72 (scalar:66, array:6, 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 0.0001238/0.3195, allocations: 59.38 kB / 408.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of SimCode: time 0.009244/0.3288, allocations: 5.436 MB / 414.3 MB, free: 2.234 MB / 318.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.