Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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.WaterIF97_pT,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.0009839/0.0009839, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.302/1.302, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2145/0.2145, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 69.64 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1131, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.041/0.1542, allocations: 39.03 MB / 0.4965 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2713/0.4256, allocations: 20.14 MB / 0.5162 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008554/0.4265, allocations: 20.28 kB / 0.5162 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.4277, allocations: 438.3 kB / 0.5166 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01634/0.4441, allocations: 5.118 MB / 0.5216 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006682/0.4507, allocations: 2.578 MB / 0.5241 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002711/0.4535, allocations: 1.964 MB / 0.526 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006816/0.4542, allocations: 481.4 kB / 0.5265 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008866/0.463, allocations: 4.142 MB / 0.5305 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01056/0.4736, allocations: 5.417 MB / 0.5358 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002846/0.474, allocations: 68.62 kB / 0.5359 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01257/0.4865, allocations: 7.087 MB / 0.5428 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005145/0.4871, allocations: 273.8 kB / 0.5431 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009007/0.488, allocations: 444.2 kB / 0.5435 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01381/0.5018, allocations: 4.967 MB / 0.5483 GB, free: 13.54 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.5019, allocations: 0 / 0.5483 GB, free: 13.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.5019, allocations: 0 / 0.5483 GB, free: 13.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.5019, allocations: 0 / 0.5483 GB, free: 13.54 MB / 398.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.003934/0.5058, allocations: 1.626 MB / 0.5499 GB, free: 11.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.5059, allocations: 8.031 kB / 0.5499 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001385/0.5061, allocations: 113.6 kB / 0.55 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001415/0.5075, allocations: 219.8 kB / 0.5503 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008996/0.5084, allocations: 0.5441 MB / 0.5508 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.5085, allocations: 109.5 kB / 0.5509 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-05/0.5086, allocations: 65.27 kB / 0.5509 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.5104, allocations: 1.071 MB / 0.552 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.5104, allocations: 4 kB / 0.552 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.556e-05/0.5105, allocations: 30.66 kB / 0.552 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.474e-05/0.5106, allocations: 48.92 kB / 0.5521 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.5122, allocations: 0.8155 MB / 0.5529 GB, free: 8.73 MB / 398.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.005742/0.5179, allocations: 5.571 MB / 0.5583 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.5191, allocations: 0.5304 MB / 0.5588 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003046/0.5194, allocations: 218.4 kB / 0.559 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09794/0.6174, allocations: 47.46 MB / 0.6054 GB, free: 13.01 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.55e-05/0.6174, allocations: 46.5 kB / 0.6054 GB, free: 12.95 MB / 462.1 MB Notification: Performance of pre-optimization done (n=39): time 2.595e-06/0.6175, allocations: 0 / 0.6054 GB, free: 12.95 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.006247/0.6237, allocations: 2.123 MB / 0.6075 GB, free: 10.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.898e-05/0.6238, allocations: 195.9 kB / 0.6077 GB, free: 10.54 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007905/0.6246, allocations: 0.6406 MB / 0.6083 GB, free: 9.895 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/0.6247, allocations: 37.7 kB / 0.6083 GB, free: 9.852 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002824/0.625, allocations: 396.1 kB / 0.6087 GB, free: 9.465 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.6251, allocations: 169.5 kB / 0.6089 GB, free: 9.301 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/0.6253, allocations: 158.5 kB / 0.609 GB, free: 9.141 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.6255, allocations: 378.8 kB / 0.6094 GB, free: 8.762 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.6259, allocations: 231.2 kB / 0.6096 GB, free: 8.535 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006758/0.6266, allocations: 0.5939 MB / 0.6102 GB, free: 7.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.6277, allocations: 0.86 MB / 0.611 GB, free: 6.746 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.6277, allocations: 4 kB / 0.611 GB, free: 6.742 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001412/0.6291, allocations: 0.8997 MB / 0.6119 GB, free: 5.832 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/0.6292, allocations: 12 kB / 0.6119 GB, free: 5.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.322e-05/0.6292, allocations: 12 kB / 0.6119 GB, free: 5.809 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00319/0.6324, allocations: 269 kB / 0.6122 GB, free: 5.543 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.6336, allocations: 287.5 kB / 0.6125 GB, free: 5.262 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/0.6353, allocations: 2.113 MB / 0.6145 GB, free: 2.988 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005019/0.6358, allocations: 31.98 kB / 0.6146 GB, free: 2.957 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.416e-05/0.6359, allocations: 40.09 kB / 0.6146 GB, free: 2.918 MB / 462.1 MB 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.0004124/0.6363, allocations: 281.8 kB / 0.6149 GB, free: 2.637 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.6364, allocations: 75.16 kB / 0.6149 GB, free: 2.562 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002326/0.6388, allocations: 2.002 MB / 0.6169 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.371e-05/0.6388, allocations: 27.91 kB / 0.6169 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.6388, allocations: 4 kB / 0.6169 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.6388, allocations: 11.98 kB / 0.6169 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003205/0.6421, allocations: 2.991 MB / 0.6199 GB, free: 13.45 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.6421, allocations: 0 / 0.6199 GB, free: 13.45 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009/0.643, allocations: 183.8 kB / 0.62 GB, free: 13.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001709/0.6447, allocations: 303.8 kB / 0.6203 GB, free: 12.97 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.246e-05/0.6447, allocations: 16 kB / 0.6203 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.6463, allocations: 2.176 MB / 0.6225 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.6463, allocations: 4.125 kB / 0.6225 GB, free: 10.61 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002056/0.6484, allocations: 1.944 MB / 0.6244 GB, free: 8.648 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002806/0.6487, allocations: 239.5 kB / 0.6246 GB, free: 8.395 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.6488, allocations: 31.69 kB / 0.6246 GB, free: 8.363 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003955/0.6492, allocations: 12 kB / 0.6246 GB, free: 8.352 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.758e-05/0.6493, allocations: 36.45 kB / 0.6247 GB, free: 8.312 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-05/0.6493, allocations: 19.98 kB / 0.6247 GB, free: 8.293 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0006676/0.65, allocations: 0.5693 MB / 0.6253 GB, free: 7.734 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.65, allocations: 0 / 0.6253 GB, free: 7.734 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002856/0.6529, allocations: 1.089 MB / 0.6263 GB, free: 6.645 MB / 478.1 MB 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.006858/0.6597, allocations: 3.595 MB / 0.6298 GB, free: 3.121 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002773/0.6625, allocations: 0.9988 MB / 0.6308 GB, free: 2.125 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.6625, allocations: 3.938 kB / 0.6308 GB, free: 2.121 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.6638, allocations: 0.6477 MB / 0.6314 GB, free: 1.473 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002429/0.6662, allocations: 400 kB / 0.6318 GB, free: 1.098 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01533/0.6816, allocations: 8.572 MB / 0.6402 GB, free: 8.051 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007612/0.6824, allocations: 1.101 MB / 0.6413 GB, free: 6.922 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009934/0.6834, allocations: 342.2 kB / 0.6416 GB, free: 6.582 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004649/0.6839, allocations: 379.3 kB / 0.642 GB, free: 6.211 MB / 494.1 MB Notification: Performance of SimCode: time 1.252e-06/0.6839, allocations: 4 kB / 0.642 GB, free: 6.207 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0995/0.7834, allocations: 55.35 MB / 0.696 GB, free: 15.11 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.73/15.51, allocations: 20.16 kB / 0.696 GB, free: 15.09 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat","/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_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches