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.001242/0.001242, allocations: 106.9 kB / 17.21 MB, free: 6.273 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.001701/0.001701, allocations: 194 kB / 18.12 MB, free: 5.363 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.373/1.373, allocations: 222.9 MB / 241.8 MB, free: 15.43 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.2295/0.2295, allocations: 44.17 MB / 336.1 MB, free: 2.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 65.17 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1374, allocations: 60.83 MB / 468.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5229/0.6603, allocations: 175.5 MB / 0.629 GB, free: 1.707 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.6711, allocations: 6.706 MB / 0.6356 GB, free: 10.99 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001312/0.6725, allocations: 31.75 kB / 0.6356 GB, free: 10.96 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001548/0.6741, allocations: 394.1 kB / 0.636 GB, free: 10.57 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00515/0.6793, allocations: 1.606 MB / 0.6375 GB, free: 8.965 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004199/0.6835, allocations: 1.383 MB / 0.6389 GB, free: 7.586 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004003/0.6875, allocations: 3.238 MB / 0.642 GB, free: 4.34 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001357/0.6889, allocations: 0.6625 MB / 0.6427 GB, free: 3.672 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004024/0.6929, allocations: 1.655 MB / 0.6443 GB, free: 2.012 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003482/0.6964, allocations: 1.667 MB / 0.6459 GB, free: 348 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004525/0.6969, allocations: 60 kB / 0.646 GB, free: 288 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003976/0.7009, allocations: 1.824 MB / 0.6478 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008978/0.7018, allocations: 0.6468 MB / 0.6484 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001438/0.7032, allocations: 0.7079 MB / 0.6491 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004417/0.7077, allocations: 2.735 MB / 0.6518 GB, free: 10.35 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.7077, allocations: 0 / 0.6518 GB, free: 10.35 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.7077, allocations: 0 / 0.6518 GB, free: 10.35 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.483e-05/0.7078, allocations: 0 / 0.6518 GB, free: 10.35 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.00493/0.7127, allocations: 1.715 MB / 0.6534 GB, free: 8.586 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.7128, allocations: 12.03 kB / 0.6534 GB, free: 8.574 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004905/0.7133, allocations: 172.9 kB / 0.6536 GB, free: 8.395 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002614/0.7159, allocations: 306.2 kB / 0.6539 GB, free: 8.094 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002383/0.7183, allocations: 0.7493 MB / 0.6546 GB, free: 7.305 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000213/0.7185, allocations: 137.4 kB / 0.6548 GB, free: 7.156 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003672/0.7189, allocations: 107.9 kB / 0.6549 GB, free: 7.051 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00428/0.7232, allocations: 1.853 MB / 0.6567 GB, free: 5.129 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.257e-05/0.7233, allocations: 4 kB / 0.6567 GB, free: 5.125 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001973/0.7235, allocations: 40 kB / 0.6567 GB, free: 5.086 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.7236, allocations: 97.89 kB / 0.6568 GB, free: 4.992 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003987/0.7276, allocations: 1.694 MB / 0.6585 GB, free: 3.297 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.01508/0.7427, allocations: 6.966 MB / 0.6653 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.7442, allocations: 0.8773 MB / 0.6661 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006857/0.7449, allocations: 458.2 kB / 0.6666 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001461/0.745, allocations: 105.7 kB / 0.6667 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.885e-05/0.7451, allocations: 51.06 kB / 0.6667 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 2.925e-06/0.7451, allocations: 0 / 0.6667 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01207/0.7572, allocations: 4.228 MB / 0.6708 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.809e-05/0.7573, allocations: 111.5 kB / 0.6709 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001763/0.759, allocations: 1.109 MB / 0.672 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001427/0.7592, allocations: 45.7 kB / 0.6721 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004813/0.7597, allocations: 0.5184 MB / 0.6726 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003135/0.76, allocations: 272.2 kB / 0.6728 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004115/0.7604, allocations: 214.5 kB / 0.673 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002413/0.7607, allocations: 349.9 kB / 0.6734 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009514/0.7617, allocations: 0.5758 MB / 0.6739 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/0.763, allocations: 0.8798 MB / 0.6748 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/0.7652, allocations: 1.451 MB / 0.6762 GB, free: 232 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.7652, allocations: 4 kB / 0.6762 GB, free: 228 kB / 0.4981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003523/0.7687, allocations: 2 MB / 0.6782 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.7688, allocations: 8 kB / 0.6782 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.011e-05/0.7688, allocations: 12 kB / 0.6782 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004751/0.7735, allocations: 1.351 MB / 0.6795 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006574/0.7742, allocations: 143.7 kB / 0.6797 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002876/0.7771, allocations: 1.932 MB / 0.6815 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.7783, allocations: 103.9 kB / 0.6816 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.7785, allocations: 67.98 kB / 0.6817 GB, free: 10.58 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.0007698/0.7792, allocations: 405.3 kB / 0.6821 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003143/0.7796, allocations: 114.6 kB / 0.6822 GB, free: 10.06 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002758/0.7823, allocations: 1.491 MB / 0.6837 GB, free: 8.555 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.7823, allocations: 8 kB / 0.6837 GB, free: 8.547 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.7824, allocations: 0 / 0.6837 GB, free: 8.547 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.7824, allocations: 7.984 kB / 0.6837 GB, free: 8.539 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004563/0.7869, allocations: 2.684 MB / 0.6863 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.787, allocations: 0 / 0.6863 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001789/0.7888, allocations: 327.6 kB / 0.6866 GB, free: 5.465 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001986/0.789, allocations: 76.62 kB / 0.6867 GB, free: 5.387 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.7891, allocations: 39.97 kB / 0.6867 GB, free: 5.348 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002281/0.7914, allocations: 2.824 MB / 0.6895 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.7914, allocations: 0 / 0.6895 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.7942, allocations: 1.907 MB / 0.6913 GB, free: 340 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000643/0.7949, allocations: 335.6 kB / 0.6917 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002401/0.7951, allocations: 27.94 kB / 0.6917 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.7962, allocations: 83.91 kB / 0.6918 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.7964, allocations: 60.52 kB / 0.6918 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/0.7966, allocations: 71.94 kB / 0.6919 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001077/0.7977, allocations: 0.7931 MB / 0.6927 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7977, allocations: 0 / 0.6927 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001587/0.7993, allocations: 491.8 kB / 0.6931 GB, free: 14.46 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.005393/0.8047, allocations: 3.133 MB / 0.6962 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00271/0.8074, allocations: 1.463 MB / 0.6976 GB, free: 9.848 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.407e-06/0.8074, allocations: 4.656 kB / 0.6976 GB, free: 9.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.8091, allocations: 0.8575 MB / 0.6985 GB, free: 8.969 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003433/0.8125, allocations: 0.7276 MB / 0.6992 GB, free: 8.25 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2273/1.04, allocations: 14.01 MB / 0.7129 GB, free: 202.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008105/1.041, allocations: 1.179 MB / 0.714 GB, free: 201.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001839/1.043, allocations: 484.5 kB / 0.7145 GB, free: 201.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006583/1.043, allocations: 446.2 kB / 0.7149 GB, free: 201.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.042e-06/1.043, allocations: 0 / 0.7149 GB, free: 201.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06606/1.109, allocations: 48.32 MB / 0.7621 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/1.109, allocations: 322.9 kB / 0.7624 GB, free: 165 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.218/4.328, allocations: 0 / 0.7624 GB, free: 165 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