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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_cpp_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_cpp_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 3.2.3+maint.om/package.mo): time 0.001539/0.001539, allocations: 184.8 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001208/0.001208, allocations: 95.39 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5303/0.5303, allocations: 43.55 MB / 362.7 MB, free: 51.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004953/0.0004956, allocations: 12 kB / 431.5 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1412, allocations: 58.83 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.878/3.02, allocations: 0.8262 GB / 1.305 GB, free: 139.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003689/3.02, allocations: 93.17 kB / 1.305 GB, free: 139.1 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.587/6.607, allocations: 0.7121 GB / 2.017 GB, free: 45.01 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.405e-06/6.607, allocations: 0 / 2.017 GB, free: 45.01 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001026/6.607, allocations: 24.22 kB / 2.017 GB, free: 44.99 MB / 0.5105 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.01177/6.619, allocations: 1.657 MB / 2.019 GB, free: 43.28 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 9.564e-05/6.619, allocations: 16.02 kB / 2.019 GB, free: 43.26 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001404/6.621, allocations: 172.9 kB / 2.019 GB, free: 43.08 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004676/6.626, allocations: 318.2 kB / 2.019 GB, free: 42.77 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004857/6.63, allocations: 0.7946 MB / 2.02 GB, free: 41.94 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003114/6.631, allocations: 149.4 kB / 2.02 GB, free: 41.78 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008973/6.632, allocations: 104 kB / 2.02 GB, free: 41.68 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009622/6.641, allocations: 1.788 MB / 2.022 GB, free: 39.81 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.244e-05/6.642, allocations: 7.938 kB / 2.022 GB, free: 39.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004837/6.642, allocations: 51.98 kB / 2.022 GB, free: 39.75 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000218/6.642, allocations: 77.95 kB / 2.022 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009007/6.651, allocations: 1.632 MB / 2.024 GB, free: 38.04 MB / 0.5105 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.01925/6.671, allocations: 6.884 MB / 2.03 GB, free: 30.69 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002979/6.674, allocations: 0.7957 MB / 2.031 GB, free: 29.89 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005657/6.674, allocations: 248 kB / 2.031 GB, free: 29.61 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.96e-05/6.674, allocations: 43.36 kB / 2.032 GB, free: 29.56 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 6.753e-06/6.674, allocations: 0 / 2.032 GB, free: 29.56 MB / 0.5105 GB Notification: Performance of matching and sorting (n=72): time 0.0279/6.702, allocations: 4.128 MB / 2.036 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.423e-05/6.702, allocations: 111.5 kB / 2.036 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/6.704, allocations: 0.9905 MB / 2.037 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003194/6.705, allocations: 45.7 kB / 2.037 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003822/6.705, allocations: 0.513 MB / 2.037 GB, free: 23.63 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003104/6.706, allocations: 268.2 kB / 2.037 GB, free: 23.36 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/6.706, allocations: 20 kB / 2.037 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001119/6.706, allocations: 350.8 kB / 2.038 GB, free: 22.99 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001507/6.707, allocations: 0.5758 MB / 2.038 GB, free: 22.41 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/6.709, allocations: 0.8564 MB / 2.039 GB, free: 21.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/6.711, allocations: 0.6822 MB / 2.04 GB, free: 20.75 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/6.711, allocations: 4 kB / 2.04 GB, free: 20.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005078/6.716, allocations: 1.915 MB / 2.042 GB, free: 18.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/6.716, allocations: 12 kB / 2.042 GB, free: 18.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/6.716, allocations: 8 kB / 2.042 GB, free: 18.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008648/6.725, allocations: 1.367 MB / 2.043 GB, free: 17.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/6.726, allocations: 143.7 kB / 2.043 GB, free: 17.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004521/6.731, allocations: 1.918 MB / 2.045 GB, free: 15.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002062/6.733, allocations: 115.8 kB / 2.045 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000172/6.733, allocations: 63.98 kB / 2.045 GB, free: 15.17 MB / 0.5105 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.001029/6.734, allocations: 399.9 kB / 2.046 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003412/6.734, allocations: 122.6 kB / 2.046 GB, free: 14.65 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003712/6.738, allocations: 1.379 MB / 2.047 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/6.738, allocations: 8 kB / 2.047 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/6.738, allocations: 0 / 2.047 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/6.738, allocations: 3.984 kB / 2.047 GB, free: 13.24 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006681/6.745, allocations: 2.688 MB / 2.05 GB, free: 10.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/6.745, allocations: 0 / 2.05 GB, free: 10.49 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003563/6.748, allocations: 335.6 kB / 2.05 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003349/6.749, allocations: 68.78 kB / 2.05 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002252/6.749, allocations: 39.91 kB / 2.05 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00285/6.752, allocations: 2.848 MB / 2.053 GB, free: 6.938 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/6.752, allocations: 0 / 2.053 GB, free: 6.938 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004848/6.757, allocations: 1.894 MB / 2.055 GB, free: 5.016 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001271/6.758, allocations: 347.6 kB / 2.055 GB, free: 4.656 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000415/6.759, allocations: 27.95 kB / 2.055 GB, free: 4.629 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00203/6.761, allocations: 83.91 kB / 2.055 GB, free: 4.547 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002379/6.761, allocations: 52.77 kB / 2.055 GB, free: 4.496 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002059/6.761, allocations: 71.94 kB / 2.055 GB, free: 4.426 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001617/6.763, allocations: 0.7891 MB / 2.056 GB, free: 3.625 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.51e-07/6.763, allocations: 0 / 2.056 GB, free: 3.625 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003173/6.766, allocations: 0.6246 MB / 2.057 GB, free: 3 MB / 0.5105 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.426/7.192, allocations: 3.907 MB / 2.061 GB, free: 74.22 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004843/7.197, allocations: 1.459 MB / 2.062 GB, free: 74.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/7.197, allocations: 3.406 kB / 2.062 GB, free: 74.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002921/7.2, allocations: 0.8344 MB / 2.063 GB, free: 74.09 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006398/7.206, allocations: 0.7185 MB / 2.064 GB, free: 74.09 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02457/7.231, allocations: 14.83 MB / 2.078 GB, free: 66.41 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009691/7.232, allocations: 1.195 MB / 2.079 GB, free: 65.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001262/7.233, allocations: 450.7 kB / 2.08 GB, free: 65.69 MB / 0.5105 GB Notification: Performance of SimCode: time 1.383e-06/7.233, allocations: 0 / 2.08 GB, free: 65.69 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.942/11.18, allocations: 42.22 MB / 2.121 GB, free: 64.62 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat