Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001366/0.001366, allocations: 107.2 kB / 16.42 MB, free: 6.504 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.001386/0.001386, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.362/1.362, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.021e-05/2.021e-05, allocations: 6.219 kB / 327.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.0316/0.03163, allocations: 32.57 MB / 359.8 MB, free: 2.609 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01765/0.04933, allocations: 15.73 MB / 375.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003579/0.04973, allocations: 7.938 kB / 375.5 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008526/0.0506, allocations: 274.4 kB / 375.8 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007085/0.05131, allocations: 354 kB / 376.1 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1938/0.2452, allocations: 5.776 MB / 381.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001548/0.2468, allocations: 1.079 MB / 383 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.247, allocations: 128 kB / 383.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005763/0.2528, allocations: 2.223 MB / 385.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003729/0.2532, allocations: 277.8 kB / 385.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.776e-05/0.2533, allocations: 45.59 kB / 385.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0104/0.2637, allocations: 5.589 MB / 391.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0005539/0.2642, allocations: 0.6514 MB / 391.9 MB, free: 11.07 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002365/0.2645, allocations: 387.1 kB / 392.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.2646, allocations: 79.75 kB / 392.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.065e-05/0.2647, allocations: 15.97 kB / 392.4 MB, free: 10.84 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.001599/0.2663, allocations: 1.987 MB / 394.4 MB, free: 9.992 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001286/0.2665, allocations: 129.1 kB / 394.5 MB, free: 9.973 MB / 318.1 MB Notification: Performance of Early Inline: time 0.001013/0.2675, allocations: 1.163 MB / 395.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of simplify1: time 6.369e-05/0.2676, allocations: 71.88 kB / 395.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of Alias: time 0.001338/0.2689, allocations: 1.508 MB / 397.2 MB, free: 9.324 MB / 318.1 MB Notification: Performance of simplify2: time 5.224e-05/0.269, allocations: 65.59 kB / 397.3 MB, free: 9.32 MB / 318.1 MB Notification: Performance of Events: time 0.0002627/0.2692, allocations: 216.8 kB / 397.5 MB, free: 9.258 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002966/0.2695, allocations: 302.7 kB / 397.8 MB, free: 9.207 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003845/0.2699, allocations: 458.8 kB / 398.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of Causalize: time 0.001949/0.2719, allocations: 2.236 MB / 400.5 MB, free: 8.543 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006977/0.2726, allocations: 0.8524 MB / 401.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of Inline: time 0.001062/0.2737, allocations: 1.244 MB / 402.6 MB, free: 7.789 MB / 318.1 MB Notification: Performance of Partitioning: time 7.202e-05/0.2737, allocations: 84.94 kB / 402.7 MB, free: 7.73 MB / 318.1 MB Notification: Performance of Cleanup: time 4.51e-05/0.2738, allocations: 55.09 kB / 402.7 MB, free: 7.695 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) -((-273.15) - volume.medium.T_degC) = properties.T ($RES_SIM_69) slice: {}; Notification: Performance of Causalize: time 0.002493/0.2763, allocations: 3.429 MB / 406.1 MB, free: 6.141 MB / 318.1 MB Notification: Performance of Tearing: time 0.0002107/0.2765, allocations: 303 kB / 406.4 MB, free: 5.871 MB / 318.1 MB Notification: Performance of Initialization: time 3.51e-07/0.2765, allocations: 0 / 406.4 MB, free: 5.871 MB / 318.1 MB Notification: Performance of Tearing: time 0.0002316/0.2768, allocations: 0.5382 MB / 407 MB, free: 5.352 MB / 318.1 MB Notification: Performance of Categorize: time 1.602e-05/0.2768, allocations: 2.469 kB / 407 MB, free: 5.352 MB / 318.1 MB Notification: Performance of Solve: time 0.0003042/0.2771, allocations: 252.3 kB / 407.2 MB, free: 5.266 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0002581/0.2774, allocations: 456.1 kB / 407.7 MB, free: 4.953 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: ........... 70 (scalar:64, 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.0001084/0.2775, allocations: 45.78 kB / 407.7 MB, free: 4.922 MB / 318.1 MB Notification: Performance of SimCode: time 0.008348/0.2858, allocations: 5.493 MB / 413.2 MB, free: 1.414 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.