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.0009601/0.0009601, allocations: 106.1 kB / 15.98 MB, free: 6.348 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.0009646/0.0009647, allocations: 197.6 kB / 16.91 MB, free: 6.191 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.564/1.564, allocations: 205.1 MB / 222.8 MB, free: 4.707 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.3952/0.3952, allocations: 43.49 MB / 313.6 MB, free: 8.285 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.001473/0.001473, allocations: 75.88 kB / 382.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.168, allocations: 57.78 MB / 440.1 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5592/0.7272, allocations: 181.3 MB / 0.6068 GB, free: 6.512 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01118/0.7385, allocations: 7.038 MB / 0.6137 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.7396, allocations: 27.75 kB / 0.6137 GB, free: 15.42 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.7412, allocations: 390 kB / 0.6141 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006706/0.7479, allocations: 1.884 MB / 0.6159 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006061/0.754, allocations: 1.588 MB / 0.6175 GB, free: 11.59 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004048/0.7581, allocations: 2.244 MB / 0.6197 GB, free: 9.34 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001443/0.7595, allocations: 0.7456 MB / 0.6204 GB, free: 8.602 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006278/0.7658, allocations: 1.91 MB / 0.6223 GB, free: 6.691 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004601/0.7705, allocations: 1.722 MB / 0.624 GB, free: 4.965 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003896/0.7709, allocations: 100 kB / 0.6241 GB, free: 4.867 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005429/0.7763, allocations: 1.918 MB / 0.6259 GB, free: 2.945 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001635/0.778, allocations: 0.6859 MB / 0.6266 GB, free: 2.258 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001414/0.7794, allocations: 0.7587 MB / 0.6273 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.429/1.208, allocations: 2.908 MB / 0.6302 GB, free: 9.82 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/1.209, allocations: 0 / 0.6302 GB, free: 9.82 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.525e-06/1.209, allocations: 0 / 0.6302 GB, free: 9.82 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.132e-05/1.209, allocations: 1.938 kB / 0.6302 GB, free: 9.82 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.003865/1.212, allocations: 1.682 MB / 0.6318 GB, free: 9.145 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/1.213, allocations: 13.92 kB / 0.6318 GB, free: 9.141 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002496/1.213, allocations: 175.8 kB / 0.632 GB, free: 9.098 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001568/1.214, allocations: 313.3 kB / 0.6323 GB, free: 9.035 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001415/1.216, allocations: 0.7405 MB / 0.633 GB, free: 8.746 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/1.216, allocations: 141.7 kB / 0.6332 GB, free: 8.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/1.216, allocations: 107.9 kB / 0.6333 GB, free: 8.676 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00276/1.219, allocations: 1.847 MB / 0.6351 GB, free: 8.473 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.407e-05/1.219, allocations: 3.688 kB / 0.6351 GB, free: 8.473 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/1.219, allocations: 46 kB / 0.6351 GB, free: 8.473 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001058/1.219, allocations: 94.77 kB / 0.6352 GB, free: 8.473 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002576/1.222, allocations: 1.696 MB / 0.6369 GB, free: 8.461 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.009775/1.232, allocations: 6.99 MB / 0.6437 GB, free: 4.969 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/1.233, allocations: 0.8745 MB / 0.6445 GB, free: 4.941 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006253/1.234, allocations: 453.2 kB / 0.645 GB, free: 4.934 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001778/1.234, allocations: 141.2 kB / 0.6451 GB, free: 4.84 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/1.234, allocations: 48.47 kB / 0.6452 GB, free: 4.801 MB / 494.1 MB Notification: Performance of pre-optimization done (n=60): time 4.538e-06/1.234, allocations: 0 / 0.6452 GB, free: 4.801 MB / 494.1 MB Notification: Performance of matching and sorting (n=72): time 0.01217/1.246, allocations: 4.251 MB / 0.6493 GB, free: 4.023 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/1.246, allocations: 113.5 kB / 0.6494 GB, free: 3.898 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002358/1.249, allocations: 1.104 MB / 0.6505 GB, free: 3.742 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002038/1.249, allocations: 44.73 kB / 0.6505 GB, free: 3.711 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000506/1.249, allocations: 0.523 MB / 0.6511 GB, free: 3.477 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/1.25, allocations: 264.1 kB / 0.6513 GB, free: 3.312 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004447/1.25, allocations: 213.1 kB / 0.6515 GB, free: 3.289 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002774/1.25, allocations: 344.6 kB / 0.6518 GB, free: 18.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/1.251, allocations: 0.5846 MB / 0.6524 GB, free: 18.98 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/1.253, allocations: 0.8751 MB / 0.6533 GB, free: 18.67 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/1.256, allocations: 1.45 MB / 0.6547 GB, free: 18.37 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/1.256, allocations: 2.406 kB / 0.6547 GB, free: 18.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.004187/1.26, allocations: 2 MB / 0.6566 GB, free: 18.26 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.08e-05/1.26, allocations: 14.56 kB / 0.6566 GB, free: 18.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/1.26, allocations: 10.38 kB / 0.6567 GB, free: 18.26 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00567/1.265, allocations: 1.325 MB / 0.6579 GB, free: 18.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008978/1.266, allocations: 138.8 kB / 0.6581 GB, free: 18.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003777/1.27, allocations: 1.921 MB / 0.66 GB, free: 17.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/1.272, allocations: 110.8 kB / 0.6601 GB, free: 17.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002625/1.272, allocations: 70.5 kB / 0.6601 GB, free: 17.68 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.001313/1.274, allocations: 399.9 kB / 0.6605 GB, free: 17.56 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005299/1.274, allocations: 112.2 kB / 0.6606 GB, free: 17.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003464/1.278, allocations: 1.396 MB / 0.662 GB, free: 17.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/1.278, allocations: 8.828 kB / 0.662 GB, free: 17.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/1.278, allocations: 0.8125 kB / 0.662 GB, free: 17.43 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/1.278, allocations: 12.33 kB / 0.662 GB, free: 17.42 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0064/1.284, allocations: 2.683 MB / 0.6646 GB, free: 17.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/1.284, allocations: 0.875 kB / 0.6646 GB, free: 17.08 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001854/1.286, allocations: 328.7 kB / 0.6649 GB, free: 17.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002174/1.286, allocations: 69.33 kB / 0.665 GB, free: 17.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/1.286, allocations: 37.8 kB / 0.665 GB, free: 17.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002545/1.289, allocations: 3.03 MB / 0.668 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/1.289, allocations: 0 / 0.668 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00379/1.293, allocations: 1.904 MB / 0.6699 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/1.294, allocations: 335.1 kB / 0.6702 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004685/1.294, allocations: 32.53 kB / 0.6702 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001566/1.296, allocations: 82.25 kB / 0.6703 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/1.296, allocations: 59.88 kB / 0.6703 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001935/1.296, allocations: 66.17 kB / 0.6704 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001742/1.298, allocations: 0.7928 MB / 0.6712 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.71e-07/1.298, allocations: 0.6875 kB / 0.6712 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002897/1.301, allocations: 0.5251 MB / 0.6717 GB, free: 13.79 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.007182/1.308, allocations: 3.237 MB / 0.6749 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003741/1.312, allocations: 1.802 MB / 0.6766 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/1.312, allocations: 2.938 kB / 0.6766 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002125/1.314, allocations: 0.8632 MB / 0.6775 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005816/1.32, allocations: 0.7702 MB / 0.6782 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02782/1.348, allocations: 14.04 MB / 0.6919 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/1.349, allocations: 1.172 MB / 0.6931 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002026/1.351, allocations: 412.4 kB / 0.6935 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008212/1.352, allocations: 434.2 kB / 0.6939 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of SimCode: time 8.42e-07/1.352, allocations: 0 / 0.6939 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1468/1.499, allocations: 50.67 MB / 0.7434 GB, free: 3.223 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003157/1.499, allocations: 308.4 kB / 0.7437 GB, free: 2.848 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.321/4.82, allocations: 0 / 0.7437 GB, free: 2.848 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