Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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.WaterIF97_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001558/0.001558, allocations: 118.8 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001909/0.001909, allocations: 202 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.207/0.207, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 75.88 kB / 480.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3339, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.04461/0.3785, allocations: 39.19 MB / 0.5688 GB, free: 10.46 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0262/0.4048, allocations: 20.17 MB / 0.5885 GB, free: 6.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.4058, allocations: 19.88 kB / 0.5885 GB, free: 6.211 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001474/0.4074, allocations: 441.3 kB / 0.5889 GB, free: 5.777 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01519/0.4226, allocations: 5.151 MB / 0.594 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007828/0.4305, allocations: 2.573 MB / 0.5965 GB, free: 14.05 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00284/0.4333, allocations: 1.965 MB / 0.5984 GB, free: 12.08 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009867/0.4343, allocations: 493.5 kB / 0.5989 GB, free: 11.58 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01007/0.4444, allocations: 4.156 MB / 0.6029 GB, free: 7.371 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01231/0.4568, allocations: 5.428 MB / 0.6082 GB, free: 1.859 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000351/0.4571, allocations: 68 kB / 0.6083 GB, free: 1.793 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01536/0.4725, allocations: 7.247 MB / 0.6154 GB, free: 10.54 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006107/0.4732, allocations: 275.2 kB / 0.6156 GB, free: 10.27 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009414/0.4741, allocations: 438.1 kB / 0.6161 GB, free: 9.84 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.4858, allocations: 4.988 MB / 0.6209 GB, free: 4.84 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4859, allocations: 0 / 0.6209 GB, free: 4.84 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4859, allocations: 0 / 0.6209 GB, free: 4.84 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.822e-05/0.4859, allocations: 0 / 0.6209 GB, free: 4.84 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.00464/0.4906, allocations: 1.679 MB / 0.6226 GB, free: 3.105 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.4906, allocations: 12.03 kB / 0.6226 GB, free: 3.094 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001885/0.4908, allocations: 114.7 kB / 0.6227 GB, free: 2.973 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001589/0.4924, allocations: 216.3 kB / 0.6229 GB, free: 2.762 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.4935, allocations: 0.5759 MB / 0.6235 GB, free: 2.145 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.4937, allocations: 109.3 kB / 0.6236 GB, free: 2.023 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.4938, allocations: 63.88 kB / 0.6236 GB, free: 1.961 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001967/0.4958, allocations: 1.075 MB / 0.6247 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.4958, allocations: 3.938 kB / 0.6247 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.619e-05/0.4959, allocations: 32 kB / 0.6247 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.975e-05/0.496, allocations: 44.98 kB / 0.6247 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0017/0.4977, allocations: 0.8193 MB / 0.6255 GB, free: 15.88 MB / 494.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.006185/0.5039, allocations: 5.563 MB / 0.631 GB, free: 9.953 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.5051, allocations: 0.5297 MB / 0.6315 GB, free: 9.398 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003481/0.5055, allocations: 218.4 kB / 0.6317 GB, free: 9.176 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0945/0.6, allocations: 52.8 MB / 0.6833 GB, free: 13.73 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.303e-05/0.6001, allocations: 42.55 kB / 0.6833 GB, free: 13.68 MB / 0.545 GB Notification: Performance of pre-optimization done (n=39): time 2.325e-06/0.6001, allocations: 0 / 0.6833 GB, free: 13.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=44): time 0.006486/0.6066, allocations: 2.154 MB / 0.6854 GB, free: 11.46 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.6067, allocations: 195.8 kB / 0.6856 GB, free: 11.23 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007855/0.6075, allocations: 0.6369 MB / 0.6862 GB, free: 10.58 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.879e-05/0.6076, allocations: 37.64 kB / 0.6862 GB, free: 10.54 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/0.6079, allocations: 412.2 kB / 0.6866 GB, free: 10.13 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.608, allocations: 166.6 kB / 0.6868 GB, free: 9.969 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002171/0.6083, allocations: 158.6 kB / 0.687 GB, free: 9.809 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.6084, allocations: 386.8 kB / 0.6873 GB, free: 9.422 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003886/0.6088, allocations: 229.9 kB / 0.6875 GB, free: 9.195 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006141/0.6095, allocations: 0.5822 MB / 0.6881 GB, free: 8.441 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.6105, allocations: 0.8677 MB / 0.689 GB, free: 7.41 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.6106, allocations: 4 kB / 0.689 GB, free: 7.406 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001455/0.612, allocations: 0.8965 MB / 0.6898 GB, free: 6.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.6121, allocations: 12 kB / 0.6898 GB, free: 6.488 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.6121, allocations: 16.12 kB / 0.6899 GB, free: 6.473 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00311/0.6152, allocations: 280.4 kB / 0.6901 GB, free: 6.195 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.6164, allocations: 271.6 kB / 0.6904 GB, free: 5.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001757/0.6182, allocations: 2.134 MB / 0.6925 GB, free: 3.633 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005292/0.6187, allocations: 31.94 kB / 0.6925 GB, free: 3.602 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.129e-05/0.6188, allocations: 47.92 kB / 0.6925 GB, free: 3.555 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003796/0.6192, allocations: 273.6 kB / 0.6928 GB, free: 3.277 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.6194, allocations: 75.53 kB / 0.6929 GB, free: 3.203 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002364/0.6217, allocations: 2.007 MB / 0.6948 GB, free: 1.172 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.349e-05/0.6218, allocations: 23.97 kB / 0.6949 GB, free: 1.148 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.6218, allocations: 4 kB / 0.6949 GB, free: 1.145 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.6218, allocations: 3.984 kB / 0.6949 GB, free: 1.141 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003477/0.6253, allocations: 2.995 MB / 0.6978 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.6253, allocations: 0 / 0.6978 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008997/0.6262, allocations: 183.8 kB / 0.698 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001707/0.6279, allocations: 303.9 kB / 0.6983 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.244e-05/0.628, allocations: 12 kB / 0.6983 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.6297, allocations: 2.18 MB / 0.7004 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6297, allocations: 4 kB / 0.7004 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.6319, allocations: 1.953 MB / 0.7023 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003425/0.6323, allocations: 232.2 kB / 0.7025 GB, free: 9.008 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/0.6324, allocations: 23.84 kB / 0.7026 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004505/0.6329, allocations: 19.94 kB / 0.7026 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.705e-05/0.633, allocations: 32.39 kB / 0.7026 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.053e-05/0.633, allocations: 19.98 kB / 0.7026 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007445/0.6338, allocations: 0.5732 MB / 0.7032 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6338, allocations: 0 / 0.7032 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002943/0.6367, allocations: 1.104 MB / 0.7043 GB, free: 7.242 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0069/0.6436, allocations: 3.605 MB / 0.7078 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001903/0.6455, allocations: 0.9246 MB / 0.7087 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.6456, allocations: 4.125 kB / 0.7087 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.6468, allocations: 0.6436 MB / 0.7093 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001908/0.6487, allocations: 393.8 kB / 0.7097 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/0.6604, allocations: 8.285 MB / 0.7178 GB, free: 8.918 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007178/0.6611, allocations: 1.097 MB / 0.7189 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007502/0.6619, allocations: 346.2 kB / 0.7192 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.6623, allocations: 379.3 kB / 0.7195 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of SimCode: time 9.22e-07/0.6623, allocations: 0 / 0.7195 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3048/0.9671, allocations: 55.62 MB / 0.7739 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.86/15.83, allocations: 11.41 kB / 0.7739 GB, free: 153.3 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_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_WaterIF97_pT.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.p Variables in the result:time,volume.medium.T,volume.medium.p