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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 177.4 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 88.98 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4634/0.4634, allocations: 44.22 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004316/0.0004318, allocations: 8 kB / 460 MB, free: 1.414 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5163/0.5168, allocations: 61.89 MB / 0.5096 GB, free: 38.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.297/2.814, allocations: 0.7922 GB / 1.302 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003354/2.814, allocations: 106.3 kB / 1.302 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.419/5.233, allocations: 0.7032 GB / 2.005 GB, free: 72.76 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.026e-06/5.233, allocations: 0 / 2.005 GB, free: 72.76 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.205e-05/5.233, allocations: 29.44 kB / 2.005 GB, free: 72.75 MB / 0.5261 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.005003/5.238, allocations: 1.671 MB / 2.007 GB, free: 71.62 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.433e-05/5.239, allocations: 8.281 kB / 2.007 GB, free: 71.62 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003371/5.239, allocations: 175.2 kB / 2.007 GB, free: 71.48 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001436/5.24, allocations: 315.4 kB / 2.007 GB, free: 71.34 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/5.242, allocations: 0.8105 MB / 2.008 GB, free: 70.77 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/5.242, allocations: 145.7 kB / 2.008 GB, free: 70.67 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/5.243, allocations: 104.3 kB / 2.008 GB, free: 70.63 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002683/5.245, allocations: 1.792 MB / 2.01 GB, free: 69.52 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.717e-05/5.245, allocations: 14.47 kB / 2.01 GB, free: 69.52 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001602/5.246, allocations: 46.17 kB / 2.01 GB, free: 69.48 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.553e-05/5.246, allocations: 76.25 kB / 2.01 GB, free: 69.46 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002373/5.248, allocations: 1.635 MB / 2.012 GB, free: 68.01 MB / 0.5261 GB 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.009209/5.257, allocations: 6.849 MB / 2.018 GB, free: 60.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/5.258, allocations: 0.791 MB / 2.019 GB, free: 60.01 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002576/5.259, allocations: 271.9 kB / 2.019 GB, free: 59.69 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/5.259, allocations: 47.36 kB / 2.02 GB, free: 59.63 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=60): time 2.424e-06/5.259, allocations: 0 / 2.02 GB, free: 59.63 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.01037/5.269, allocations: 4.113 MB / 2.024 GB, free: 55.45 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/5.269, allocations: 119.1 kB / 2.024 GB, free: 55.32 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/5.271, allocations: 0.9944 MB / 2.025 GB, free: 54.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001775/5.271, allocations: 45.31 kB / 2.025 GB, free: 54.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003648/5.271, allocations: 0.5183 MB / 2.025 GB, free: 53.73 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002241/5.271, allocations: 264.1 kB / 2.025 GB, free: 53.48 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.358e-05/5.271, allocations: 20 kB / 2.025 GB, free: 53.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001126/5.272, allocations: 345.9 kB / 2.026 GB, free: 53.11 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007977/5.272, allocations: 0.5719 MB / 2.026 GB, free: 52.54 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000938/5.273, allocations: 0.8615 MB / 2.027 GB, free: 51.56 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000863/5.274, allocations: 0.6855 MB / 2.028 GB, free: 50.89 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/5.274, allocations: 4 kB / 2.028 GB, free: 50.88 MB / 0.5261 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00277/5.277, allocations: 1.985 MB / 2.03 GB, free: 48.89 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/5.277, allocations: 11.95 kB / 2.03 GB, free: 48.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/5.277, allocations: 12 kB / 2.03 GB, free: 48.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004575/5.282, allocations: 1.402 MB / 2.031 GB, free: 47.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005713/5.282, allocations: 146.2 kB / 2.031 GB, free: 47.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002525/5.285, allocations: 1.918 MB / 2.033 GB, free: 45.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/5.286, allocations: 119.7 kB / 2.033 GB, free: 45.26 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/5.286, allocations: 67.98 kB / 2.033 GB, free: 45.2 MB / 0.5261 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 (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 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0009303/5.287, allocations: 401.3 kB / 2.034 GB, free: 44.79 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/5.288, allocations: 114.7 kB / 2.034 GB, free: 44.68 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002341/5.29, allocations: 1.486 MB / 2.035 GB, free: 43.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/5.29, allocations: 8 kB / 2.035 GB, free: 43.17 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/5.29, allocations: 0 / 2.035 GB, free: 43.17 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/5.29, allocations: 11.98 kB / 2.035 GB, free: 43.16 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004166/5.294, allocations: 2.687 MB / 2.038 GB, free: 40.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/5.294, allocations: 0 / 2.038 GB, free: 40.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/5.296, allocations: 327.6 kB / 2.038 GB, free: 40.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001771/5.296, allocations: 68.78 kB / 2.038 GB, free: 40.05 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.024e-05/5.296, allocations: 39.97 kB / 2.038 GB, free: 40.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001738/5.298, allocations: 2.848 MB / 2.041 GB, free: 36.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/5.298, allocations: 7.016 kB / 2.041 GB, free: 36.89 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/5.3, allocations: 1.889 MB / 2.043 GB, free: 34.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/5.302, allocations: 351.5 kB / 2.043 GB, free: 34.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/5.302, allocations: 31.98 kB / 2.043 GB, free: 34.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/5.303, allocations: 87.83 kB / 2.043 GB, free: 34.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/5.303, allocations: 52.56 kB / 2.044 GB, free: 34.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/5.303, allocations: 67.89 kB / 2.044 GB, free: 34.38 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00109/5.304, allocations: 0.7852 MB / 2.044 GB, free: 33.58 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.21e-07/5.304, allocations: 0 / 2.044 GB, free: 33.58 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00236/5.307, allocations: 0.5662 MB / 2.045 GB, free: 33.02 MB / 0.5261 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 (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.006226/5.313, allocations: 3.811 MB / 2.049 GB, free: 29.37 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002611/5.315, allocations: 1.458 MB / 2.05 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/5.315, allocations: 0.6562 kB / 2.05 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001459/5.317, allocations: 0.8465 MB / 2.051 GB, free: 27.05 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003889/5.321, allocations: 0.7181 MB / 2.052 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01792/5.339, allocations: 14.72 MB / 2.066 GB, free: 11.28 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007168/5.34, allocations: 1.188 MB / 2.067 GB, free: 10.06 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001877/5.341, allocations: 479.9 kB / 2.068 GB, free: 9.617 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000681/5.342, allocations: 451.3 kB / 2.068 GB, free: 9.176 MB / 0.5261 GB Notification: Performance of SimCode: time 1.733e-06/5.342, allocations: 3.719 kB / 2.068 GB, free: 9.176 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4682/5.81, allocations: 60.94 MB / 2.128 GB, free: 85.68 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/5.811, allocations: 285.9 kB / 2.128 GB, free: 85.33 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.248/10.06, allocations: 1.547 kB / 2.128 GB, free: 85.33 MB / 0.5417 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat