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.001599/0.001599, allocations: 108.8 kB / 17.33 MB, free: 6 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.001633/0.001633, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.374/1.374, allocations: 222.9 MB / 241.9 MB, free: 15.37 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.2166/0.2166, allocations: 44.17 MB / 336.2 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001303, allocations: 61.34 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.127, allocations: 60.82 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5022/0.6293, allocations: 175.3 MB / 0.6291 GB, free: 1.719 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008472/0.6378, allocations: 6.592 MB / 0.6355 GB, free: 11.11 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000893/0.6388, allocations: 27.81 kB / 0.6355 GB, free: 11.08 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.6401, allocations: 390.1 kB / 0.6359 GB, free: 10.7 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004303/0.6444, allocations: 1.636 MB / 0.6375 GB, free: 9.059 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003647/0.6481, allocations: 1.412 MB / 0.6389 GB, free: 7.652 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002768/0.6509, allocations: 2.243 MB / 0.6411 GB, free: 5.402 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001432/0.6523, allocations: 0.7335 MB / 0.6418 GB, free: 4.664 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004071/0.6564, allocations: 1.757 MB / 0.6435 GB, free: 2.902 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002815/0.6592, allocations: 1.706 MB / 0.6452 GB, free: 1.191 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002806/0.6595, allocations: 103.9 kB / 0.6453 GB, free: 1.09 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00373/0.6633, allocations: 1.7 MB / 0.6469 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008533/0.6642, allocations: 0.6898 MB / 0.6476 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001001/0.6652, allocations: 0.7626 MB / 0.6483 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004444/0.6696, allocations: 2.782 MB / 0.6511 GB, free: 11.14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.6696, allocations: 4 kB / 0.6511 GB, free: 11.14 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6697, allocations: 0 / 0.6511 GB, free: 11.14 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.142e-05/0.6697, allocations: 0 / 0.6511 GB, free: 11.14 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.003761/0.6735, allocations: 1.723 MB / 0.6527 GB, free: 9.363 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.6735, allocations: 8.031 kB / 0.6528 GB, free: 9.355 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002364/0.6738, allocations: 180.8 kB / 0.6529 GB, free: 9.168 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001501/0.6753, allocations: 311 kB / 0.6532 GB, free: 8.863 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.6765, allocations: 0.7416 MB / 0.6539 GB, free: 8.078 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.6766, allocations: 141.4 kB / 0.6541 GB, free: 7.926 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.6768, allocations: 103.9 kB / 0.6542 GB, free: 7.824 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002725/0.6795, allocations: 1.845 MB / 0.656 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.119e-05/0.6796, allocations: 7.938 kB / 0.656 GB, free: 5.902 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/0.6797, allocations: 40 kB / 0.656 GB, free: 5.863 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001026/0.6798, allocations: 93.95 kB / 0.6561 GB, free: 5.773 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002443/0.6823, allocations: 1.694 MB / 0.6578 GB, free: 4.078 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.009542/0.6918, allocations: 6.977 MB / 0.6646 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.6931, allocations: 0.8807 MB / 0.6654 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006231/0.6938, allocations: 454.3 kB / 0.6659 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001328/0.6939, allocations: 101.7 kB / 0.666 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/0.694, allocations: 51.06 kB / 0.666 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 3.858e-06/0.694, allocations: 3.984 kB / 0.666 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01115/0.7051, allocations: 4.227 MB / 0.6702 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.571e-05/0.7053, allocations: 111.5 kB / 0.6703 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001482/0.7067, allocations: 1.116 MB / 0.6714 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.7069, allocations: 41.7 kB / 0.6714 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004198/0.7073, allocations: 0.5146 MB / 0.6719 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.7076, allocations: 264.3 kB / 0.6721 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003686/0.708, allocations: 214.5 kB / 0.6724 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.7081, allocations: 349.9 kB / 0.6727 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008837/0.709, allocations: 0.5836 MB / 0.6733 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.7101, allocations: 0.876 MB / 0.6741 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/0.7121, allocations: 1.439 MB / 0.6755 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.7121, allocations: 4 kB / 0.6755 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003277/0.7154, allocations: 2.008 MB / 0.6775 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.7154, allocations: 8 kB / 0.6775 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.7154, allocations: 11.94 kB / 0.6775 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004965/0.7204, allocations: 1.359 MB / 0.6788 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007402/0.7212, allocations: 151.7 kB / 0.679 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003139/0.7243, allocations: 1.924 MB / 0.6809 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.7258, allocations: 115.8 kB / 0.681 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002079/0.7261, allocations: 67.97 kB / 0.681 GB, free: 11.35 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.0009421/0.727, allocations: 401.4 kB / 0.6814 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003748/0.7274, allocations: 114.7 kB / 0.6815 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002762/0.7302, allocations: 1.5 MB / 0.683 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.7302, allocations: 8 kB / 0.683 GB, free: 9.316 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.7302, allocations: 0 / 0.683 GB, free: 9.316 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.7302, allocations: 3.984 kB / 0.683 GB, free: 9.312 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004749/0.735, allocations: 2.688 MB / 0.6856 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.735, allocations: 0 / 0.6856 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001841/0.7368, allocations: 319.6 kB / 0.6859 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002325/0.7371, allocations: 76.72 kB / 0.686 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/0.7372, allocations: 35.97 kB / 0.686 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00266/0.7399, allocations: 3.033 MB / 0.689 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7399, allocations: 0 / 0.689 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003056/0.743, allocations: 1.895 MB / 0.6908 GB, free: 0.9023 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007508/0.7438, allocations: 339.6 kB / 0.6912 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003167/0.7441, allocations: 35.86 kB / 0.6912 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.7453, allocations: 83.98 kB / 0.6913 GB, free: 444 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.7455, allocations: 64.5 kB / 0.6913 GB, free: 380 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001646/0.7457, allocations: 63.95 kB / 0.6914 GB, free: 316 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001306/0.747, allocations: 0.797 MB / 0.6922 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.747, allocations: 0 / 0.6922 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002362/0.7494, allocations: 479.9 kB / 0.6926 GB, free: 15.03 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.005995/0.7554, allocations: 3.148 MB / 0.6957 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003488/0.7589, allocations: 1.794 MB / 0.6975 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.846e-05/0.7589, allocations: 4.656 kB / 0.6975 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001704/0.7606, allocations: 0.8622 MB / 0.6983 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003864/0.7645, allocations: 0.7569 MB / 0.6991 GB, free: 8.445 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2287/0.9932, allocations: 14.01 MB / 0.7127 GB, free: 202.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009179/0.9941, allocations: 1.18 MB / 0.7139 GB, free: 201.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001937/0.9961, allocations: 486.9 kB / 0.7144 GB, free: 201.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000712/0.9968, allocations: 448 kB / 0.7148 GB, free: 201.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.483e-06/0.9968, allocations: 0 / 0.7148 GB, free: 201.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07738/1.074, allocations: 49.54 MB / 0.7632 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000192/1.074, allocations: 323.3 kB / 0.7635 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.203/4.277, allocations: 3.938 kB / 0.7635 GB, free: 164.1 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