Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002255/0.002254, allocations: 177.8 kB / 8.363 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.07/2.07, 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.001128/0.001127, allocations: 89.53 kB / 262.1 MB, free: 13.88 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.3015/0.3015, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.078e-05/2.08e-05, allocations: 4 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4328/0.4329, allocations: 58.83 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.565/2.998, allocations: 0.8263 GB / 1.292 GB, free: 95.29 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004492/2.998, allocations: 94.56 kB / 1.292 GB, free: 95.24 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.194/7.193, allocations: 0.7272 GB / 2.02 GB, free: 79.58 MB / 0.5108 GB Notification: Performance of FrontEnd: time 3.727e-06/7.193, allocations: 1.5 kB / 2.02 GB, free: 79.58 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 9.738e-05/7.193, allocations: 26.78 kB / 2.02 GB, free: 79.58 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.006087/7.199, allocations: 1.377 MB / 2.021 GB, free: 79.08 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 6.118e-05/7.199, allocations: 7.812 kB / 2.021 GB, free: 79.08 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002513/7.201, allocations: 285 kB / 2.021 GB, free: 79.03 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002599/7.204, allocations: 0.663 MB / 2.022 GB, free: 78.79 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001427/7.204, allocations: 93.69 kB / 2.022 GB, free: 78.73 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002051/7.205, allocations: 42.28 kB / 2.022 GB, free: 78.73 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002209/7.207, allocations: 0.8725 MB / 2.023 GB, free: 78.73 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002566/7.209, allocations: 1.115 MB / 2.024 GB, free: 78.5 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.029e-05/7.209, allocations: 6.969 kB / 2.024 GB, free: 78.5 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001834/7.21, allocations: 3.969 kB / 2.024 GB, free: 78.5 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/7.21, allocations: 62.81 kB / 2.024 GB, free: 78.5 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.009794/7.22, allocations: 4.748 MB / 2.029 GB, free: 75.79 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/7.22, allocations: 248.2 kB / 2.029 GB, free: 75.77 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002887/7.221, allocations: 133.5 kB / 2.029 GB, free: 75.76 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000376/7.221, allocations: 245.1 kB / 2.029 GB, free: 75.57 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/7.221, allocations: 40.08 kB / 2.029 GB, free: 75.53 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=28): time 3.477e-06/7.221, allocations: 3.875 kB / 2.029 GB, free: 75.53 MB / 0.5108 GB Notification: Performance of matching and sorting (n=33): time 0.009605/7.231, allocations: 1.537 MB / 2.031 GB, free: 74.9 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/7.231, allocations: 139.5 kB / 2.031 GB, free: 74.75 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/7.232, allocations: 0.6564 MB / 2.032 GB, free: 74.6 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.0001014/7.232, allocations: 28.67 kB / 2.032 GB, free: 74.57 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004259/7.232, allocations: 0.6056 MB / 2.032 GB, free: 74.23 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/7.233, allocations: 129.3 kB / 2.032 GB, free: 74.17 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/7.233, allocations: 0 / 2.032 GB, free: 74.17 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001149/7.233, allocations: 354.3 kB / 2.033 GB, free: 73.86 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005566/7.233, allocations: 240.1 kB / 2.033 GB, free: 73.86 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009473/7.234, allocations: 0.8272 MB / 2.034 GB, free: 73.11 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009463/7.235, allocations: 429.1 kB / 2.034 GB, free: 73.1 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/7.235, allocations: 7.5 kB / 2.034 GB, free: 73.1 MB / 0.5108 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002538/7.238, allocations: 1.014 MB / 2.035 GB, free: 73.04 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/7.238, allocations: 14.97 kB / 2.035 GB, free: 73.04 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/7.238, allocations: 19.06 kB / 2.035 GB, free: 73.04 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001844/7.24, allocations: 265.5 kB / 2.035 GB, free: 73.03 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/7.241, allocations: 202.3 kB / 2.036 GB, free: 73.03 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/7.243, allocations: 0.9186 MB / 2.036 GB, free: 72.5 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/7.244, allocations: 40.06 kB / 2.037 GB, free: 72.5 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001393/7.244, allocations: 72.17 kB / 2.037 GB, free: 72.5 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0002853/7.245, allocations: 153.8 kB / 2.037 GB, free: 72.39 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009861/7.246, allocations: 382.9 kB / 2.037 GB, free: 72.31 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/7.246, allocations: 78.56 kB / 2.037 GB, free: 72.27 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/7.247, allocations: 440.3 kB / 2.038 GB, free: 72.2 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/7.247, allocations: 6.219 kB / 2.038 GB, free: 72.2 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/7.247, allocations: 3.953 kB / 2.038 GB, free: 72.2 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/7.247, allocations: 0 / 2.038 GB, free: 72.2 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002467/7.25, allocations: 1.028 MB / 2.039 GB, free: 71.91 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/7.25, allocations: 7.859 kB / 2.039 GB, free: 71.9 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001934/7.252, allocations: 179.4 kB / 2.039 GB, free: 71.9 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000135/7.252, allocations: 18.59 kB / 2.039 GB, free: 71.89 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.621e-05/7.252, allocations: 6.812 kB / 2.039 GB, free: 71.89 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00205/7.254, allocations: 2.585 MB / 2.041 GB, free: 69.45 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/7.254, allocations: 0 / 2.041 GB, free: 69.45 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/7.255, allocations: 0.657 MB / 2.042 GB, free: 69.24 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005275/7.256, allocations: 192.2 kB / 2.042 GB, free: 69.11 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/7.256, allocations: 2.562 kB / 2.042 GB, free: 69.11 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008326/7.257, allocations: 22.72 kB / 2.042 GB, free: 69.11 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-05/7.257, allocations: 21.92 kB / 2.042 GB, free: 69.11 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-05/7.257, allocations: 19.72 kB / 2.042 GB, free: 69.11 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.0008859/7.258, allocations: 489.1 kB / 2.043 GB, free: 69.02 MB / 0.5108 GB Notification: Performance of sort global known variables: time 5.01e-07/7.258, allocations: 0 / 2.043 GB, free: 69.02 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.002708/7.261, allocations: 483 kB / 2.043 GB, free: 68.98 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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.00649/7.267, allocations: 2.745 MB / 2.046 GB, free: 68.01 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.001963/7.269, allocations: 0.6021 MB / 2.046 GB, free: 68 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/7.27, allocations: 5.125 kB / 2.046 GB, free: 68 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.001312/7.271, allocations: 334.1 kB / 2.047 GB, free: 67.89 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002769/7.274, allocations: 321.6 kB / 2.047 GB, free: 67.88 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005158/7.279, allocations: 1.473 MB / 2.048 GB, free: 67.46 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006693/7.28, allocations: 1.039 MB / 2.049 GB, free: 66.76 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007213/7.28, allocations: 322.2 kB / 2.05 GB, free: 66.75 MB / 0.5108 GB Notification: Performance of SimCode: time 1.533e-06/7.28, allocations: 0 / 2.05 GB, free: 66.75 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.641/10.92, allocations: 30.32 MB / 2.079 GB, free: 65.59 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat