Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.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.MixtureGases,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_MixtureGases",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.001485/0.001485, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.856/1.856, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001097/0.001097, allocations: 90.08 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005093/0.0005092, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3189, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.994/2.313, allocations: 0.738 GB / 1.104 GB, free: 14.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/2.313, allocations: 74.28 kB / 1.104 GB, free: 14.21 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6371/2.95, allocations: 107.3 MB / 1.209 GB, free: 81.79 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.174e-06/2.95, allocations: 0 / 1.209 GB, free: 81.79 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.477e-05/2.95, allocations: 4 kB / 1.209 GB, free: 81.79 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.003513/2.954, allocations: 0.7801 MB / 1.209 GB, free: 80.96 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/2.954, allocations: 8.031 kB / 1.209 GB, free: 80.95 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001451/2.954, allocations: 70.53 kB / 1.209 GB, free: 80.87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00316/2.957, allocations: 251.3 kB / 1.21 GB, free: 80.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006935/2.958, allocations: 286.6 kB / 1.21 GB, free: 80.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/2.958, allocations: 24.56 kB / 1.21 GB, free: 80.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/2.958, allocations: 27.91 kB / 1.21 GB, free: 80.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002328/2.96, allocations: 0.6524 MB / 1.211 GB, free: 79.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/2.961, allocations: 0 / 1.211 GB, free: 79.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/2.961, allocations: 23.95 kB / 1.211 GB, free: 79.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-05/2.961, allocations: 20.41 kB / 1.211 GB, free: 79.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002882/2.964, allocations: 0.7477 MB / 1.211 GB, free: 78.8 MB / 426.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.005559/2.969, allocations: 1.8 MB / 1.213 GB, free: 76.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002236/2.971, allocations: 479.2 kB / 1.214 GB, free: 76.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002173/2.974, allocations: 0.9196 MB / 1.215 GB, free: 75.36 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/2.974, allocations: 34.56 kB / 1.215 GB, free: 75.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 3.306e-06/2.974, allocations: 4 kB / 1.215 GB, free: 75.31 MB / 426.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium1.T Please use -d=bltdump for more information. Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium2.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=48): time 0.02372/2.998, allocations: 3.632 MB / 1.218 GB, free: 71.47 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/2.998, allocations: 85.06 kB / 1.218 GB, free: 71.37 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/2.998, allocations: 166.3 kB / 1.218 GB, free: 71.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.215e-05/2.998, allocations: 37.64 kB / 1.218 GB, free: 71.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.588e-05/2.998, allocations: 246.5 kB / 1.219 GB, free: 70.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/2.998, allocations: 177.5 kB / 1.219 GB, free: 70.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.974e-05/2.998, allocations: 12 kB / 1.219 GB, free: 70.72 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.434e-05/2.998, allocations: 338.8 kB / 1.219 GB, free: 70.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/3, allocations: 261.1 kB / 1.219 GB, free: 70.13 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/3.001, allocations: 422 kB / 1.22 GB, free: 69.65 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001405/3.003, allocations: 299.3 kB / 1.22 GB, free: 69.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/3.003, allocations: 0 / 1.22 GB, free: 69.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003519/3.006, allocations: 0.7771 MB / 1.221 GB, free: 68.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/3.006, allocations: 8 kB / 1.221 GB, free: 68.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/3.006, allocations: 7.938 kB / 1.221 GB, free: 68.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002877/3.006, allocations: 61.62 kB / 1.221 GB, free: 68.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001937/3.008, allocations: 180.1 kB / 1.221 GB, free: 68.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006532/3.009, allocations: 1.081 MB / 1.222 GB, free: 67.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/3.01, allocations: 47.98 kB / 1.222 GB, free: 67.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/3.011, allocations: 35.98 kB / 1.222 GB, free: 67.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (70): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003446/3.011, allocations: 172.4 kB / 1.222 GB, free: 66.92 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/3.011, allocations: 35.7 kB / 1.222 GB, free: 66.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003971/3.015, allocations: 0.7825 MB / 1.223 GB, free: 66.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/3.015, allocations: 4 kB / 1.223 GB, free: 66.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/3.015, allocations: 4 kB / 1.223 GB, free: 66.08 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/3.015, allocations: 3.953 kB / 1.223 GB, free: 66.08 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005203/3.02, allocations: 1.564 MB / 1.225 GB, free: 64.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/3.02, allocations: 4 kB / 1.225 GB, free: 64.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001823/3.022, allocations: 155.9 kB / 1.225 GB, free: 64.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002001/3.022, allocations: 37.69 kB / 1.225 GB, free: 64.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/3.023, allocations: 27.97 kB / 1.225 GB, free: 64.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00163/3.024, allocations: 2.544 MB / 1.227 GB, free: 61.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/3.024, allocations: 4 kB / 1.227 GB, free: 61.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004493/3.029, allocations: 1.167 MB / 1.229 GB, free: 60.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/3.029, allocations: 108.7 kB / 1.229 GB, free: 59.99 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001271/3.029, allocations: 8 kB / 1.229 GB, free: 59.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001264/3.03, allocations: 40 kB / 1.229 GB, free: 59.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/3.031, allocations: 43.84 kB / 1.229 GB, free: 59.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/3.031, allocations: 39.95 kB / 1.229 GB, free: 59.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001222/3.031, allocations: 124.4 kB / 1.229 GB, free: 59.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.6e-07/3.031, allocations: 0 / 1.229 GB, free: 59.74 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002239/3.033, allocations: 443.7 kB / 1.229 GB, free: 59.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (medium2.p,medium2.T,medium1.p,medium1.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 (48): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009147/3.042, allocations: 3.288 MB / 1.233 GB, free: 55.94 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003278/3.046, allocations: 0.6446 MB / 1.233 GB, free: 55.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/3.046, allocations: 0 / 1.233 GB, free: 55.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/3.047, allocations: 0.5326 MB / 1.234 GB, free: 54.73 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/3.048, allocations: 101.7 kB / 1.234 GB, free: 54.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00967/3.058, allocations: 5.833 MB / 1.24 GB, free: 48.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/3.058, allocations: 0.8045 MB / 1.24 GB, free: 47.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000829/3.059, allocations: 143.3 kB / 1.24 GB, free: 47.65 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/3.059, allocations: 0 / 1.24 GB, free: 47.65 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.31/6.369, allocations: 19 MB / 1.259 GB, free: 28.63 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_MixtureGases.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases_res.mat does not exist to compare? outputFormat=mat