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.0009646/0.0009646, allocations: 94.94 kB / 17.35 MB, free: 6.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.001197/0.001197, allocations: 168.5 kB / 18.25 MB, free: 5.508 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.335/1.335, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1805/0.1805, allocations: 44.25 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003118, allocations: 8 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1074, allocations: 61.93 MB / 472.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater): time 0.01637/0.1239, allocations: 16.38 MB / 488.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007098/0.131, allocations: 5.536 MB / 494.3 MB, free: 7.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007747/0.1318, allocations: 23.81 kB / 494.3 MB, free: 7.227 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008857/0.1327, allocations: 274.5 kB / 494.6 MB, free: 6.957 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002002/0.1347, allocations: 0.7853 MB / 495.4 MB, free: 6.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002231/0.137, allocations: 0.909 MB / 496.3 MB, free: 5.266 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002435/0.1394, allocations: 2.652 MB / 498.9 MB, free: 2.609 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006605/0.1401, allocations: 405.2 kB / 499.3 MB, free: 2.207 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.1413, allocations: 0.6459 MB / 500 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009167/0.1422, allocations: 0.6344 MB / 0.4889 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.1423, allocations: 32 kB / 0.4889 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000752/0.1431, allocations: 331.5 kB / 0.4892 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002583/0.1433, allocations: 239.2 kB / 0.4894 GB, free: 340 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004319/0.1438, allocations: 396 kB / 0.4898 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001205/0.145, allocations: 1.067 MB / 0.4909 GB, free: 14.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.145, allocations: 0 / 0.4909 GB, free: 14.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.145, allocations: 4 kB / 0.4909 GB, free: 14.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.699e-05/0.1451, allocations: 0 / 0.4909 GB, free: 14.86 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.001791/0.1469, allocations: 0.8999 MB / 0.4917 GB, free: 13.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.1469, allocations: 12.03 kB / 0.4918 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001526/0.1471, allocations: 98.69 kB / 0.4919 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003504/0.1474, allocations: 91.98 kB / 0.4919 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007666/0.1482, allocations: 0.5054 MB / 0.4924 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.1483, allocations: 104.9 kB / 0.4925 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.68e-05/0.1484, allocations: 52.12 kB / 0.4926 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.1496, allocations: 0.8307 MB / 0.4934 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.1496, allocations: 7.938 kB / 0.4934 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.61e-05/0.1497, allocations: 27.98 kB / 0.4934 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-05/0.1498, allocations: 44.97 kB / 0.4935 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009642/0.1507, allocations: 0.6399 MB / 0.4941 GB, free: 11.37 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.00432/0.1551, allocations: 4.34 MB / 0.4983 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000593/0.1557, allocations: 343.9 kB / 0.4987 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.156, allocations: 173.3 kB / 0.4988 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001749/0.1577, allocations: 1.713 MB / 0.5005 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.1577, allocations: 38.56 kB / 0.5005 GB, free: 4.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.763e-06/0.1578, allocations: 0 / 0.5005 GB, free: 4.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.003314/0.1611, allocations: 1.403 MB / 0.5019 GB, free: 2.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.487e-05/0.1612, allocations: 136.5 kB / 0.502 GB, free: 2.566 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006975/0.1619, allocations: 0.6328 MB / 0.5027 GB, free: 1.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.768e-05/0.1619, allocations: 41.52 kB / 0.5027 GB, free: 1.879 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000256/0.1622, allocations: 398.3 kB / 0.5031 GB, free: 1.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.1623, allocations: 134.2 kB / 0.5032 GB, free: 1.352 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.165e-05/0.1624, allocations: 65.69 kB / 0.5033 GB, free: 1.281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1625, allocations: 374.8 kB / 0.5036 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002903/0.1628, allocations: 189.9 kB / 0.5038 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1981/0.3609, allocations: 0.5481 MB / 0.5043 GB, free: 49.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.3624, allocations: 0.7773 MB / 0.5051 GB, free: 48.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.3624, allocations: 11.28 kB / 0.5051 GB, free: 48.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001748/0.3641, allocations: 0.8225 MB / 0.5059 GB, free: 48.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.023e-05/0.3642, allocations: 10.03 kB / 0.5059 GB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.137e-05/0.3642, allocations: 12.84 kB / 0.5059 GB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004367/0.3647, allocations: 103.6 kB / 0.506 GB, free: 48.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006281/0.3653, allocations: 175.2 kB / 0.5062 GB, free: 48.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004621/0.3658, allocations: 0.6711 MB / 0.5069 GB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.3663, allocations: 37.78 kB / 0.5069 GB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.5e-05/0.3664, allocations: 39.86 kB / 0.5069 GB, free: 48.22 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.0003813/0.3667, allocations: 259.7 kB / 0.5072 GB, free: 48.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.3669, allocations: 71.28 kB / 0.5072 GB, free: 48.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000922/0.3678, allocations: 0.5061 MB / 0.5077 GB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.3678, allocations: 4.906 kB / 0.5077 GB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3678, allocations: 0 / 0.5077 GB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.3678, allocations: 5.562 kB / 0.5077 GB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001763/0.3696, allocations: 1.212 MB / 0.5089 GB, free: 47.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.822e-06/0.3696, allocations: 4.062 kB / 0.5089 GB, free: 47.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002761/0.3699, allocations: 76.47 kB / 0.509 GB, free: 47.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001569/0.3701, allocations: 43.23 kB / 0.509 GB, free: 47.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.939e-05/0.3701, allocations: 13.78 kB / 0.5091 GB, free: 47.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002499/0.3704, allocations: 0.5609 MB / 0.5096 GB, free: 47.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.3704, allocations: 4.984 kB / 0.5096 GB, free: 47.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008395/0.3712, allocations: 0.7354 MB / 0.5103 GB, free: 46.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002185/0.3715, allocations: 191.4 kB / 0.5105 GB, free: 46.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.133e-05/0.3716, allocations: 12.8 kB / 0.5105 GB, free: 46.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003981/0.372, allocations: 27.7 kB / 0.5106 GB, free: 46.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.005e-05/0.372, allocations: 30.56 kB / 0.5106 GB, free: 46.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.084e-05/0.3721, allocations: 22.08 kB / 0.5106 GB, free: 46.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005323/0.3726, allocations: 482.4 kB / 0.5111 GB, free: 46.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3726, allocations: 0 / 0.5111 GB, free: 46.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007597/0.3734, allocations: 200.9 kB / 0.5113 GB, free: 46.43 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.001376/0.3748, allocations: 1.417 MB / 0.5126 GB, free: 45.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008844/0.3757, allocations: 0.4995 MB / 0.5131 GB, free: 45.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.3757, allocations: 1 kB / 0.5131 GB, free: 45.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003063/0.376, allocations: 184.3 kB / 0.5133 GB, free: 45.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001847/0.3778, allocations: 340.6 kB / 0.5136 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007308/0.3852, allocations: 6.82 MB / 0.5203 GB, free: 40.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.3856, allocations: 0.9386 MB / 0.5212 GB, free: 39.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000745/0.3863, allocations: 204.3 kB / 0.5214 GB, free: 39.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002566/0.3866, allocations: 231.5 kB / 0.5216 GB, free: 39.76 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3866, allocations: 0 / 0.5216 GB, free: 39.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0314/0.418, allocations: 19.53 MB / 0.5407 GB, free: 25.72 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.4182, allocations: 326.7 kB / 0.541 GB, free: 25.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.275/2.693, allocations: 4.062 kB / 0.541 GB, free: 25.33 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