Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_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.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_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.001471/0.001471, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001736/0.001737, allocations: 199.8 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, 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.2194/0.2194, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 72.16 kB / 480.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.383/0.3845, allocations: 62.42 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.0459/0.4304, allocations: 44.11 MB / 0.5736 GB, free: 5.543 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005941/0.4364, allocations: 4.374 MB / 0.5779 GB, free: 1.152 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006465/0.4371, allocations: 19.88 kB / 0.5779 GB, free: 1.133 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009198/0.438, allocations: 322 kB / 0.5782 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001948/0.44, allocations: 0.8744 MB / 0.579 GB, free: 15.94 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002368/0.4424, allocations: 0.8963 MB / 0.5799 GB, free: 15.05 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002294/0.4447, allocations: 1.797 MB / 0.5817 GB, free: 13.24 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006669/0.4454, allocations: 461.4 kB / 0.5821 GB, free: 12.79 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.111/0.5564, allocations: 44.57 MB / 0.6256 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01857/0.5751, allocations: 7.967 MB / 0.6334 GB, free: 7.664 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000328/0.5754, allocations: 60 kB / 0.6335 GB, free: 7.605 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02725/0.6027, allocations: 10.69 MB / 0.6439 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005122/0.6033, allocations: 255.3 kB / 0.6442 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000778/0.6041, allocations: 394.2 kB / 0.6445 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002167/0.6062, allocations: 1.09 MB / 0.6456 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.6063, allocations: 0 / 0.6456 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.673e-06/0.6063, allocations: 0 / 0.6456 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.044e-05/0.6063, allocations: 0 / 0.6456 GB, free: 11.05 MB / 0.4981 GB 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.002692/0.609, allocations: 1.074 MB / 0.6467 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.6091, allocations: 8.031 kB / 0.6467 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001652/0.6092, allocations: 98.69 kB / 0.6468 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003908/0.6096, allocations: 96.45 kB / 0.6469 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009422/0.6106, allocations: 0.5331 MB / 0.6474 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.6107, allocations: 104.9 kB / 0.6475 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-05/0.6108, allocations: 51.94 kB / 0.6475 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.6121, allocations: 0.8175 MB / 0.6483 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.6121, allocations: 7.938 kB / 0.6483 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-05/0.6122, allocations: 20 kB / 0.6483 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.723e-05/0.6122, allocations: 40.97 kB / 0.6484 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.6133, allocations: 0.6439 MB / 0.649 GB, free: 7.379 MB / 0.4981 GB 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.004848/0.6182, allocations: 4.225 MB / 0.6531 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008588/0.6191, allocations: 413.4 kB / 0.6535 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003281/0.6194, allocations: 213.3 kB / 0.6537 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004725/0.6199, allocations: 0.4989 MB / 0.6542 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.6199, allocations: 38.89 kB / 0.6543 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=40): time 3.247e-06/0.6199, allocations: 7.984 kB / 0.6543 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.003234/0.6232, allocations: 1.53 MB / 0.6558 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/0.6233, allocations: 136.5 kB / 0.6559 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006993/0.624, allocations: 0.5692 MB / 0.6565 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.367e-05/0.6241, allocations: 37.7 kB / 0.6565 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002974/0.6244, allocations: 363.9 kB / 0.6568 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.6245, allocations: 174.5 kB / 0.657 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/0.6247, allocations: 138.6 kB / 0.6571 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.6249, allocations: 382.7 kB / 0.6575 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003731/0.6253, allocations: 221.9 kB / 0.6577 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005968/0.6259, allocations: 0.5201 MB / 0.6582 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.6269, allocations: 0.7796 MB / 0.659 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.627, allocations: 4 kB / 0.659 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001727/0.6287, allocations: 0.9456 MB / 0.6599 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.6287, allocations: 10.19 kB / 0.6599 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.6287, allocations: 16.16 kB / 0.6599 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/0.6299, allocations: 256.6 kB / 0.6602 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004215/0.6303, allocations: 131.8 kB / 0.6603 GB, free: 11 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009434/0.6313, allocations: 0.8591 MB / 0.6611 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/0.6319, allocations: 32.05 kB / 0.6612 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.074e-05/0.6319, allocations: 36 kB / 0.6612 GB, free: 10.05 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (73): * Single equations (assignments): 72 * 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 {(2,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003767/0.6323, allocations: 241.5 kB / 0.6614 GB, free: 9.809 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.6325, allocations: 71.56 kB / 0.6615 GB, free: 9.738 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.634, allocations: 0.7152 MB / 0.6622 GB, free: 9.02 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.634, allocations: 4 kB / 0.6622 GB, free: 9.016 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.634, allocations: 0 / 0.6622 GB, free: 9.016 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.634, allocations: 3.984 kB / 0.6622 GB, free: 9.012 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00227/0.6363, allocations: 1.404 MB / 0.6636 GB, free: 7.527 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.6363, allocations: 0 / 0.6636 GB, free: 7.527 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009347/0.6373, allocations: 192 kB / 0.6638 GB, free: 7.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002398/0.6375, allocations: 56.78 kB / 0.6638 GB, free: 7.281 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.731e-05/0.6376, allocations: 16 kB / 0.6638 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002448/0.64, allocations: 2.987 MB / 0.6668 GB, free: 4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.6401, allocations: 4.031 kB / 0.6668 GB, free: 3.996 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.6416, allocations: 1.001 MB / 0.6677 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002784/0.6419, allocations: 204.6 kB / 0.6679 GB, free: 2.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.642, allocations: 12 kB / 0.6679 GB, free: 2.723 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004008/0.6424, allocations: 23.92 kB / 0.668 GB, free: 2.699 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.608e-05/0.6425, allocations: 39.83 kB / 0.668 GB, free: 2.66 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.88e-05/0.6426, allocations: 19.98 kB / 0.668 GB, free: 2.641 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005196/0.6431, allocations: 427.1 kB / 0.6684 GB, free: 2.219 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6431, allocations: 0 / 0.6684 GB, free: 2.219 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0008048/0.6439, allocations: 203.9 kB / 0.6686 GB, free: 2.02 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002159/0.6461, allocations: 1.676 MB / 0.6703 GB, free: 304 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00119/0.6473, allocations: 0.6049 MB / 0.6708 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.6473, allocations: 0 / 0.6708 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.6484, allocations: 494 kB / 0.6713 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/0.65, allocations: 374.2 kB / 0.6717 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00949/0.6595, allocations: 6.561 MB / 0.6781 GB, free: 7.898 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/0.6601, allocations: 0.9346 MB / 0.679 GB, free: 6.934 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006368/0.6607, allocations: 212.6 kB / 0.6792 GB, free: 6.738 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003264/0.6611, allocations: 235.3 kB / 0.6794 GB, free: 6.508 MB / 0.5294 GB Notification: Performance of SimCode: time 6.11e-07/0.6611, allocations: 0 / 0.6794 GB, free: 6.508 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04982/0.7109, allocations: 22.15 MB / 0.7011 GB, free: 0.6641 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/13.08, allocations: 15.25 kB / 0.7011 GB, free: 0.6562 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_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_LinearFluid_LinearWater_pT.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearWater_pT/LinearWater_pT.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_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