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.001691/0.001699, allocations: 106.1 kB / 16.27 MB, free: 6.34 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.001781/0.001781, allocations: 185 kB / 17.19 MB, free: 5.957 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.402/1.402, allocations: 205.1 MB / 223.1 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.232/0.232, allocations: 43.53 MB / 313.9 MB, free: 0.5234 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.001547/0.001547, allocations: 63.73 kB / 382.8 MB, free: 56.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1032, allocations: 57.79 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4168/0.52, allocations: 183.1 MB / 0.6091 GB, free: 7.633 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.5303, allocations: 6.964 MB / 0.6159 GB, free: 2.523 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/0.5315, allocations: 20.31 kB / 0.6159 GB, free: 2.516 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00148/0.533, allocations: 429 kB / 0.6163 GB, free: 2.168 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006313/0.5393, allocations: 2.027 MB / 0.6183 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004969/0.5443, allocations: 1.705 MB / 0.62 GB, free: 15.47 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003572/0.5479, allocations: 2.225 MB / 0.6221 GB, free: 14.24 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.5492, allocations: 0.7667 MB / 0.6229 GB, free: 13.78 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004691/0.554, allocations: 1.928 MB / 0.6248 GB, free: 12.31 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003016/0.557, allocations: 1.581 MB / 0.6263 GB, free: 10.72 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003031/0.5573, allocations: 100 kB / 0.6264 GB, free: 10.62 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004001/0.5613, allocations: 1.626 MB / 0.628 GB, free: 8.996 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009529/0.5623, allocations: 0.6898 MB / 0.6287 GB, free: 8.305 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001386/0.5637, allocations: 0.7625 MB / 0.6294 GB, free: 7.539 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004732/0.5685, allocations: 2.759 MB / 0.6321 GB, free: 4.773 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.5685, allocations: 3.938 kB / 0.6321 GB, free: 4.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5685, allocations: 0 / 0.6321 GB, free: 4.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.158e-05/0.5685, allocations: 4 kB / 0.6321 GB, free: 4.766 MB / 446.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.004257/0.5728, allocations: 1.684 MB / 0.6338 GB, free: 3.031 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.5729, allocations: 11.89 kB / 0.6338 GB, free: 3.02 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002716/0.5732, allocations: 180.8 kB / 0.6339 GB, free: 2.832 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001581/0.5747, allocations: 307.1 kB / 0.6342 GB, free: 2.531 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.5761, allocations: 0.7416 MB / 0.635 GB, free: 1.746 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.5762, allocations: 141.3 kB / 0.6351 GB, free: 1.594 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001899/0.5764, allocations: 103.9 kB / 0.6352 GB, free: 1.492 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002874/0.5793, allocations: 1.845 MB / 0.637 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.5793, allocations: 4 kB / 0.637 GB, free: 15.57 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001473/0.5795, allocations: 47.98 kB / 0.6371 GB, free: 15.53 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001096/0.5796, allocations: 97.95 kB / 0.6371 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002642/0.5823, allocations: 1.698 MB / 0.6388 GB, free: 13.73 MB / 462.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.01006/0.5923, allocations: 7.039 MB / 0.6457 GB, free: 6.219 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/0.5937, allocations: 0.875 MB / 0.6465 GB, free: 5.34 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006629/0.5943, allocations: 450.3 kB / 0.647 GB, free: 4.898 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001898/0.5945, allocations: 147.5 kB / 0.6471 GB, free: 4.734 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.5946, allocations: 47.06 kB / 0.6471 GB, free: 4.676 MB / 462.1 MB Notification: Performance of pre-optimization done (n=60): time 3.076e-06/0.5946, allocations: 8 kB / 0.6472 GB, free: 4.668 MB / 462.1 MB Notification: Performance of matching and sorting (n=72): time 0.01133/0.6059, allocations: 4.226 MB / 0.6513 GB, free: 372 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.286e-05/0.6061, allocations: 111.5 kB / 0.6514 GB, free: 236 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001409/0.6075, allocations: 1.109 MB / 0.6525 GB, free: 15.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001221/0.6076, allocations: 41.7 kB / 0.6525 GB, free: 15.05 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003976/0.608, allocations: 0.5223 MB / 0.653 GB, free: 14.52 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002292/0.6083, allocations: 264.2 kB / 0.6533 GB, free: 14.26 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003575/0.6086, allocations: 210.5 kB / 0.6535 GB, free: 14.05 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.6088, allocations: 349.9 kB / 0.6538 GB, free: 13.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009159/0.6097, allocations: 0.5836 MB / 0.6544 GB, free: 13.12 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/0.6109, allocations: 0.8721 MB / 0.6552 GB, free: 12.12 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002096/0.613, allocations: 1.447 MB / 0.6566 GB, free: 10.57 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.613, allocations: 4 kB / 0.6566 GB, free: 10.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003508/0.6165, allocations: 2.004 MB / 0.6586 GB, free: 8.547 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.6165, allocations: 8.906 kB / 0.6586 GB, free: 8.539 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.6166, allocations: 8 kB / 0.6586 GB, free: 8.531 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004842/0.6214, allocations: 1.324 MB / 0.6599 GB, free: 7.203 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007029/0.6221, allocations: 147.7 kB / 0.6601 GB, free: 7.059 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002846/0.625, allocations: 1.924 MB / 0.6619 GB, free: 5.109 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.6262, allocations: 43.97 kB / 0.662 GB, free: 5.066 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.6264, allocations: 67.98 kB / 0.662 GB, free: 5 MB / 478.1 MB 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.0008277/0.6272, allocations: 393.5 kB / 0.6624 GB, free: 4.605 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002407/0.6275, allocations: 106.8 kB / 0.6625 GB, free: 4.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002447/0.6299, allocations: 1.402 MB / 0.6639 GB, free: 3.086 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.6299, allocations: 12 kB / 0.6639 GB, free: 3.074 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.6299, allocations: 0 / 0.6639 GB, free: 3.074 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.63, allocations: 4.172 kB / 0.6639 GB, free: 3.07 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003988/0.634, allocations: 2.692 MB / 0.6665 GB, free: 320 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.634, allocations: 11.94 kB / 0.6665 GB, free: 308 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00183/0.6358, allocations: 315.7 kB / 0.6668 GB, free: 15.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001904/0.636, allocations: 72.75 kB / 0.6669 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.965e-05/0.6361, allocations: 39.97 kB / 0.6669 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002757/0.6389, allocations: 3.029 MB / 0.6699 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.6389, allocations: 4.031 kB / 0.6699 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002972/0.6419, allocations: 1.906 MB / 0.6718 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006696/0.6426, allocations: 331.7 kB / 0.6721 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.6428, allocations: 27.98 kB / 0.6721 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009377/0.6437, allocations: 52.02 kB / 0.6722 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.6439, allocations: 60.56 kB / 0.6722 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/0.644, allocations: 59.95 kB / 0.6723 GB, free: 10.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001078/0.6451, allocations: 0.8008 MB / 0.6731 GB, free: 9.289 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6451, allocations: 0 / 0.6731 GB, free: 9.289 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0016/0.6467, allocations: 0.5233 MB / 0.6736 GB, free: 8.766 MB / 494.1 MB 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.005533/0.6523, allocations: 3.23 MB / 0.6767 GB, free: 5.508 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003412/0.6557, allocations: 1.805 MB / 0.6785 GB, free: 3.703 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/0.6557, allocations: 0.6562 kB / 0.6785 GB, free: 3.699 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001675/0.6574, allocations: 0.8585 MB / 0.6793 GB, free: 2.828 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003762/0.6612, allocations: 0.7693 MB / 0.6801 GB, free: 2.059 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02002/0.6812, allocations: 13.7 MB / 0.6935 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008059/0.6821, allocations: 1.183 MB / 0.6946 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001591/0.6837, allocations: 417.8 kB / 0.695 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000788/0.6845, allocations: 439.3 kB / 0.6954 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of SimCode: time 1.002e-06/0.6845, allocations: 3.938 kB / 0.6954 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3047/0.9892, allocations: 50.95 MB / 0.7452 GB, free: 229.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.85, allocations: 448 / 0.7452 GB, free: 229.8 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_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_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.csv","/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches