Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.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) 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(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",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.001289/0.001289, allocations: 180.4 kB / 16.38 MB, free: 5.766 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.367/1.367, allocations: 223.2 MB / 240.3 MB, free: 10.15 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.0009362/0.0009362, allocations: 99.52 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000274/0.0002742, allocations: 8 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2512, allocations: 50.41 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.646/1.897, allocations: 0.7068 GB / 1.099 GB, free: 100.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/1.897, allocations: 70.72 kB / 1.099 GB, free: 100.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4782/2.376, allocations: 109.6 MB / 1.206 GB, free: 139.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.114e-06/2.376, allocations: 0 / 1.206 GB, free: 139.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.536e-05/2.376, allocations: 4.75 kB / 1.206 GB, free: 139.9 MB / 458.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.002582/2.378, allocations: 0.7838 MB / 1.207 GB, free: 139.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/2.378, allocations: 10.09 kB / 1.207 GB, free: 139.5 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.152e-05/2.378, allocations: 72.44 kB / 1.207 GB, free: 139.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001755/2.38, allocations: 245.8 kB / 1.207 GB, free: 139.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004924/2.381, allocations: 289.5 kB / 1.207 GB, free: 139.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.715e-05/2.381, allocations: 19.47 kB / 1.208 GB, free: 139.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/2.381, allocations: 29.81 kB / 1.208 GB, free: 139.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/2.382, allocations: 0.6618 MB / 1.208 GB, free: 139.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/2.382, allocations: 1.125 kB / 1.208 GB, free: 139.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.817e-05/2.382, allocations: 16.86 kB / 1.208 GB, free: 139.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.125e-05/2.382, allocations: 19.89 kB / 1.208 GB, free: 139.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001786/2.384, allocations: 0.7553 MB / 1.209 GB, free: 139.2 MB / 458.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.003314/2.388, allocations: 1.804 MB / 1.211 GB, free: 138.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/2.389, allocations: 475.4 kB / 1.211 GB, free: 138.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001409/2.39, allocations: 0.9132 MB / 1.212 GB, free: 137.5 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/2.39, allocations: 46.81 kB / 1.212 GB, free: 137.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 2.675e-06/2.39, allocations: 2.719 kB / 1.212 GB, free: 137.5 MB / 458.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.01259/2.403, allocations: 3.631 MB / 1.216 GB, free: 136.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/2.403, allocations: 88.59 kB / 1.216 GB, free: 136.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/2.403, allocations: 159.8 kB / 1.216 GB, free: 136.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.457e-05/2.403, allocations: 37.3 kB / 1.216 GB, free: 136.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.026e-05/2.403, allocations: 184 kB / 1.216 GB, free: 136.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/2.403, allocations: 175.4 kB / 1.216 GB, free: 136 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.45e-05/2.403, allocations: 10.41 kB / 1.216 GB, free: 136 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.493e-05/2.403, allocations: 339.1 kB / 1.217 GB, free: 135.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006636/2.404, allocations: 258.6 kB / 1.217 GB, free: 135.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007147/2.405, allocations: 425.1 kB / 1.217 GB, free: 135.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006927/2.406, allocations: 302 kB / 1.218 GB, free: 135.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/2.406, allocations: 2.406 kB / 1.218 GB, free: 135.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001668/2.407, allocations: 0.7762 MB / 1.218 GB, free: 135.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/2.407, allocations: 7.312 kB / 1.218 GB, free: 135.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/2.407, allocations: 6.75 kB / 1.218 GB, free: 135.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001986/2.407, allocations: 61.17 kB / 1.218 GB, free: 135.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/2.408, allocations: 177.1 kB / 1.219 GB, free: 135.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004578/2.409, allocations: 1.078 MB / 1.22 GB, free: 134.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006914/2.41, allocations: 43.78 kB / 1.22 GB, free: 134.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.547e-05/2.41, allocations: 37.47 kB / 1.22 GB, free: 134.4 MB / 458.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.0002423/2.41, allocations: 174.5 kB / 1.22 GB, free: 134.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/2.41, allocations: 27.41 kB / 1.22 GB, free: 134.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001983/2.412, allocations: 0.7899 MB / 1.221 GB, free: 134.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/2.412, allocations: 9.062 kB / 1.221 GB, free: 134.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/2.412, allocations: 0 / 1.221 GB, free: 134.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/2.412, allocations: 10.81 kB / 1.221 GB, free: 134.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002832/2.415, allocations: 1.575 MB / 1.222 GB, free: 133.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/2.415, allocations: 0 / 1.222 GB, free: 133.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009498/2.416, allocations: 148.3 kB / 1.222 GB, free: 133.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001192/2.416, allocations: 41.41 kB / 1.222 GB, free: 133.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.952e-05/2.416, allocations: 24.11 kB / 1.222 GB, free: 133.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/2.417, allocations: 2.554 MB / 1.225 GB, free: 131.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/2.417, allocations: 2.969 kB / 1.225 GB, free: 131.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/2.42, allocations: 1.157 MB / 1.226 GB, free: 130.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.771e-05/2.42, allocations: 100.5 kB / 1.226 GB, free: 130.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.9e-05/2.42, allocations: 12.12 kB / 1.226 GB, free: 130.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007386/2.42, allocations: 45.41 kB / 1.226 GB, free: 130.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.077e-05/2.421, allocations: 41.38 kB / 1.226 GB, free: 130.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.977e-05/2.421, allocations: 41.44 kB / 1.226 GB, free: 130.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 7.715e-05/2.421, allocations: 118.2 kB / 1.226 GB, free: 130.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/2.421, allocations: 0 / 1.226 GB, free: 130.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001704/2.422, allocations: 443 kB / 1.227 GB, free: 130.4 MB / 458.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.005223/2.428, allocations: 3.303 MB / 1.23 GB, free: 128.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001931/2.43, allocations: 0.6566 MB / 1.231 GB, free: 128.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/2.43, allocations: 0 / 1.231 GB, free: 128.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009274/2.431, allocations: 0.5313 MB / 1.231 GB, free: 128.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006504/2.431, allocations: 93.69 kB / 1.231 GB, free: 128.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006416/2.438, allocations: 5.799 MB / 1.237 GB, free: 124.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/2.438, allocations: 0.791 MB / 1.238 GB, free: 123.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001166/2.439, allocations: 190.2 kB / 1.238 GB, free: 123.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003852/2.44, allocations: 129 kB / 1.238 GB, free: 123.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.122e-06/2.44, allocations: 0 / 1.238 GB, free: 123.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05012/2.49, allocations: 27.77 MB / 1.265 GB, free: 116.5 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/2.49, allocations: 199.7 kB / 1.265 GB, free: 116.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.822/5.312, allocations: 0 / 1.265 GB, free: 116.3 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat does not exist to compare? outputFormat=mat