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.001126/0.001126, 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.001312/0.001312, 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.367/1.367, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2199/0.2199, allocations: 44.18 MB / 336.6 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 60.55 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1051, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4384/0.5436, allocations: 177.1 MB / 0.6313 GB, free: 15.55 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009303/0.553, allocations: 6.511 MB / 0.6377 GB, free: 9.023 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.554, allocations: 19.88 kB / 0.6377 GB, free: 9.004 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.5557, allocations: 433.4 kB / 0.6381 GB, free: 8.578 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005198/0.561, allocations: 1.745 MB / 0.6398 GB, free: 6.832 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004072/0.5651, allocations: 1.523 MB / 0.6413 GB, free: 5.312 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003733/0.5688, allocations: 2.231 MB / 0.6435 GB, free: 3.074 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001572/0.5704, allocations: 0.7587 MB / 0.6442 GB, free: 2.312 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004349/0.5748, allocations: 1.745 MB / 0.6459 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003297/0.5781, allocations: 1.57 MB / 0.6475 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004321/0.5786, allocations: 115.9 kB / 0.6476 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003426/0.582, allocations: 1.407 MB / 0.649 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008776/0.5829, allocations: 0.6976 MB / 0.6496 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001509/0.5844, allocations: 0.7587 MB / 0.6504 GB, free: 12 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004481/0.5889, allocations: 2.634 MB / 0.653 GB, free: 9.363 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.589, allocations: 0 / 0.653 GB, free: 9.363 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.589, allocations: 0 / 0.653 GB, free: 9.363 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.753e-05/0.5891, allocations: 0 / 0.653 GB, free: 9.363 MB / 494.1 MB 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.00506/0.5941, allocations: 1.716 MB / 0.6546 GB, free: 7.598 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.5942, allocations: 12.03 kB / 0.6546 GB, free: 7.586 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004353/0.5946, allocations: 168.9 kB / 0.6548 GB, free: 7.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/0.5964, allocations: 314.2 kB / 0.6551 GB, free: 7.102 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.5979, allocations: 0.7531 MB / 0.6558 GB, free: 6.305 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.5981, allocations: 141.4 kB / 0.656 GB, free: 6.152 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002463/0.5983, allocations: 104 kB / 0.6561 GB, free: 6.051 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003102/0.6014, allocations: 1.841 MB / 0.6579 GB, free: 4.141 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.822e-05/0.6015, allocations: 7.906 kB / 0.6579 GB, free: 4.133 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001575/0.6016, allocations: 44 kB / 0.6579 GB, free: 4.09 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/0.6018, allocations: 97.89 kB / 0.658 GB, free: 3.996 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002748/0.6045, allocations: 1.698 MB / 0.6597 GB, free: 2.297 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.0104/0.6149, allocations: 7.005 MB / 0.6665 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.6163, allocations: 0.8865 MB / 0.6674 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006708/0.617, allocations: 446.3 kB / 0.6678 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001317/0.6172, allocations: 105.6 kB / 0.6679 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/0.6172, allocations: 47.06 kB / 0.668 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 2.495e-06/0.6172, allocations: 0 / 0.668 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01147/0.6287, allocations: 4.232 MB / 0.6721 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.684e-05/0.6288, allocations: 111.5 kB / 0.6722 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001663/0.6305, allocations: 1.112 MB / 0.6733 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001385/0.6306, allocations: 45.7 kB / 0.6733 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000472/0.6311, allocations: 0.5184 MB / 0.6738 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00026/0.6314, allocations: 268.2 kB / 0.6741 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00039/0.6318, allocations: 214.4 kB / 0.6743 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.6319, allocations: 349.9 kB / 0.6746 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009756/0.6329, allocations: 0.5836 MB / 0.6752 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.6341, allocations: 0.876 MB / 0.676 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/0.6362, allocations: 1.439 MB / 0.6775 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.6362, allocations: 0 / 0.6775 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003255/0.6395, allocations: 2.008 MB / 0.6794 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.6395, allocations: 8 kB / 0.6794 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.6395, allocations: 8 kB / 0.6794 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0052/0.6447, allocations: 1.363 MB / 0.6808 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007067/0.6455, allocations: 147.7 kB / 0.6809 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002892/0.6484, allocations: 1.92 MB / 0.6828 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.6494, allocations: 43.97 kB / 0.6828 GB, free: 9.676 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.6496, allocations: 71.98 kB / 0.6829 GB, free: 9.605 MB / 0.5137 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.0007314/0.6503, allocations: 393.4 kB / 0.6833 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00032/0.6507, allocations: 118.6 kB / 0.6834 GB, free: 9.094 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002762/0.6534, allocations: 1.492 MB / 0.6848 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/0.6535, allocations: 8 kB / 0.6848 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.6535, allocations: 7.938 kB / 0.6848 GB, free: 7.574 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.6535, allocations: 3.984 kB / 0.6848 GB, free: 7.57 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004429/0.6579, allocations: 2.684 MB / 0.6875 GB, free: 4.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.658, allocations: 4 kB / 0.6875 GB, free: 4.816 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001948/0.6599, allocations: 327.7 kB / 0.6878 GB, free: 4.496 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002156/0.6602, allocations: 68.64 kB / 0.6879 GB, free: 4.426 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.6603, allocations: 39.97 kB / 0.6879 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002505/0.6628, allocations: 3.029 MB / 0.6908 GB, free: 1.078 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.6628, allocations: 0 / 0.6908 GB, free: 1.078 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003271/0.6661, allocations: 1.903 MB / 0.6927 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008317/0.6669, allocations: 335.7 kB / 0.693 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000325/0.6673, allocations: 24 kB / 0.693 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/0.6685, allocations: 51.94 kB / 0.6931 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/0.6687, allocations: 60.52 kB / 0.6932 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001804/0.6689, allocations: 63.95 kB / 0.6932 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001298/0.6702, allocations: 0.797 MB / 0.694 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6702, allocations: 0 / 0.694 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001775/0.672, allocations: 495.9 kB / 0.6945 GB, free: 13.32 MB / 0.5294 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.005601/0.6776, allocations: 3.132 MB / 0.6975 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003503/0.6811, allocations: 1.805 MB / 0.6993 GB, free: 8.359 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/0.6811, allocations: 0.6562 kB / 0.6993 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001733/0.6829, allocations: 0.8585 MB / 0.7001 GB, free: 7.488 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003837/0.6867, allocations: 0.781 MB / 0.7009 GB, free: 6.73 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2256/0.9123, allocations: 13.66 MB / 0.7142 GB, free: 202 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.9135, allocations: 1.176 MB / 0.7154 GB, free: 201.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002825/0.9163, allocations: 489.9 kB / 0.7158 GB, free: 201.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.9174, allocations: 445.4 kB / 0.7163 GB, free: 200.9 MB / 0.5294 GB Notification: Performance of SimCode: time 8.32e-07/0.9174, allocations: 1.25 kB / 0.7163 GB, free: 200.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09379/1.011, allocations: 49.82 MB / 0.7649 GB, free: 162.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.47, allocations: 10.52 kB / 0.7649 GB, free: 162.7 MB / 0.5294 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