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.0014/0.0014, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2146/0.2146, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 67.89 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.335, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.04044/0.3755, allocations: 39.17 MB / 0.5688 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02348/0.399, allocations: 20.18 MB / 0.5885 GB, free: 6.273 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.4004, allocations: 19.88 kB / 0.5885 GB, free: 6.254 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001354/0.4018, allocations: 437.3 kB / 0.5889 GB, free: 5.824 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01417/0.4161, allocations: 5.146 MB / 0.594 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007306/0.4234, allocations: 2.58 MB / 0.5965 GB, free: 14.1 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002525/0.4259, allocations: 1.997 MB / 0.5984 GB, free: 12.09 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007699/0.4267, allocations: 0.4975 MB / 0.5989 GB, free: 11.58 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01013/0.4369, allocations: 4.18 MB / 0.603 GB, free: 7.344 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.011/0.4479, allocations: 5.428 MB / 0.6083 GB, free: 1.832 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002331/0.4482, allocations: 72 kB / 0.6084 GB, free: 1.762 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01352/0.4617, allocations: 7.387 MB / 0.6156 GB, free: 10.37 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004944/0.4622, allocations: 295.2 kB / 0.6159 GB, free: 10.08 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000662/0.4629, allocations: 457.9 kB / 0.6163 GB, free: 9.629 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01466/0.4776, allocations: 5.136 MB / 0.6213 GB, free: 4.48 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.4776, allocations: 3.984 kB / 0.6213 GB, free: 4.477 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.4776, allocations: 0 / 0.6213 GB, free: 4.477 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.4777, allocations: 0 / 0.6213 GB, free: 4.477 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.004575/0.4823, allocations: 1.71 MB / 0.623 GB, free: 2.711 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.4823, allocations: 12.03 kB / 0.623 GB, free: 2.699 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001428/0.4825, allocations: 110.7 kB / 0.6231 GB, free: 2.582 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/0.4846, allocations: 308.1 kB / 0.6234 GB, free: 2.281 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009339/0.4855, allocations: 0.5915 MB / 0.624 GB, free: 1.648 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-05/0.4857, allocations: 105.3 kB / 0.6241 GB, free: 1.531 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.841e-05/0.4858, allocations: 67.91 kB / 0.6241 GB, free: 1.465 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002263/0.488, allocations: 1.154 MB / 0.6253 GB, free: 216 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.4881, allocations: 7.938 kB / 0.6253 GB, free: 208 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.321e-05/0.4882, allocations: 35.98 kB / 0.6253 GB, free: 172 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.027e-05/0.4882, allocations: 45.28 kB / 0.6254 GB, free: 128 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.4899, allocations: 0.8479 MB / 0.6262 GB, free: 15.28 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.006016/0.496, allocations: 5.494 MB / 0.6315 GB, free: 9.406 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.4972, allocations: 0.583 MB / 0.6321 GB, free: 8.805 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003452/0.4976, allocations: 225.6 kB / 0.6323 GB, free: 8.578 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1006/0.5982, allocations: 51.54 MB / 0.6827 GB, free: 14.68 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.224e-05/0.5983, allocations: 46.5 kB / 0.6827 GB, free: 14.62 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 2.184e-06/0.5983, allocations: 0 / 0.6827 GB, free: 14.62 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.005221/0.6035, allocations: 1.938 MB / 0.6846 GB, free: 12.63 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.445e-05/0.6036, allocations: 170.1 kB / 0.6848 GB, free: 12.43 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000726/0.6043, allocations: 0.6173 MB / 0.6854 GB, free: 11.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/0.6044, allocations: 33.7 kB / 0.6854 GB, free: 11.76 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002559/0.6046, allocations: 404.2 kB / 0.6858 GB, free: 11.36 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.6048, allocations: 182.5 kB / 0.686 GB, free: 11.18 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001986/0.605, allocations: 158.6 kB / 0.6861 GB, free: 11.02 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.6051, allocations: 374.8 kB / 0.6865 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003643/0.6055, allocations: 221.9 kB / 0.6867 GB, free: 10.43 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005787/0.6061, allocations: 0.5757 MB / 0.6872 GB, free: 9.688 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009785/0.6071, allocations: 0.8368 MB / 0.6881 GB, free: 8.699 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.6071, allocations: 4 kB / 0.6881 GB, free: 8.695 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001341/0.6085, allocations: 0.8757 MB / 0.6889 GB, free: 7.809 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.6085, allocations: 12.03 kB / 0.6889 GB, free: 7.797 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.6085, allocations: 12 kB / 0.6889 GB, free: 7.785 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002619/0.6088, allocations: 64.81 kB / 0.689 GB, free: 7.719 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.61, allocations: 279.6 kB / 0.6893 GB, free: 7.445 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.6114, allocations: 2.076 MB / 0.6913 GB, free: 5.211 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000482/0.6119, allocations: 28 kB / 0.6913 GB, free: 5.184 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.08e-05/0.612, allocations: 43.98 kB / 0.6914 GB, free: 5.141 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.0003711/0.6124, allocations: 273.5 kB / 0.6916 GB, free: 4.863 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.6125, allocations: 83.61 kB / 0.6917 GB, free: 4.781 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002297/0.6148, allocations: 2.205 MB / 0.6939 GB, free: 2.562 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.98e-05/0.6149, allocations: 31.89 kB / 0.6939 GB, free: 2.531 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.6149, allocations: 4 kB / 0.6939 GB, free: 2.527 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.6149, allocations: 3.984 kB / 0.6939 GB, free: 2.523 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003576/0.6185, allocations: 3.292 MB / 0.6971 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.6185, allocations: 0 / 0.6971 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000917/0.6194, allocations: 191.7 kB / 0.6973 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003363/0.6198, allocations: 88.73 kB / 0.6974 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-05/0.6198, allocations: 8 kB / 0.6974 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/0.6212, allocations: 2.098 MB / 0.6994 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.6212, allocations: 4.031 kB / 0.6994 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/0.6235, allocations: 1.991 MB / 0.7014 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005016/0.6241, allocations: 252 kB / 0.7016 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001883/0.6243, allocations: 23.84 kB / 0.7017 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006635/0.6249, allocations: 35.91 kB / 0.7017 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.6251, allocations: 32.39 kB / 0.7017 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.707e-05/0.6251, allocations: 23.98 kB / 0.7017 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000813/0.626, allocations: 0.5108 MB / 0.7022 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.21e-07/0.626, allocations: 0 / 0.7022 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003334/0.6293, allocations: 1.1 MB / 0.7033 GB, free: 8.605 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.007615/0.6369, allocations: 3.676 MB / 0.7069 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001965/0.6389, allocations: 0.9318 MB / 0.7078 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.639, allocations: 4 kB / 0.7078 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001242/0.6402, allocations: 0.6795 MB / 0.7085 GB, free: 3.297 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/0.6423, allocations: 385.8 kB / 0.7088 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.6533, allocations: 7.987 MB / 0.7166 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007055/0.6541, allocations: 1.113 MB / 0.7177 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008562/0.6549, allocations: 456.8 kB / 0.7182 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004438/0.6554, allocations: 398.1 kB / 0.7185 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of SimCode: time 6.52e-07/0.6554, allocations: 0 / 0.7185 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3408/0.9962, allocations: 56.44 MB / 0.7737 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.07/16.06, allocations: 6.484 kB / 0.7737 GB, free: 152.7 MB / 0.5762 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