Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.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.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",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.001717/0.001717, allocations: 112.7 kB / 17.78 MB, free: 5.281 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.002025/0.002025, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.551/1.551, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2605/0.2605, allocations: 44.19 MB / 336.8 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 55.91 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4612/0.4633, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2467/0.71, allocations: 177.1 MB / 0.6914 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01139/0.7215, allocations: 6.513 MB / 0.6978 GB, free: 3.824 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008025/0.7223, allocations: 19.88 kB / 0.6978 GB, free: 3.805 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.7238, allocations: 429.5 kB / 0.6982 GB, free: 3.383 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005088/0.729, allocations: 1.746 MB / 0.6999 GB, free: 1.637 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004328/0.7333, allocations: 1.519 MB / 0.7014 GB, free: 124 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002988/0.7363, allocations: 2.228 MB / 0.7036 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001319/0.7377, allocations: 0.7578 MB / 0.7043 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004126/0.7418, allocations: 1.745 MB / 0.706 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002974/0.7448, allocations: 1.574 MB / 0.7075 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.000227/0.745, allocations: 100 kB / 0.7076 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003188/0.7482, allocations: 1.345 MB / 0.709 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0007316/0.749, allocations: 0.686 MB / 0.7096 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009742/0.75, allocations: 0.7587 MB / 0.7104 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003788/0.7538, allocations: 2.613 MB / 0.7129 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.7538, allocations: 7.938 kB / 0.7129 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.933e-06/0.7538, allocations: 0 / 0.7129 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.188e-05/0.7538, allocations: 0 / 0.7129 GB, free: 4.27 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.00385/0.7577, allocations: 1.759 MB / 0.7146 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.7577, allocations: 8.031 kB / 0.7147 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002607/0.758, allocations: 180.9 kB / 0.7148 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/0.7595, allocations: 311 kB / 0.7151 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.7609, allocations: 0.7848 MB / 0.7159 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001466/0.761, allocations: 141.4 kB / 0.716 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001825/0.7612, allocations: 100 kB / 0.7161 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3069/1.068, allocations: 1.83 MB / 0.7179 GB, free: 189.5 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.238e-05/1.068, allocations: 9.719 kB / 0.7179 GB, free: 189.5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001493/1.068, allocations: 45.47 kB / 0.718 GB, free: 189.5 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001652/1.069, allocations: 94.44 kB / 0.718 GB, free: 189.5 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002991/1.072, allocations: 1.696 MB / 0.7197 GB, free: 188.9 MB / 0.5606 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.009507/1.081, allocations: 6.899 MB / 0.7264 GB, free: 184.3 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/1.082, allocations: 0.8692 MB / 0.7273 GB, free: 183.9 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006019/1.083, allocations: 458.3 kB / 0.7277 GB, free: 183.6 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/1.083, allocations: 101.3 kB / 0.7278 GB, free: 183.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/1.083, allocations: 45.22 kB / 0.7279 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 2.916e-06/1.083, allocations: 0 / 0.7279 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72): time 0.0109/1.094, allocations: 4.134 MB / 0.7319 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.56e-05/1.094, allocations: 111.8 kB / 0.732 GB, free: 181.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001749/1.096, allocations: 1.108 MB / 0.7331 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001519/1.096, allocations: 44.05 kB / 0.7331 GB, free: 180.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004634/1.097, allocations: 0.5324 MB / 0.7337 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/1.097, allocations: 270 kB / 0.7339 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004532/1.097, allocations: 211.1 kB / 0.7341 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.936e-05/1.097, allocations: 349.4 kB / 0.7344 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009489/1.098, allocations: 0.5906 MB / 0.735 GB, free: 179 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/1.099, allocations: 0.8706 MB / 0.7359 GB, free: 178.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001877/1.101, allocations: 1.448 MB / 0.7373 GB, free: 177.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/1.101, allocations: 2.344 kB / 0.7373 GB, free: 177.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003359/1.105, allocations: 2.02 MB / 0.7393 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/1.105, allocations: 7.906 kB / 0.7393 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/1.105, allocations: 10.69 kB / 0.7393 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004387/1.109, allocations: 1.341 MB / 0.7406 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006115/1.11, allocations: 144.4 kB / 0.7407 GB, free: 175.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002427/1.112, allocations: 1.93 MB / 0.7426 GB, free: 174.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009741/1.113, allocations: 44.34 kB / 0.7427 GB, free: 174.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/1.113, allocations: 65.92 kB / 0.7427 GB, free: 174.6 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (82): * Single equations (assignments): 81 * 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 {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0005657/1.114, allocations: 404.1 kB / 0.7431 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/1.114, allocations: 111.3 kB / 0.7432 GB, free: 174.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002182/1.116, allocations: 1.5 MB / 0.7447 GB, free: 172.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/1.116, allocations: 11.89 kB / 0.7447 GB, free: 172.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/1.116, allocations: 4 kB / 0.7447 GB, free: 172.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/1.116, allocations: 3.984 kB / 0.7447 GB, free: 172.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/1.12, allocations: 2.689 MB / 0.7473 GB, free: 169.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/1.12, allocations: 0 / 0.7473 GB, free: 169.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001668/1.121, allocations: 331.4 kB / 0.7476 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00019/1.122, allocations: 68.78 kB / 0.7477 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.502e-05/1.122, allocations: 43.28 kB / 0.7477 GB, free: 169.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/1.123, allocations: 3.024 MB / 0.7507 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/1.123, allocations: 3.75 kB / 0.7507 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002304/1.126, allocations: 1.908 MB / 0.7526 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004832/1.126, allocations: 336.2 kB / 0.7529 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/1.126, allocations: 27.98 kB / 0.7529 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008618/1.127, allocations: 51.89 kB / 0.753 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/1.127, allocations: 64.41 kB / 0.753 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/1.128, allocations: 67.89 kB / 0.7531 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008242/1.128, allocations: 0.7892 MB / 0.7539 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/1.128, allocations: 0 / 0.7539 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001327/1.13, allocations: 487.5 kB / 0.7543 GB, free: 162.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],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 (78): * Single equations (assignments): 76 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0041/1.134, allocations: 3.127 MB / 0.7574 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002288/1.136, allocations: 1.481 MB / 0.7588 GB, free: 157.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.136, allocations: 0.6562 kB / 0.7588 GB, free: 157.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00134/1.138, allocations: 0.8623 MB / 0.7597 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003036/1.141, allocations: 0.7586 MB / 0.7604 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/1.156, allocations: 12.98 MB / 0.7731 GB, free: 142.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005854/1.156, allocations: 1.18 MB / 0.7742 GB, free: 141.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001381/1.158, allocations: 489.2 kB / 0.7747 GB, free: 141.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006115/1.158, allocations: 447.3 kB / 0.7751 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.452e-06/1.158, allocations: 0 / 0.7751 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08633/1.245, allocations: 50.72 MB / 0.8247 GB, free: 90.33 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15/16.25, allocations: 4.375 kB / 0.8247 GB, free: 90.33 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches