Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00174/0.00174, allocations: 104.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001736/0.001736, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2313/0.2313, allocations: 46.11 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 75.62 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1337, allocations: 62.45 MB / 480.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4572/0.5909, allocations: 180.2 MB / 0.6449 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.008611/0.5995, allocations: 6.512 MB / 0.6512 GB, free: 8.496 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007453/0.6003, allocations: 19.88 kB / 0.6512 GB, free: 8.477 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.6015, allocations: 425.6 kB / 0.6516 GB, free: 8.059 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004412/0.606, allocations: 1.745 MB / 0.6533 GB, free: 6.312 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003717/0.6097, allocations: 1.475 MB / 0.6548 GB, free: 4.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002611/0.6123, allocations: 2.114 MB / 0.6568 GB, free: 2.723 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009434/0.6133, allocations: 0.5358 MB / 0.6574 GB, free: 2.18 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003686/0.617, allocations: 1.752 MB / 0.6591 GB, free: 432 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002825/0.6199, allocations: 1.496 MB / 0.6605 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003167/0.6202, allocations: 79.94 kB / 0.6606 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003474/0.6237, allocations: 1.376 MB / 0.662 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007102/0.6244, allocations: 442.9 kB / 0.6624 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001367/0.6258, allocations: 0.5601 MB / 0.6629 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.005058/0.6309, allocations: 2.088 MB / 0.665 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.631, allocations: 4 kB / 0.665 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.374e-06/0.631, allocations: 0 / 0.665 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.357e-05/0.6311, allocations: 4 kB / 0.665 GB, free: 10.37 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.004094/0.6352, allocations: 1.446 MB / 0.6664 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.6352, allocations: 12.03 kB / 0.6664 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002743/0.6355, allocations: 130.7 kB / 0.6665 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001602/0.6371, allocations: 274.6 kB / 0.6668 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.6383, allocations: 0.6168 MB / 0.6674 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.6384, allocations: 120.7 kB / 0.6675 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.6386, allocations: 60 kB / 0.6676 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.6407, allocations: 1.27 MB / 0.6688 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.6407, allocations: 3.938 kB / 0.6688 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/0.6409, allocations: 39.92 kB / 0.6688 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001009/0.641, allocations: 81.27 kB / 0.6689 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001938/0.6429, allocations: 1.051 MB / 0.6699 GB, free: 5.098 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.00753/0.6505, allocations: 4.93 MB / 0.6748 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005421/0.651, allocations: 306.6 kB / 0.6751 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/0.6513, allocations: 146.9 kB / 0.6752 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.6514, allocations: 97.03 kB / 0.6753 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.6514, allocations: 38.56 kB / 0.6753 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=28): time 2.144e-06/0.6515, allocations: 0 / 0.6753 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33): time 0.006687/0.6581, allocations: 1.835 MB / 0.6771 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.6582, allocations: 132.5 kB / 0.6772 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.6595, allocations: 0.9387 MB / 0.6782 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.238e-05/0.6595, allocations: 33.7 kB / 0.6782 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000436/0.66, allocations: 0.5711 MB / 0.6787 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.6601, allocations: 130.3 kB / 0.6789 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002892/0.6604, allocations: 214.6 kB / 0.6791 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002002/0.6606, allocations: 402.7 kB / 0.6795 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004608/0.6611, allocations: 274.5 kB / 0.6797 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000893/0.662, allocations: 0.8678 MB / 0.6806 GB, free: 9.43 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.6634, allocations: 1.183 MB / 0.6817 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.184e-05/0.6634, allocations: 8 kB / 0.6817 GB, free: 7.961 MB / 0.5137 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002117/0.6655, allocations: 1.224 MB / 0.6829 GB, free: 6.727 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.6656, allocations: 20 kB / 0.6829 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.63e-05/0.6656, allocations: 20 kB / 0.683 GB, free: 6.688 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/0.667, allocations: 292.6 kB / 0.6832 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005936/0.6676, allocations: 207.6 kB / 0.6834 GB, free: 6.195 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.6687, allocations: 0.9112 MB / 0.6843 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007794/0.6695, allocations: 47.92 kB / 0.6844 GB, free: 5.211 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-05/0.6696, allocations: 68 kB / 0.6844 GB, free: 5.145 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004688/0.6701, allocations: 337.3 kB / 0.6848 GB, free: 4.805 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.6703, allocations: 98.97 kB / 0.6849 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001086/0.6714, allocations: 0.5194 MB / 0.6854 GB, free: 4.18 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.6714, allocations: 4 kB / 0.6854 GB, free: 4.176 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6714, allocations: 0 / 0.6854 GB, free: 4.176 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.6714, allocations: 0 / 0.6854 GB, free: 4.176 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/0.6732, allocations: 1.129 MB / 0.6865 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.6732, allocations: 4 kB / 0.6865 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.6743, allocations: 179.9 kB / 0.6866 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.29e-05/0.6744, allocations: 32.72 kB / 0.6867 GB, free: 2.77 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.932e-05/0.6745, allocations: 11.94 kB / 0.6867 GB, free: 2.758 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00229/0.6768, allocations: 2.874 MB / 0.6895 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6768, allocations: 0 / 0.6895 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.6779, allocations: 0.699 MB / 0.6902 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003644/0.6783, allocations: 200 kB / 0.6904 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/0.6785, allocations: 4 kB / 0.6904 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004753/0.679, allocations: 24.11 kB / 0.6904 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.022e-05/0.6791, allocations: 23.97 kB / 0.6904 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-05/0.6791, allocations: 19.98 kB / 0.6904 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0009357/0.6801, allocations: 0.6204 MB / 0.691 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6801, allocations: 0 / 0.691 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001434/0.6815, allocations: 391.8 kB / 0.6914 GB, free: 13.59 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 31 * 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.003416/0.6849, allocations: 1.807 MB / 0.6932 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001472/0.6864, allocations: 0.7231 MB / 0.6939 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.6864, allocations: 5.875 kB / 0.6939 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009429/0.6874, allocations: 370.5 kB / 0.6942 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/0.6894, allocations: 428.7 kB / 0.6947 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.7005, allocations: 8.577 MB / 0.703 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1824/0.883, allocations: 1.024 MB / 0.704 GB, free: 196.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001362/0.8844, allocations: 385.1 kB / 0.7044 GB, free: 196.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004356/0.8849, allocations: 321.7 kB / 0.7047 GB, free: 196.8 MB / 0.5294 GB Notification: Performance of SimCode: time 7.22e-07/0.8849, allocations: 3.312 kB / 0.7047 GB, free: 196.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05751/0.9424, allocations: 30.06 MB / 0.7341 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/13.32, allocations: 4.859 kB / 0.7341 GB, free: 182.7 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_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_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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