Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.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) 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(Modelica.Media.Examples.TestOnly.MixIdealGasAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.MixIdealGasAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_MixIdealGasAir",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.002375/0.002375, allocations: 187 kB / 16.4 MB, free: 5.625 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.24/2.24, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001133/0.001133, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005396/0.0005397, allocations: 8 kB / 327 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1257, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.MixIdealGasAir): time 0.4773/0.603, allocations: 125.9 MB / 0.4888 GB, free: 15.47 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004971/0.6081, allocations: 2.515 MB / 0.4913 GB, free: 12.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.92e-05/0.6082, allocations: 7.938 kB / 0.4913 GB, free: 12.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003276/0.6086, allocations: 43.83 kB / 0.4913 GB, free: 12.91 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002906/0.6115, allocations: 0.6971 MB / 0.492 GB, free: 12.21 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007451/0.6123, allocations: 174.5 kB / 0.4922 GB, free: 12.04 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004868/0.6128, allocations: 211.6 kB / 0.4924 GB, free: 11.83 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.765e-05/0.6129, allocations: 13.08 kB / 0.4924 GB, free: 11.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004519/0.6133, allocations: 163.5 kB / 0.4926 GB, free: 11.66 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.6136, allocations: 87.73 kB / 0.4926 GB, free: 11.57 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.166e-05/0.6136, allocations: 8 kB / 0.4927 GB, free: 11.56 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00421/0.6178, allocations: 1.08 MB / 0.4937 GB, free: 10.48 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.6181, allocations: 67.84 kB / 0.4938 GB, free: 10.41 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.6182, allocations: 57.64 kB / 0.4938 GB, free: 10.35 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001931/0.6201, allocations: 0.595 MB / 0.4944 GB, free: 9.758 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.6202, allocations: 4 kB / 0.4944 GB, free: 9.754 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.6202, allocations: 0 / 0.4944 GB, free: 9.754 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.6202, allocations: 0 / 0.4944 GB, free: 9.754 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001156/0.6214, allocations: 0.5038 MB / 0.4949 GB, free: 9.203 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.849e-05/0.6215, allocations: 8.031 kB / 0.4949 GB, free: 9.195 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.6216, allocations: 54.55 kB / 0.495 GB, free: 9.133 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002151/0.6237, allocations: 199.6 kB / 0.4952 GB, free: 8.938 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004311/0.6242, allocations: 242.7 kB / 0.4954 GB, free: 8.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.6243, allocations: 16.38 kB / 0.4954 GB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.139e-05/0.6244, allocations: 19.91 kB / 0.4954 GB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009201/0.6253, allocations: 373.7 kB / 0.4958 GB, free: 8.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.6253, allocations: 0 / 0.4958 GB, free: 8.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.239e-05/0.6254, allocations: 8 kB / 0.4958 GB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.6254, allocations: 8 kB / 0.4958 GB, free: 8.234 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009667/0.6264, allocations: 412.6 kB / 0.4962 GB, free: 7.832 MB / 378.7 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.002693/0.6291, allocations: 0.8087 MB / 0.497 GB, free: 6.969 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006047/0.6297, allocations: 213.1 kB / 0.4972 GB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002015/0.6318, allocations: 0.6831 MB / 0.4978 GB, free: 5.949 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.6318, allocations: 38.56 kB / 0.4979 GB, free: 5.902 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 3.306e-06/0.6319, allocations: 4 kB / 0.4979 GB, free: 5.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001986/0.6338, allocations: 359.4 kB / 0.4982 GB, free: 5.539 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.634, allocations: 85.06 kB / 0.4983 GB, free: 5.438 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.6341, allocations: 117.7 kB / 0.4984 GB, free: 5.312 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.751e-05/0.6342, allocations: 29.7 kB / 0.4984 GB, free: 5.277 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.6343, allocations: 178.9 kB / 0.4986 GB, free: 5.102 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.6344, allocations: 110.5 kB / 0.4987 GB, free: 4.992 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.716e-05/0.6345, allocations: 4 kB / 0.4987 GB, free: 4.988 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.6346, allocations: 330.8 kB / 0.499 GB, free: 4.656 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003378/0.635, allocations: 92.61 kB / 0.4991 GB, free: 4.566 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004033/0.6354, allocations: 191.4 kB / 0.4993 GB, free: 4.344 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003951/0.6358, allocations: 126.4 kB / 0.4994 GB, free: 4.223 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.6358, allocations: 0 / 0.4994 GB, free: 4.223 MB / 378.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001031/0.6369, allocations: 333.1 kB / 0.4998 GB, free: 3.891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.6369, allocations: 8 kB / 0.4998 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.6369, allocations: 4 kB / 0.4998 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.637, allocations: 4 kB / 0.4998 GB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006497/0.6376, allocations: 71.89 kB / 0.4998 GB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/0.6376, allocations: 12.2 kB / 0.4998 GB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004186/0.6381, allocations: 39.67 kB / 0.4999 GB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.589e-05/0.6382, allocations: 16 kB / 0.4999 GB, free: 3.738 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002217/0.6384, allocations: 145.7 kB / 0.5 GB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.6385, allocations: 11.91 kB / 0.5001 GB, free: 3.574 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001157/0.6397, allocations: 322.3 kB / 0.5004 GB, free: 3.258 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.6397, allocations: 8 kB / 0.5004 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.6397, allocations: 0 / 0.5004 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.6398, allocations: 7.938 kB / 0.5004 GB, free: 3.242 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009471/0.6407, allocations: 330.9 kB / 0.5007 GB, free: 2.867 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.6407, allocations: 3.938 kB / 0.5007 GB, free: 2.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006528/0.6414, allocations: 59.88 kB / 0.5007 GB, free: 2.805 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.067e-05/0.6414, allocations: 4 kB / 0.5008 GB, free: 2.801 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.6415, allocations: 8.875 kB / 0.5008 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/0.6415, allocations: 0 / 0.5008 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6415, allocations: 0 / 0.5008 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.6428, allocations: 0.5246 MB / 0.5013 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.95e-05/0.6429, allocations: 92.95 kB / 0.5014 GB, free: 2.137 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.281e-05/0.6429, allocations: 4.062 kB / 0.5014 GB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005671/0.6435, allocations: 22.83 kB / 0.5014 GB, free: 2.113 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.091e-05/0.6436, allocations: 31.92 kB / 0.5014 GB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-05/0.6437, allocations: 12 kB / 0.5014 GB, free: 2.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.775e-05/0.6437, allocations: 91.58 kB / 0.5015 GB, free: 1.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6437, allocations: 0 / 0.5015 GB, free: 1.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001071/0.6448, allocations: 215.8 kB / 0.5017 GB, free: 1.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,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 (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002963/0.6478, allocations: 1.384 MB / 0.5031 GB, free: 360 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008563/0.6487, allocations: 260.1 kB / 0.5033 GB, free: 100 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/0.6487, allocations: 4 kB / 0.5033 GB, free: 96 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000378/0.6491, allocations: 127.9 kB / 0.5034 GB, free: 15.96 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009143/0.65, allocations: 83.88 kB / 0.5035 GB, free: 15.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004663/0.6547, allocations: 3.281 MB / 0.5067 GB, free: 12.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.6552, allocations: 0.7404 MB / 0.5075 GB, free: 11.74 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003028/0.6555, allocations: 63.41 kB / 0.5075 GB, free: 11.68 MB / 394.7 MB Notification: Performance of SimCode: time 1.153e-06/0.6555, allocations: 0 / 0.5075 GB, free: 11.68 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.947/3.602, allocations: 7.198 MB / 0.5145 GB, free: 4.465 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_MixIdealGasAir.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.mat does not exist to compare? outputFormat=mat