Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002155/0.002154, allocations: 178.3 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.01/2.01, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 95.06 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2929/0.2929, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.492e-05/1.502e-05, allocations: 224 / 418.2 MB, free: 41.02 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4627/0.4627, allocations: 58.85 MB / 477.1 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.415/2.877, allocations: 0.8254 GB / 1.291 GB, free: 96.62 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003232/2.878, allocations: 97.23 kB / 1.291 GB, free: 96.56 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.181/7.058, allocations: 0.7026 GB / 1.994 GB, free: 80.46 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.565e-06/7.058, allocations: 0 / 1.994 GB, free: 80.46 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0001258/7.059, allocations: 27.44 kB / 1.994 GB, free: 80.46 MB / 0.5108 GB 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.007361/7.066, allocations: 1.561 MB / 1.996 GB, free: 80.07 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/7.066, allocations: 8.812 kB / 1.996 GB, free: 80.07 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002799/7.069, allocations: 312.1 kB / 1.996 GB, free: 80 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003309/7.072, allocations: 0.8019 MB / 1.997 GB, free: 79.77 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002038/7.072, allocations: 107.7 kB / 1.997 GB, free: 79.7 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005626/7.073, allocations: 67.42 kB / 1.997 GB, free: 79.7 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004421/7.077, allocations: 1.448 MB / 1.998 GB, free: 79.7 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005092/7.083, allocations: 1.614 MB / 2 GB, free: 79.48 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.952e-05/7.083, allocations: 7.125 kB / 2 GB, free: 79.47 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002897/7.083, allocations: 4.5 kB / 2 GB, free: 79.47 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000161/7.083, allocations: 86.52 kB / 2 GB, free: 79.47 MB / 0.5108 GB Warning: The model contains alias variables with conflicting start and/or 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.01626/7.099, allocations: 6.701 MB / 2.006 GB, free: 76.12 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/7.101, allocations: 0.7787 MB / 2.007 GB, free: 76.09 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008301/7.102, allocations: 429.7 kB / 2.008 GB, free: 76.08 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000383/7.102, allocations: 256.6 kB / 2.008 GB, free: 75.89 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.914e-05/7.102, allocations: 46.02 kB / 2.008 GB, free: 75.85 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=60): time 2.996e-06/7.102, allocations: 3.656 kB / 2.008 GB, free: 75.85 MB / 0.5108 GB Notification: Performance of matching and sorting (n=72): time 0.01572/7.118, allocations: 3.537 MB / 2.011 GB, free: 75.18 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/7.118, allocations: 111.1 kB / 2.011 GB, free: 75.06 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/7.119, allocations: 0.5736 MB / 2.012 GB, free: 74.93 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.0003324/7.12, allocations: 29.67 kB / 2.012 GB, free: 74.9 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003624/7.12, allocations: 0.5659 MB / 2.013 GB, free: 74.59 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.000324/7.12, allocations: 254.3 kB / 2.013 GB, free: 74.46 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/7.121, allocations: 0 / 2.013 GB, free: 74.46 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001032/7.121, allocations: 352.4 kB / 2.013 GB, free: 74.15 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/7.122, allocations: 0.5589 MB / 2.014 GB, free: 74.15 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/7.123, allocations: 0.8466 MB / 2.015 GB, free: 73.83 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/7.125, allocations: 0.6658 MB / 2.015 GB, free: 73.82 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/7.125, allocations: 6.438 kB / 2.015 GB, free: 73.82 MB / 0.5108 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.004252/7.129, allocations: 1.805 MB / 2.017 GB, free: 73.74 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/7.129, allocations: 7.469 kB / 2.017 GB, free: 73.74 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/7.129, allocations: 7.219 kB / 2.017 GB, free: 73.74 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007396/7.137, allocations: 1.257 MB / 2.018 GB, free: 73.72 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/7.138, allocations: 143.4 kB / 2.018 GB, free: 73.72 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004283/7.142, allocations: 1.985 MB / 2.02 GB, free: 73.17 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/7.144, allocations: 93.03 kB / 2.02 GB, free: 73.17 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002297/7.145, allocations: 68.7 kB / 2.02 GB, free: 73.17 MB / 0.5108 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume.m:DUMMY_STATE(min = 0.0 unit = "kg" ) "Mass of fluid" type: Real volume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 34} Notification: Performance of prepare postOptimizeDAE: time 0.0004607/7.145, allocations: 142.6 kB / 2.021 GB, free: 73.06 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003116/7.145, allocations: 80 kB / 2.021 GB, free: 73.02 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003299/7.149, allocations: 1.323 MB / 2.022 GB, free: 72.95 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/7.149, allocations: 6.625 kB / 2.022 GB, free: 72.95 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/7.149, allocations: 8.422 kB / 2.022 GB, free: 72.95 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/7.149, allocations: 3.844 kB / 2.022 GB, free: 72.95 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006394/7.155, allocations: 2.553 MB / 2.024 GB, free: 72.62 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/7.155, allocations: 0 / 2.024 GB, free: 72.62 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003644/7.159, allocations: 335.4 kB / 2.025 GB, free: 72.62 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002903/7.159, allocations: 68.27 kB / 2.025 GB, free: 72.62 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001631/7.159, allocations: 28.3 kB / 2.025 GB, free: 72.62 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002488/7.162, allocations: 2.766 MB / 2.028 GB, free: 70.16 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/7.162, allocations: 3.953 kB / 2.028 GB, free: 70.16 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003833/7.166, allocations: 1.833 MB / 2.029 GB, free: 69.93 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/7.167, allocations: 306.5 kB / 2.03 GB, free: 69.79 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002535/7.167, allocations: 23.16 kB / 2.03 GB, free: 69.79 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001853/7.169, allocations: 70.47 kB / 2.03 GB, free: 69.79 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/7.169, allocations: 53.16 kB / 2.03 GB, free: 69.79 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001892/7.17, allocations: 67.94 kB / 2.03 GB, free: 69.79 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.000725/7.17, allocations: 456.7 kB / 2.03 GB, free: 69.7 MB / 0.5108 GB Notification: Performance of sort global known variables: time 4.21e-07/7.17, allocations: 0 / 2.03 GB, free: 69.7 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.002871/7.173, allocations: 0.5675 MB / 2.031 GB, free: 69.7 MB / 0.5108 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004774/7.178, allocations: 1.596 MB / 2.032 GB, free: 69.46 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.003803/7.182, allocations: 1.426 MB / 2.034 GB, free: 69.44 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/7.182, allocations: 7.875 kB / 2.034 GB, free: 69.43 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.002409/7.184, allocations: 0.8252 MB / 2.035 GB, free: 69.33 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00386/7.188, allocations: 416.7 kB / 2.035 GB, free: 69.31 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006906/7.195, allocations: 2.372 MB / 2.037 GB, free: 68.84 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009261/7.196, allocations: 1.201 MB / 2.038 GB, free: 68.14 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007545/7.197, allocations: 100.6 kB / 2.039 GB, free: 68.13 MB / 0.5108 GB Notification: Performance of SimCode: time 1.052e-06/7.197, allocations: 0 / 2.039 GB, free: 68.13 MB / 0.5108 GB Notification: Performance of Templates: time 0.06298/7.26, allocations: 31.94 MB / 2.07 GB, free: 67.33 MB / 0.5108 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches