Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001459/0.001459, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001704/0.001704, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2296/0.2296, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002577/0.002577, allocations: 80.5 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1293, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater): time 0.02088/0.1503, allocations: 16.54 MB / 496.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007539/0.1578, allocations: 5.467 MB / 0.4904 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008284/0.1587, allocations: 19.88 kB / 0.4904 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.1599, allocations: 314 kB / 0.4907 GB, free: 14.78 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002133/0.1621, allocations: 0.8277 MB / 0.4915 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002948/0.165, allocations: 1.007 MB / 0.4925 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002441/0.1675, allocations: 1.774 MB / 0.4942 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009359/0.1684, allocations: 465.3 kB / 0.4947 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001814/0.1703, allocations: 0.7435 MB / 0.4954 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001476/0.1718, allocations: 0.6187 MB / 0.496 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003123/0.1721, allocations: 60 kB / 0.496 GB, free: 9.281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001611/0.1737, allocations: 339.6 kB / 0.4964 GB, free: 8.949 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005374/0.1743, allocations: 267.3 kB / 0.4966 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000939/0.1752, allocations: 394.2 kB / 0.497 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002187/0.1774, allocations: 1.098 MB / 0.4981 GB, free: 7.199 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1774, allocations: 7.875 kB / 0.4981 GB, free: 7.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1774, allocations: 0 / 0.4981 GB, free: 7.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.016e-05/0.1775, allocations: 0 / 0.4981 GB, free: 7.191 MB / 382.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.00266/0.1802, allocations: 1.048 MB / 0.4991 GB, free: 6.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.1802, allocations: 12.03 kB / 0.4991 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002144/0.1804, allocations: 98.69 kB / 0.4992 GB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004686/0.1809, allocations: 88.08 kB / 0.4993 GB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.182, allocations: 0.5015 MB / 0.4998 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.1821, allocations: 104.9 kB / 0.4999 GB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.1823, allocations: 52.12 kB / 0.4999 GB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.1837, allocations: 0.8346 MB / 0.5007 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.1837, allocations: 7.938 kB / 0.5008 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.34e-05/0.1838, allocations: 27.98 kB / 0.5008 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.75e-05/0.1839, allocations: 44.97 kB / 0.5008 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.1851, allocations: 0.6399 MB / 0.5015 GB, free: 3.551 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.2613/0.4464, allocations: 4.344 MB / 0.5057 GB, free: 41.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007289/0.4472, allocations: 350.5 kB / 0.506 GB, free: 41.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003024/0.4475, allocations: 172.2 kB / 0.5062 GB, free: 41.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001697/0.4492, allocations: 1.704 MB / 0.5079 GB, free: 39.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.4492, allocations: 37.94 kB / 0.5079 GB, free: 39.78 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.724e-06/0.4492, allocations: 1.031 kB / 0.5079 GB, free: 39.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.003544/0.4528, allocations: 1.398 MB / 0.5093 GB, free: 39.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.4528, allocations: 134.3 kB / 0.5094 GB, free: 39.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008059/0.4537, allocations: 0.6304 MB / 0.51 GB, free: 38.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/0.4537, allocations: 32.8 kB / 0.51 GB, free: 38.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.4539, allocations: 395.9 kB / 0.5104 GB, free: 38.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.969e-05/0.454, allocations: 133.8 kB / 0.5105 GB, free: 38.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.4542, allocations: 145.9 kB / 0.5107 GB, free: 38.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.4543, allocations: 375.2 kB / 0.511 GB, free: 37.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003127/0.4546, allocations: 188.7 kB / 0.5112 GB, free: 37.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004536/0.4551, allocations: 0.5591 MB / 0.5118 GB, free: 37.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008186/0.4559, allocations: 0.7807 MB / 0.5125 GB, free: 36.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.4559, allocations: 6.438 kB / 0.5125 GB, free: 36.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001351/0.4573, allocations: 0.8387 MB / 0.5133 GB, free: 36.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.4573, allocations: 10.66 kB / 0.5134 GB, free: 36.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.4574, allocations: 12.66 kB / 0.5134 GB, free: 36.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000441/0.4578, allocations: 104.9 kB / 0.5135 GB, free: 36.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006601/0.4585, allocations: 175.5 kB / 0.5136 GB, free: 36.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004899/0.459, allocations: 0.6663 MB / 0.5143 GB, free: 35.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005091/0.4595, allocations: 29.89 kB / 0.5143 GB, free: 35.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.916e-05/0.4596, allocations: 41.12 kB / 0.5144 GB, free: 35.79 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.0004332/0.46, allocations: 261 kB / 0.5146 GB, free: 35.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.4601, allocations: 67.84 kB / 0.5147 GB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008433/0.461, allocations: 0.5099 MB / 0.5152 GB, free: 35.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.461, allocations: 5.469 kB / 0.5152 GB, free: 35.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.461, allocations: 0 / 0.5152 GB, free: 35.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.461, allocations: 1.031 kB / 0.5152 GB, free: 35.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/0.4627, allocations: 1.228 MB / 0.5164 GB, free: 34.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.4627, allocations: 6.516 kB / 0.5164 GB, free: 34.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002873/0.463, allocations: 72.62 kB / 0.5164 GB, free: 34.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000179/0.4632, allocations: 38.48 kB / 0.5165 GB, free: 34.56 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.4633, allocations: 16.05 kB / 0.5165 GB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002873/0.4636, allocations: 0.565 MB / 0.5171 GB, free: 34.01 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.4636, allocations: 2.562 kB / 0.5171 GB, free: 34.01 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009095/0.4645, allocations: 0.7237 MB / 0.5178 GB, free: 33.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/0.4647, allocations: 190.6 kB / 0.5179 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.826e-05/0.4649, allocations: 14.72 kB / 0.518 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003869/0.4652, allocations: 18.92 kB / 0.518 GB, free: 33.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.097e-05/0.4653, allocations: 29.62 kB / 0.518 GB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.253e-05/0.4654, allocations: 23.06 kB / 0.518 GB, free: 33.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005628/0.4659, allocations: 475.2 kB / 0.5185 GB, free: 33.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4659, allocations: 0 / 0.5185 GB, free: 33.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008927/0.4668, allocations: 210.2 kB / 0.5187 GB, free: 33.13 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.001489/0.4683, allocations: 1.404 MB / 0.5201 GB, free: 32.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.4696, allocations: 0.5171 MB / 0.5206 GB, free: 31.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.4696, allocations: 1.406 kB / 0.5206 GB, free: 31.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003595/0.47, allocations: 183 kB / 0.5207 GB, free: 31.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001803/0.4718, allocations: 370 kB / 0.5211 GB, free: 31.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009361/0.4812, allocations: 6.556 MB / 0.5275 GB, free: 27.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006038/0.4818, allocations: 0.9389 MB / 0.5284 GB, free: 26.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001079/0.4829, allocations: 213.9 kB / 0.5286 GB, free: 26.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003164/0.4833, allocations: 234.4 kB / 0.5288 GB, free: 26.59 MB / 382.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4833, allocations: 0 / 0.5288 GB, free: 26.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04131/0.5246, allocations: 20.35 MB / 0.5487 GB, free: 10.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/12, allocations: 15.19 kB / 0.5487 GB, free: 10.39 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.csv","/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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches