Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_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: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 97.2 kB / 18.01 MB, free: 5.602 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.001203/0.001203, allocations: 177.6 kB / 18.91 MB, free: 4.738 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.363/1.363, allocations: 223.3 MB / 243 MB, free: 14.27 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.1855/0.1855, allocations: 44.25 MB / 338.3 MB, free: 2.371 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003443, allocations: 11.98 kB / 411 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1164, allocations: 61.92 MB / 472.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.2932/0.4097, allocations: 45.33 MB / 0.5061 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007492/0.4172, allocations: 4.476 MB / 0.5105 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001227/0.4185, allocations: 24.53 kB / 0.5105 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009861/0.4195, allocations: 269.2 kB / 0.5108 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002617/0.4221, allocations: 0.8132 MB / 0.5116 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002713/0.4248, allocations: 0.8015 MB / 0.5123 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003885/0.4287, allocations: 2.662 MB / 0.5149 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009742/0.4297, allocations: 404.2 kB / 0.5153 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.09301/0.5228, allocations: 43.35 MB / 0.5576 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01688/0.5397, allocations: 7.966 MB / 0.5654 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002282/0.54, allocations: 36 kB / 0.5655 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02331/0.5633, allocations: 10.63 MB / 0.5758 GB, free: 292 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006359/0.564, allocations: 235.3 kB / 0.5761 GB, free: 88 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007624/0.5647, allocations: 393.7 kB / 0.5764 GB, free: 15.79 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.5658, allocations: 0.7903 MB / 0.5772 GB, free: 15.04 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.5659, allocations: 0 / 0.5772 GB, free: 15.04 MB / 430.1 MB Notification: Performance of FrontEnd: time 5.47e-06/0.5659, allocations: 0 / 0.5772 GB, free: 15.04 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.5659, allocations: 3.938 kB / 0.5772 GB, free: 15.04 MB / 430.1 MB 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.002013/0.5679, allocations: 0.9102 MB / 0.5781 GB, free: 14.08 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.568, allocations: 15.97 kB / 0.5781 GB, free: 14.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003351/0.5683, allocations: 95.92 kB / 0.5782 GB, free: 13.97 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007485/0.5691, allocations: 0.5039 MB / 0.5787 GB, free: 13.44 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.5692, allocations: 104.8 kB / 0.5788 GB, free: 13.33 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.37e-05/0.5693, allocations: 48.28 kB / 0.5788 GB, free: 13.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.5705, allocations: 0.8278 MB / 0.5797 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.5706, allocations: 3.938 kB / 0.5797 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.037e-05/0.5707, allocations: 20 kB / 0.5797 GB, free: 12.37 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.198e-05/0.5707, allocations: 36.98 kB / 0.5797 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.5718, allocations: 0.6486 MB / 0.5803 GB, free: 11.69 MB / 430.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.004901/0.5767, allocations: 4.225 MB / 0.5845 GB, free: 7.219 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008827/0.5776, allocations: 421.7 kB / 0.5849 GB, free: 6.805 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/0.5779, allocations: 205.4 kB / 0.5851 GB, free: 6.602 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000533/0.5785, allocations: 0.4983 MB / 0.5856 GB, free: 5.996 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.5785, allocations: 42.88 kB / 0.5856 GB, free: 5.945 MB / 430.1 MB Notification: Performance of pre-optimization done (n=40): time 2.084e-06/0.5785, allocations: 0 / 0.5856 GB, free: 5.945 MB / 430.1 MB Notification: Performance of matching and sorting (n=45): time 0.003265/0.5818, allocations: 1.536 MB / 0.5871 GB, free: 4.352 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.644e-05/0.5819, allocations: 136.5 kB / 0.5872 GB, free: 4.188 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006952/0.5826, allocations: 0.5616 MB / 0.5878 GB, free: 3.617 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.916e-05/0.5827, allocations: 37.7 kB / 0.5878 GB, free: 3.574 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/0.5829, allocations: 358.8 kB / 0.5882 GB, free: 3.223 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.5831, allocations: 157.5 kB / 0.5883 GB, free: 3.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.302e-05/0.5832, allocations: 65.69 kB / 0.5884 GB, free: 3 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.5833, allocations: 378.7 kB / 0.5887 GB, free: 2.621 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003727/0.5837, allocations: 221.9 kB / 0.5889 GB, free: 2.406 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005792/0.5843, allocations: 0.5242 MB / 0.5895 GB, free: 1.742 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009916/0.5853, allocations: 0.7719 MB / 0.5902 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.5853, allocations: 4 kB / 0.5902 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001804/0.5871, allocations: 0.9492 MB / 0.5911 GB, free: 15.89 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.5871, allocations: 8 kB / 0.5911 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.5872, allocations: 8 kB / 0.5912 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.5883, allocations: 268.7 kB / 0.5914 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004068/0.5887, allocations: 131.7 kB / 0.5915 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009695/0.5897, allocations: 0.8568 MB / 0.5924 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005582/0.5903, allocations: 48.78 kB / 0.5924 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.755e-05/0.5904, allocations: 36 kB / 0.5925 GB, free: 14.51 MB / 446.1 MB 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.0003671/0.5907, allocations: 250.7 kB / 0.5927 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.5909, allocations: 67.16 kB / 0.5928 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.5922, allocations: 0.715 MB / 0.5935 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.5922, allocations: 7.984 kB / 0.5935 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5922, allocations: 3.938 kB / 0.5935 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.5923, allocations: 0 / 0.5935 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002137/0.5944, allocations: 1.393 MB / 0.5948 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.5944, allocations: 11.38 kB / 0.5948 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009754/0.5954, allocations: 196 kB / 0.595 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003044/0.5957, allocations: 64.78 kB / 0.5951 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.5958, allocations: 8.047 kB / 0.5951 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002386/0.5982, allocations: 2.801 MB / 0.5978 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5982, allocations: 3.938 kB / 0.5978 GB, free: 8.652 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.5998, allocations: 0.9993 MB / 0.5988 GB, free: 7.609 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/0.6001, allocations: 204.2 kB / 0.599 GB, free: 7.391 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.103e-05/0.6002, allocations: 19.98 kB / 0.599 GB, free: 7.371 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004173/0.6006, allocations: 27.89 kB / 0.599 GB, free: 7.344 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.935e-05/0.6007, allocations: 40.09 kB / 0.5991 GB, free: 7.305 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-05/0.6008, allocations: 26.67 kB / 0.5991 GB, free: 7.281 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000528/0.6013, allocations: 419 kB / 0.5995 GB, free: 6.875 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6013, allocations: 0 / 0.5995 GB, free: 6.875 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000802/0.6021, allocations: 208 kB / 0.5997 GB, free: 6.672 MB / 446.1 MB 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.0005128/0.6026, allocations: 237.2 kB / 0.5999 GB, free: 6.453 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.6038, allocations: 0.6047 MB / 0.6005 GB, free: 5.852 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.6039, allocations: 0 / 0.6005 GB, free: 5.852 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.605, allocations: 479.5 kB / 0.601 GB, free: 5.375 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.6069, allocations: 363.3 kB / 0.6013 GB, free: 5.023 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.6095, allocations: 1.757 MB / 0.603 GB, free: 3.215 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005992/0.6101, allocations: 0.9346 MB / 0.604 GB, free: 2.254 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002111/0.6103, allocations: 67.42 kB / 0.604 GB, free: 2.188 MB / 446.1 MB Notification: Performance of SimCode: time 5.11e-07/0.6103, allocations: 4 kB / 0.604 GB, free: 2.184 MB / 446.1 MB Notification: Performance of Templates: time 0.02354/0.6339, allocations: 15.43 MB / 0.6191 GB, free: 2.863 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat","/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_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches