Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.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.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001204, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2029/0.2029, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 79.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3355, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.04574/0.3813, allocations: 39.18 MB / 0.5688 GB, free: 10.49 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02378/0.4051, allocations: 20.17 MB / 0.5885 GB, free: 6.258 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.4062, allocations: 19.88 kB / 0.5885 GB, free: 6.238 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001415/0.4076, allocations: 445.3 kB / 0.5889 GB, free: 5.801 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0155/0.4232, allocations: 5.141 MB / 0.594 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006856/0.4301, allocations: 2.58 MB / 0.5965 GB, free: 14.08 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002545/0.4326, allocations: 1.997 MB / 0.5984 GB, free: 12.07 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000923/0.4335, allocations: 0.5014 MB / 0.5989 GB, free: 11.55 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00948/0.443, allocations: 4.18 MB / 0.603 GB, free: 7.32 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01111/0.4542, allocations: 5.428 MB / 0.6083 GB, free: 1.809 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002719/0.4545, allocations: 76 kB / 0.6084 GB, free: 1.734 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01401/0.4685, allocations: 7.387 MB / 0.6156 GB, free: 10.34 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006092/0.4692, allocations: 291.2 kB / 0.6159 GB, free: 10.05 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009957/0.4702, allocations: 458 kB / 0.6163 GB, free: 9.605 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01388/0.4841, allocations: 5.14 MB / 0.6213 GB, free: 4.453 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4841, allocations: 0 / 0.6213 GB, free: 4.453 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.4841, allocations: 0 / 0.6213 GB, free: 4.453 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.755e-05/0.4842, allocations: 0 / 0.6213 GB, free: 4.453 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.004587/0.4888, allocations: 1.71 MB / 0.623 GB, free: 2.688 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.4888, allocations: 8.031 kB / 0.623 GB, free: 2.68 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.489, allocations: 118.6 kB / 0.6231 GB, free: 2.555 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002298/0.4913, allocations: 304.2 kB / 0.6234 GB, free: 2.258 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.4923, allocations: 0.5915 MB / 0.624 GB, free: 1.625 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.4924, allocations: 113.3 kB / 0.6241 GB, free: 1.5 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.4926, allocations: 55.94 kB / 0.6241 GB, free: 1.445 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/0.4949, allocations: 1.165 MB / 0.6253 GB, free: 184 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.495, allocations: 3.938 kB / 0.6253 GB, free: 180 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.548e-05/0.4951, allocations: 32 kB / 0.6253 GB, free: 148 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.488e-05/0.4951, allocations: 41.3 kB / 0.6254 GB, free: 108 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.4968, allocations: 0.844 MB / 0.6262 GB, free: 15.26 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.005714/0.5026, allocations: 5.502 MB / 0.6315 GB, free: 9.383 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.5038, allocations: 0.5824 MB / 0.6321 GB, free: 8.785 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003396/0.5041, allocations: 237.6 kB / 0.6323 GB, free: 8.547 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08848/0.5926, allocations: 51.54 MB / 0.6827 GB, free: 14.65 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.634e-05/0.5927, allocations: 42.55 kB / 0.6827 GB, free: 14.6 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 2.324e-06/0.5927, allocations: 0 / 0.6827 GB, free: 14.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.005223/0.598, allocations: 1.938 MB / 0.6846 GB, free: 12.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.911e-05/0.5981, allocations: 166.2 kB / 0.6848 GB, free: 12.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000719/0.5988, allocations: 0.6172 MB / 0.6854 GB, free: 11.77 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.391e-05/0.5989, allocations: 37.7 kB / 0.6854 GB, free: 11.73 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.5991, allocations: 404.2 kB / 0.6858 GB, free: 11.33 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.5992, allocations: 178.5 kB / 0.686 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001932/0.5994, allocations: 158.6 kB / 0.6861 GB, free: 11 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.5996, allocations: 382.8 kB / 0.6865 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000377/0.6, allocations: 225.9 kB / 0.6867 GB, free: 10.39 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005761/0.6005, allocations: 0.5679 MB / 0.6873 GB, free: 9.66 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000992/0.6016, allocations: 0.8446 MB / 0.6881 GB, free: 8.664 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.6016, allocations: 0 / 0.6881 GB, free: 8.664 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001342/0.6029, allocations: 0.8715 MB / 0.6889 GB, free: 7.781 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.6029, allocations: 8 kB / 0.6889 GB, free: 7.773 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.603, allocations: 12 kB / 0.6889 GB, free: 7.762 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002744/0.6032, allocations: 60.83 kB / 0.689 GB, free: 7.699 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.6044, allocations: 287.9 kB / 0.6893 GB, free: 7.418 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.6059, allocations: 2.072 MB / 0.6913 GB, free: 5.188 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005441/0.6065, allocations: 28 kB / 0.6913 GB, free: 5.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.498e-05/0.6066, allocations: 40 kB / 0.6914 GB, free: 5.121 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (volume.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004121/0.607, allocations: 273.6 kB / 0.6916 GB, free: 4.844 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.6072, allocations: 75.53 kB / 0.6917 GB, free: 4.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/0.6096, allocations: 2.217 MB / 0.6939 GB, free: 2.539 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.68e-05/0.6096, allocations: 35.89 kB / 0.6939 GB, free: 2.504 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.6097, allocations: 0 / 0.6939 GB, free: 2.504 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.6097, allocations: 3.984 kB / 0.6939 GB, free: 2.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00353/0.6132, allocations: 3.296 MB / 0.6971 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.6132, allocations: 4 kB / 0.6971 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008914/0.6141, allocations: 187.8 kB / 0.6973 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003371/0.6145, allocations: 96.67 kB / 0.6974 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/0.6145, allocations: 8.047 kB / 0.6974 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001455/0.616, allocations: 2.094 MB / 0.6994 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.616, allocations: 0 / 0.6994 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002158/0.6182, allocations: 1.991 MB / 0.7014 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003444/0.6185, allocations: 244 kB / 0.7016 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.6187, allocations: 31.83 kB / 0.7017 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005259/0.6192, allocations: 35.91 kB / 0.7017 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.019e-05/0.6193, allocations: 36.45 kB / 0.7017 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.175e-05/0.6193, allocations: 19.98 kB / 0.7017 GB, free: 10.19 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006205/0.62, allocations: 0.5068 MB / 0.7022 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.62, allocations: 0 / 0.7022 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003084/0.6231, allocations: 1.104 MB / 0.7033 GB, free: 8.578 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00696/0.63, allocations: 3.671 MB / 0.7069 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001828/0.6319, allocations: 0.9318 MB / 0.7078 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6319, allocations: 4.062 kB / 0.7078 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.633, allocations: 0.6755 MB / 0.7085 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.6348, allocations: 396.5 kB / 0.7089 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.6457, allocations: 7.987 MB / 0.7167 GB, free: 10.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006443/0.6464, allocations: 1.117 MB / 0.7177 GB, free: 9.355 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.0008411/0.6473, allocations: 448.3 kB / 0.7182 GB, free: 8.914 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004669/0.6478, allocations: 399.3 kB / 0.7186 GB, free: 8.523 MB / 0.5763 GB Notification: Performance of SimCode: time 6.51e-07/0.6478, allocations: 0 / 0.7186 GB, free: 8.523 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3006/0.9484, allocations: 56.44 MB / 0.7737 GB, free: 153.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/15.82, allocations: 9.625 kB / 0.7737 GB, free: 153.2 MB / 0.5763 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_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_WaterIF97OnePhase_ph.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.h,volume.medium.p Variables in the result:time,volume.medium.h,volume.medium.p