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.001703/0.001703, allocations: 122.2 kB / 17.78 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002158/0.002159, allocations: 197.2 kB / 18.72 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.9 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2234/0.2234, allocations: 46.1 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 71.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3551, allocations: 62.44 MB / 0.5305 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.2276/0.5828, allocations: 180.2 MB / 0.7065 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.009171/0.5921, allocations: 6.508 MB / 0.7129 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008425/0.5929, allocations: 19.88 kB / 0.7129 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001238/0.5942, allocations: 425.6 kB / 0.7133 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004782/0.599, allocations: 1.783 MB / 0.715 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004017/0.603, allocations: 1.489 MB / 0.7165 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002686/0.6057, allocations: 2.118 MB / 0.7185 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009511/0.6067, allocations: 0.5402 MB / 0.7191 GB, free: 44 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3853/0.992, allocations: 1.757 MB / 0.7208 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002782/0.9948, allocations: 1.503 MB / 0.7223 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002619/0.9951, allocations: 75.59 kB / 0.7223 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002889/0.998, allocations: 1.311 MB / 0.7236 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0005734/0.9986, allocations: 446.8 kB / 0.724 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009219/0.9996, allocations: 0.5592 MB / 0.7246 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00359/1.003, allocations: 2.068 MB / 0.7266 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/1.003, allocations: 4.688 kB / 0.7266 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.663e-06/1.003, allocations: 0.75 kB / 0.7266 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.936e-05/1.003, allocations: 0.9062 kB / 0.7266 GB, free: 4.109 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.00362/1.007, allocations: 1.479 MB / 0.728 GB, free: 19.37 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/1.007, allocations: 14.69 kB / 0.7281 GB, free: 19.37 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001821/1.007, allocations: 131.4 kB / 0.7282 GB, free: 19.33 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001388/1.008, allocations: 289.3 kB / 0.7285 GB, free: 19.28 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/1.01, allocations: 0.6333 MB / 0.7291 GB, free: 18.99 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.358e-05/1.01, allocations: 115.5 kB / 0.7292 GB, free: 18.93 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/1.01, allocations: 65.47 kB / 0.7293 GB, free: 18.93 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/1.011, allocations: 1.265 MB / 0.7305 GB, free: 18.72 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/1.011, allocations: 2.844 kB / 0.7305 GB, free: 18.72 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/1.012, allocations: 34.64 kB / 0.7305 GB, free: 18.72 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.712e-05/1.012, allocations: 87.97 kB / 0.7306 GB, free: 18.71 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/1.013, allocations: 1.054 MB / 0.7316 GB, free: 18.71 MB / 0.5762 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.005947/1.019, allocations: 4.914 MB / 0.7364 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000427/1.019, allocations: 304.1 kB / 0.7367 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/1.02, allocations: 151.5 kB / 0.7369 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.285e-05/1.02, allocations: 96.89 kB / 0.737 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/1.02, allocations: 38.97 kB / 0.737 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=28): time 1.804e-06/1.02, allocations: 0 / 0.737 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.006002/1.026, allocations: 1.849 MB / 0.7388 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/1.026, allocations: 134.7 kB / 0.7389 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008811/1.027, allocations: 0.9414 MB / 0.7399 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.584e-05/1.027, allocations: 36.36 kB / 0.7399 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/1.027, allocations: 0.5739 MB / 0.7404 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.018e-05/1.027, allocations: 145.8 kB / 0.7406 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/1.027, allocations: 218.9 kB / 0.7408 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001454/1.028, allocations: 398.4 kB / 0.7412 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/1.028, allocations: 276.1 kB / 0.7414 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006123/1.029, allocations: 0.8616 MB / 0.7423 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/1.03, allocations: 1.18 MB / 0.7434 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-06/1.03, allocations: 8.344 kB / 0.7434 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001598/1.031, allocations: 1.241 MB / 0.7447 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/1.031, allocations: 13.53 kB / 0.7447 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/1.031, allocations: 19.5 kB / 0.7447 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/1.032, allocations: 298.8 kB / 0.745 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005076/1.033, allocations: 203.7 kB / 0.7452 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009142/1.034, allocations: 0.9102 MB / 0.7461 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007408/1.035, allocations: 48.55 kB / 0.7461 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.457e-05/1.035, allocations: 72.11 kB / 0.7462 GB, free: 11.9 MB / 0.5762 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.0003758/1.035, allocations: 346.4 kB / 0.7465 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/1.035, allocations: 95.67 kB / 0.7466 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008392/1.036, allocations: 0.515 MB / 0.7471 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/1.036, allocations: 10.55 kB / 0.7471 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.036, allocations: 2.312 kB / 0.7471 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/1.036, allocations: 4.062 kB / 0.7471 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001466/1.038, allocations: 1.127 MB / 0.7482 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/1.038, allocations: 4.094 kB / 0.7482 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009236/1.038, allocations: 177.1 kB / 0.7484 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.216e-05/1.039, allocations: 25.75 kB / 0.7484 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/1.039, allocations: 16.62 kB / 0.7484 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001837/1.04, allocations: 2.88 MB / 0.7512 GB, free: 8.555 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.04, allocations: 0.8438 kB / 0.7512 GB, free: 8.555 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009051/1.041, allocations: 0.7012 MB / 0.7519 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002977/1.042, allocations: 204.4 kB / 0.7521 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/1.042, allocations: 9.797 kB / 0.7521 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004345/1.042, allocations: 16.89 kB / 0.7521 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.551e-05/1.042, allocations: 28.88 kB / 0.7522 GB, free: 8.203 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.48e-05/1.042, allocations: 20.36 kB / 0.7522 GB, free: 8.203 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007627/1.043, allocations: 0.6224 MB / 0.7528 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/1.043, allocations: 1.031 kB / 0.7528 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001604/1.045, allocations: 383.8 kB / 0.7532 GB, free: 8.062 MB / 0.5762 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.002643/1.047, allocations: 1.801 MB / 0.7549 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001081/1.048, allocations: 0.6807 MB / 0.7556 GB, free: 7.273 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/1.048, allocations: 0.9062 kB / 0.7556 GB, free: 7.273 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008099/1.049, allocations: 370.6 kB / 0.7559 GB, free: 7.164 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/1.051, allocations: 428.6 kB / 0.7563 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00976/1.061, allocations: 8.195 MB / 0.7644 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006732/1.062, allocations: 1.028 MB / 0.7654 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001063/1.063, allocations: 383.2 kB / 0.7657 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004062/1.063, allocations: 317 kB / 0.766 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of SimCode: time 1.112e-06/1.063, allocations: 4 kB / 0.766 GB, free: 2.734 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05811/1.121, allocations: 30.98 MB / 0.7963 GB, free: 1.074 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.85/18.97, allocations: 20.02 kB / 0.7963 GB, free: 1.055 MB / 0.5919 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