Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001176/0.001176, allocations: 105.7 kB / 16.42 MB, free: 5.98 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.001152/0.001152, allocations: 191.3 kB / 17.36 MB, free: 5.566 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.253/1.253, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.035e-05/2.037e-05, allocations: 6.219 kB / 327.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.03039/0.03042, allocations: 32.57 MB / 359.8 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01611/0.04657, allocations: 15.73 MB / 375.5 MB, free: 2.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003137/0.04693, allocations: 7.938 kB / 375.5 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008292/0.04777, allocations: 262.4 kB / 375.8 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006761/0.04845, allocations: 365.9 kB / 376.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1655/0.214, allocations: 5.773 MB / 381.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001503/0.2155, allocations: 1.077 MB / 383 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002714/0.2158, allocations: 135.8 kB / 383.1 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005377/0.2212, allocations: 2.212 MB / 385.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007279/0.2219, allocations: 288 kB / 385.6 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.2221, allocations: 41.88 kB / 385.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008866/0.2309, allocations: 5.593 MB / 391.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0006217/0.2316, allocations: 0.648 MB / 391.9 MB, free: 11.03 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001786/0.2318, allocations: 386.2 kB / 392.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.2319, allocations: 79.06 kB / 392.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.529e-05/0.232, allocations: 10.97 kB / 392.4 MB, free: 10.8 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.001364/0.2333, allocations: 1.991 MB / 394.4 MB, free: 9.941 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001111/0.2334, allocations: 124.1 kB / 394.5 MB, free: 9.93 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0008861/0.2343, allocations: 1.163 MB / 395.6 MB, free: 9.816 MB / 318.1 MB Notification: Performance of simplify1: time 5.235e-05/0.2344, allocations: 70.53 kB / 395.7 MB, free: 9.816 MB / 318.1 MB Notification: Performance of Alias: time 0.001158/0.2356, allocations: 1.512 MB / 397.2 MB, free: 9.277 MB / 318.1 MB Notification: Performance of simplify2: time 5.653e-05/0.2356, allocations: 67.81 kB / 397.3 MB, free: 9.273 MB / 318.1 MB Notification: Performance of Events: time 0.0002258/0.2359, allocations: 212.2 kB / 397.5 MB, free: 9.207 MB / 318.1 MB Notification: Performance of Detect States: time 0.0003236/0.2362, allocations: 300.4 kB / 397.8 MB, free: 9.156 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003172/0.2365, allocations: 463.8 kB / 398.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of Causalize: time 0.001668/0.2382, allocations: 2.232 MB / 400.5 MB, free: 8.492 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006351/0.2388, allocations: 0.8544 MB / 401.3 MB, free: 8.383 MB / 318.1 MB Notification: Performance of Inline: time 0.0009767/0.2398, allocations: 1.258 MB / 402.6 MB, free: 7.758 MB / 318.1 MB Notification: Performance of Partitioning: time 6.44e-05/0.2399, allocations: 82.19 kB / 402.7 MB, free: 7.699 MB / 318.1 MB Notification: Performance of Cleanup: time 5.554e-05/0.24, allocations: 53.55 kB / 402.7 MB, free: 7.664 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.00261/0.2426, allocations: 3.428 MB / 406.2 MB, free: 6.113 MB / 318.1 MB Notification: Performance of Tearing: time 0.0002088/0.2428, allocations: 302.5 kB / 406.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of Initialization: time 9.62e-07/0.2428, allocations: 0 / 406.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of Tearing: time 0.0002337/0.243, allocations: 0.531 MB / 407 MB, free: 5.328 MB / 318.1 MB Notification: Performance of Categorize: time 1.769e-05/0.2431, allocations: 2.75 kB / 407 MB, free: 5.328 MB / 318.1 MB Notification: Performance of Solve: time 0.0003407/0.2434, allocations: 256.3 kB / 407.2 MB, free: 5.238 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0002815/0.2437, allocations: 459.9 kB / 407.7 MB, free: 4.93 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.0001172/0.2438, allocations: 40.17 kB / 407.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of SimCode: time 0.009635/0.2535, allocations: 5.484 MB / 413.2 MB, free: 1.438 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.