Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.00122/0.001221, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2076/0.2076, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 66.38 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1178, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater): time 0.02109/0.139, allocations: 16.42 MB / 485.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007791/0.1468, allocations: 5.461 MB / 491.2 MB, free: 8.305 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00079/0.1476, allocations: 19.88 kB / 491.3 MB, free: 8.285 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001058/0.1487, allocations: 318 kB / 491.6 MB, free: 7.973 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002545/0.1513, allocations: 0.8238 MB / 492.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003019/0.1544, allocations: 1.008 MB / 493.4 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00285/0.1572, allocations: 1.778 MB / 495.2 MB, free: 4.363 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001072/0.1583, allocations: 461.3 kB / 495.6 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001894/0.1602, allocations: 0.7435 MB / 496.4 MB, free: 3.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001258/0.1615, allocations: 0.6072 MB / 497 MB, free: 2.551 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003423/0.1619, allocations: 63.98 kB / 497.1 MB, free: 2.488 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001373/0.1633, allocations: 339.5 kB / 497.4 MB, free: 2.156 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000516/0.1638, allocations: 275.2 kB / 497.7 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009124/0.1647, allocations: 394.2 kB / 498 MB, free: 1.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002166/0.1669, allocations: 1.102 MB / 499.1 MB, free: 404 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1669, allocations: 0 / 499.1 MB, free: 404 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1669, allocations: 0 / 499.1 MB, free: 404 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.872e-05/0.167, allocations: 0 / 499.1 MB, free: 404 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002778/0.1698, allocations: 1.044 MB / 0.4885 GB, free: 15.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.1698, allocations: 8.031 kB / 0.4885 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.17, allocations: 98.7 kB / 0.4886 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003924/0.1704, allocations: 91.98 kB / 0.4886 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008341/0.1712, allocations: 0.5093 MB / 0.4891 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.1714, allocations: 105 kB / 0.4892 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.387e-05/0.1715, allocations: 56.11 kB / 0.4893 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.1728, allocations: 0.8268 MB / 0.4901 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.009e-05/0.1728, allocations: 11.84 kB / 0.4901 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.507e-05/0.1729, allocations: 27.98 kB / 0.4901 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.297e-05/0.173, allocations: 44.95 kB / 0.4902 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.174, allocations: 0.6399 MB / 0.4908 GB, free: 12.75 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004866/0.1789, allocations: 4.344 MB / 0.4951 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006732/0.1796, allocations: 341.5 kB / 0.4954 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.1799, allocations: 177.3 kB / 0.4956 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002019/0.1819, allocations: 1.702 MB / 0.4972 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.182, allocations: 38.56 kB / 0.4972 GB, free: 5.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.704e-06/0.182, allocations: 0 / 0.4972 GB, free: 5.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.003549/0.1855, allocations: 1.406 MB / 0.4986 GB, free: 4.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.889e-05/0.1856, allocations: 136.5 kB / 0.4988 GB, free: 3.949 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007782/0.1864, allocations: 0.6289 MB / 0.4994 GB, free: 3.312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.462e-05/0.1865, allocations: 33.7 kB / 0.4994 GB, free: 3.273 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/0.1868, allocations: 398.3 kB / 0.4998 GB, free: 2.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.762e-05/0.1869, allocations: 130.2 kB / 0.4999 GB, free: 2.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001943/0.1871, allocations: 150.5 kB / 0.5 GB, free: 2.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1872, allocations: 378.8 kB / 0.5004 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003276/0.1876, allocations: 193.8 kB / 0.5006 GB, free: 2.031 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005404/0.1881, allocations: 0.5481 MB / 0.5011 GB, free: 1.309 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009498/0.1891, allocations: 0.7804 MB / 0.5019 GB, free: 372 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/0.1891, allocations: 7.938 kB / 0.5019 GB, free: 364 kB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.2186/0.4077, allocations: 0.8205 MB / 0.5027 GB, free: 50.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.4078, allocations: 12.75 kB / 0.5027 GB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.4078, allocations: 12.91 kB / 0.5027 GB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003811/0.4082, allocations: 97.12 kB / 0.5028 GB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006398/0.4088, allocations: 179.8 kB / 0.503 GB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004532/0.4093, allocations: 0.675 MB / 0.5036 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004463/0.4097, allocations: 29.83 kB / 0.5037 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.367e-05/0.4098, allocations: 40.91 kB / 0.5037 GB, free: 50.34 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003195/0.4101, allocations: 257.1 kB / 0.504 GB, free: 50.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.4102, allocations: 64.42 kB / 0.504 GB, free: 50.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008097/0.4111, allocations: 0.5067 MB / 0.5045 GB, free: 50.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.4111, allocations: 3.562 kB / 0.5045 GB, free: 50.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4111, allocations: 2.484 kB / 0.5045 GB, free: 50.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.4111, allocations: 1.453 kB / 0.5045 GB, free: 50.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.4127, allocations: 1.216 MB / 0.5057 GB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.4127, allocations: 4.391 kB / 0.5057 GB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.413, allocations: 74.95 kB / 0.5058 GB, free: 49.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000142/0.4132, allocations: 45.83 kB / 0.5058 GB, free: 49.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.4132, allocations: 14.52 kB / 0.5058 GB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002196/0.4134, allocations: 0.5574 MB / 0.5064 GB, free: 49.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.4134, allocations: 4.188 kB / 0.5064 GB, free: 49.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008092/0.4142, allocations: 0.7388 MB / 0.5071 GB, free: 48.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001816/0.4144, allocations: 191.9 kB / 0.5073 GB, free: 48.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.814e-05/0.4145, allocations: 11.44 kB / 0.5073 GB, free: 48.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003504/0.4149, allocations: 14.98 kB / 0.5073 GB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.4149, allocations: 32.59 kB / 0.5074 GB, free: 48.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.672e-05/0.415, allocations: 23.38 kB / 0.5074 GB, free: 48.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004757/0.4155, allocations: 477.2 kB / 0.5078 GB, free: 48.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4155, allocations: 0 / 0.5078 GB, free: 48.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006823/0.4162, allocations: 200.6 kB / 0.508 GB, free: 48.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001287/0.4174, allocations: 1.405 MB / 0.5094 GB, free: 47.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008907/0.4184, allocations: 0.5381 MB / 0.5099 GB, free: 47.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4184, allocations: 1.344 kB / 0.5099 GB, free: 47.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003029/0.4187, allocations: 181.5 kB / 0.5101 GB, free: 47.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.4203, allocations: 361.2 kB / 0.5104 GB, free: 46.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007354/0.4276, allocations: 6.546 MB / 0.5168 GB, free: 42.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005118/0.4282, allocations: 0.9356 MB / 0.5177 GB, free: 42.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000831/0.429, allocations: 213 kB / 0.5179 GB, free: 42.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.4293, allocations: 234.5 kB / 0.5182 GB, free: 41.84 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4293, allocations: 0 / 0.5182 GB, free: 41.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1672/0.5965, allocations: 20.36 MB / 0.5381 GB, free: 27.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.44, allocations: 8.156 kB / 0.5381 GB, free: 27.42 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/ConstantPropertyLiquidWater/ConstantPropertyLiquidWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches