Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_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.0007966/0.0007965, allocations: 97.48 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009745/0.0009747, allocations: 181.8 kB / 16.91 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3814/0.3814, allocations: 43.58 MB / 315 MB, free: 9.047 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000518/0.000518, allocations: 20.56 kB / 384.7 MB, free: 7.773 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1324, allocations: 58.86 MB / 443.6 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4756/0.6081, allocations: 179.3 MB / 0.6082 GB, free: 7.887 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01151/0.6197, allocations: 7.09 MB / 0.6151 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001583/0.6213, allocations: 27.75 kB / 0.6152 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.6227, allocations: 386.1 kB / 0.6155 GB, free: 384 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006663/0.6293, allocations: 1.841 MB / 0.6173 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004709/0.6341, allocations: 1.544 MB / 0.6188 GB, free: 13 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003925/0.638, allocations: 3.23 MB / 0.622 GB, free: 9.77 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001261/0.6393, allocations: 0.6575 MB / 0.6226 GB, free: 9.113 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005039/0.6443, allocations: 1.802 MB / 0.6244 GB, free: 7.309 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00332/0.6477, allocations: 1.667 MB / 0.626 GB, free: 5.637 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002069/0.6479, allocations: 56 kB / 0.6261 GB, free: 5.582 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004507/0.6524, allocations: 2.051 MB / 0.6281 GB, free: 3.527 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008064/0.6533, allocations: 0.6391 MB / 0.6287 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.6543, allocations: 0.7252 MB / 0.6294 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.356/1.01, allocations: 2.835 MB / 0.6322 GB, free: 10.43 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/1.01, allocations: 5.938 kB / 0.6322 GB, free: 10.43 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.236e-06/1.01, allocations: 0 / 0.6322 GB, free: 10.43 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.674e-05/1.01, allocations: 0 / 0.6322 GB, free: 10.43 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.003742/1.014, allocations: 1.403 MB / 0.6336 GB, free: 9.836 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/1.014, allocations: 14.75 kB / 0.6336 GB, free: 9.832 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002546/1.015, allocations: 180.4 kB / 0.6337 GB, free: 9.789 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00153/1.016, allocations: 317.4 kB / 0.634 GB, free: 9.727 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/1.017, allocations: 0.7436 MB / 0.6348 GB, free: 9.438 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/1.018, allocations: 140.5 kB / 0.6349 GB, free: 9.371 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001947/1.018, allocations: 110.4 kB / 0.635 GB, free: 9.367 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002908/1.021, allocations: 1.843 MB / 0.6368 GB, free: 9.164 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.153e-05/1.021, allocations: 7.438 kB / 0.6368 GB, free: 9.164 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001538/1.021, allocations: 52.03 kB / 0.6369 GB, free: 9.164 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001119/1.021, allocations: 87.98 kB / 0.637 GB, free: 9.164 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002676/1.024, allocations: 1.701 MB / 0.6386 GB, free: 9.152 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.009625/1.033, allocations: 6.979 MB / 0.6454 GB, free: 5.656 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/1.035, allocations: 0.8796 MB / 0.6463 GB, free: 5.625 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006184/1.035, allocations: 448.9 kB / 0.6467 GB, free: 5.617 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000174/1.036, allocations: 149.9 kB / 0.6469 GB, free: 5.516 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/1.036, allocations: 47.12 kB / 0.6469 GB, free: 5.477 MB / 494.1 MB Notification: Performance of pre-optimization done (n=60): time 2.615e-06/1.036, allocations: 0 / 0.6469 GB, free: 5.477 MB / 494.1 MB Notification: Performance of matching and sorting (n=72): time 0.01127/1.047, allocations: 4.174 MB / 0.651 GB, free: 4.707 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.96e-05/1.047, allocations: 110.8 kB / 0.6511 GB, free: 4.582 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001826/1.049, allocations: 1.103 MB / 0.6522 GB, free: 4.426 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001783/1.049, allocations: 47.2 kB / 0.6522 GB, free: 4.391 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003808/1.049, allocations: 0.5203 MB / 0.6527 GB, free: 4.156 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002289/1.05, allocations: 266.2 kB / 0.653 GB, free: 3.992 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/1.05, allocations: 91.58 kB / 0.6531 GB, free: 3.977 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.626e-05/1.05, allocations: 345.8 kB / 0.6534 GB, free: 3.672 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/1.051, allocations: 0.582 MB / 0.654 GB, free: 3.672 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/1.053, allocations: 0.8755 MB / 0.6548 GB, free: 3.348 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002276/1.055, allocations: 1.447 MB / 0.6562 GB, free: 3.027 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.048e-05/1.055, allocations: 2.656 kB / 0.6562 GB, free: 3.027 MB / 494.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.004347/1.059, allocations: 1.999 MB / 0.6582 GB, free: 2.918 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.956e-05/1.059, allocations: 13.66 kB / 0.6582 GB, free: 2.914 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.637e-05/1.059, allocations: 12.44 kB / 0.6582 GB, free: 2.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005668/1.065, allocations: 1.387 MB / 0.6596 GB, free: 2.852 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007819/1.066, allocations: 145.2 kB / 0.6597 GB, free: 2.852 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00331/1.069, allocations: 1.925 MB / 0.6616 GB, free: 18.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/1.071, allocations: 107.5 kB / 0.6617 GB, free: 18.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000156/1.071, allocations: 67.45 kB / 0.6617 GB, free: 18.3 MB / 0.4981 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.0009375/1.072, allocations: 399.3 kB / 0.6621 GB, free: 18.17 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002522/1.072, allocations: 112.1 kB / 0.6622 GB, free: 18.12 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002801/1.075, allocations: 1.402 MB / 0.6636 GB, free: 18.03 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/1.075, allocations: 14.78 kB / 0.6636 GB, free: 18.02 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/1.075, allocations: 0.9688 kB / 0.6636 GB, free: 18.02 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/1.075, allocations: 7.359 kB / 0.6636 GB, free: 18.02 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004953/1.08, allocations: 2.68 MB / 0.6662 GB, free: 17.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/1.08, allocations: 1 kB / 0.6662 GB, free: 17.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/1.082, allocations: 323.3 kB / 0.6666 GB, free: 17.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002015/1.082, allocations: 73.7 kB / 0.6666 GB, free: 17.66 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.573e-05/1.082, allocations: 35.22 kB / 0.6667 GB, free: 17.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002412/1.084, allocations: 2.84 MB / 0.6694 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.084, allocations: 3.203 kB / 0.6694 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003166/1.088, allocations: 1.902 MB / 0.6713 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008176/1.088, allocations: 354.7 kB / 0.6716 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/1.089, allocations: 26.77 kB / 0.6717 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/1.09, allocations: 83.61 kB / 0.6717 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/1.09, allocations: 61.12 kB / 0.6718 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/1.09, allocations: 60.25 kB / 0.6718 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001061/1.091, allocations: 0.7949 MB / 0.6726 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/1.091, allocations: 0 / 0.6726 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001819/1.093, allocations: 0.528 MB / 0.6731 GB, free: 14.54 MB / 0.4981 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.005874/1.099, allocations: 3.238 MB / 0.6763 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003015/1.102, allocations: 1.471 MB / 0.6777 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.102, allocations: 0.6562 kB / 0.6777 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001618/1.104, allocations: 0.8678 MB / 0.6786 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003907/1.107, allocations: 0.72 MB / 0.6793 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02112/1.129, allocations: 14.22 MB / 0.6932 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/1.13, allocations: 1.182 MB / 0.6943 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001845/1.132, allocations: 409.8 kB / 0.6947 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007251/1.132, allocations: 440.9 kB / 0.6951 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of SimCode: time 1.022e-06/1.132, allocations: 0 / 0.6951 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08672/1.219, allocations: 48.93 MB / 0.7429 GB, free: 6.531 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000282/1.219, allocations: 317.5 kB / 0.7432 GB, free: 6.148 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.096/4.315, allocations: 0 / 0.7432 GB, free: 6.148 MB / 0.545 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches