Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_3_2_3_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.001076/0.001076, allocations: 181.1 kB / 17.01 MB, free: 5.125 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.379/1.379, allocations: 205.4 MB / 223.1 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.001008/0.001008, allocations: 88.94 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002488/0.0002488, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2517, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.295/1.547, allocations: 0.738 GB / 1.105 GB, free: 30.54 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/1.547, allocations: 71.97 kB / 1.105 GB, free: 30.46 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4021/1.949, allocations: 107.3 MB / 1.21 GB, free: 93.41 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.935e-06/1.949, allocations: 0 / 1.21 GB, free: 93.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.503e-05/1.949, allocations: 11.94 kB / 1.21 GB, free: 93.4 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.002382/1.951, allocations: 0.7801 MB / 1.211 GB, free: 92.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/1.951, allocations: 12.03 kB / 1.211 GB, free: 92.56 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.072e-05/1.952, allocations: 62.55 kB / 1.211 GB, free: 92.49 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/1.953, allocations: 247.4 kB / 1.211 GB, free: 92.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/1.954, allocations: 286.6 kB / 1.211 GB, free: 91.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/1.954, allocations: 20.56 kB / 1.211 GB, free: 91.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.338e-05/1.954, allocations: 35.91 kB / 1.211 GB, free: 91.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/1.955, allocations: 0.6562 MB / 1.212 GB, free: 91.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/1.955, allocations: 4 kB / 1.212 GB, free: 91.21 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.521e-05/1.955, allocations: 16 kB / 1.212 GB, free: 91.19 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.698e-05/1.955, allocations: 12.44 kB / 1.212 GB, free: 91.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001397/1.956, allocations: 0.7594 MB / 1.213 GB, free: 90.42 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.003168/1.96, allocations: 1.804 MB / 1.214 GB, free: 88.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/1.961, allocations: 480.8 kB / 1.215 GB, free: 88.03 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001333/1.962, allocations: 0.9158 MB / 1.216 GB, free: 86.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/1.962, allocations: 42.55 kB / 1.216 GB, free: 86.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 2.185e-06/1.962, allocations: 0 / 1.216 GB, free: 86.91 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.01193/1.974, allocations: 3.634 MB / 1.219 GB, free: 83.08 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/1.974, allocations: 89.11 kB / 1.219 GB, free: 82.97 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/1.974, allocations: 158.4 kB / 1.22 GB, free: 82.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.424e-05/1.974, allocations: 33.7 kB / 1.22 GB, free: 82.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.152e-05/1.974, allocations: 176.1 kB / 1.22 GB, free: 82.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/1.974, allocations: 173.5 kB / 1.22 GB, free: 82.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.373e-05/1.974, allocations: 12 kB / 1.22 GB, free: 82.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.337e-05/1.975, allocations: 338.8 kB / 1.22 GB, free: 82.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006272/1.975, allocations: 273 kB / 1.221 GB, free: 81.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006468/1.976, allocations: 422 kB / 1.221 GB, free: 81.33 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006467/1.976, allocations: 301 kB / 1.221 GB, free: 81.04 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/1.976, allocations: 4 kB / 1.221 GB, free: 81.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001655/1.978, allocations: 0.7775 MB / 1.222 GB, free: 80.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/1.978, allocations: 10.66 kB / 1.222 GB, free: 80.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/1.978, allocations: 4 kB / 1.222 GB, free: 80.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002142/1.978, allocations: 57.62 kB / 1.222 GB, free: 80.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/1.979, allocations: 171.7 kB / 1.222 GB, free: 80 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000402/1.98, allocations: 1.089 MB / 1.223 GB, free: 78.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006633/1.981, allocations: 48.08 kB / 1.223 GB, free: 78.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-05/1.981, allocations: 39.92 kB / 1.223 GB, free: 78.78 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.0002372/1.981, allocations: 169.7 kB / 1.224 GB, free: 78.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.761e-05/1.981, allocations: 31.67 kB / 1.224 GB, free: 78.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001987/1.983, allocations: 0.7824 MB / 1.224 GB, free: 77.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/1.983, allocations: 15.98 kB / 1.224 GB, free: 77.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/1.983, allocations: 0 / 1.224 GB, free: 77.76 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/1.983, allocations: 0 / 1.224 GB, free: 77.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002862/1.986, allocations: 1.568 MB / 1.226 GB, free: 76.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/1.986, allocations: 4 kB / 1.226 GB, free: 76.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009313/1.987, allocations: 144 kB / 1.226 GB, free: 75.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001152/1.987, allocations: 49.62 kB / 1.226 GB, free: 75.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.187e-05/1.987, allocations: 23.98 kB / 1.226 GB, free: 75.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/1.988, allocations: 2.544 MB / 1.229 GB, free: 73.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.988, allocations: 4 kB / 1.229 GB, free: 73.06 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/1.99, allocations: 1.163 MB / 1.23 GB, free: 71.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.37e-05/1.99, allocations: 100.8 kB / 1.23 GB, free: 71.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.691e-05/1.991, allocations: 12 kB / 1.23 GB, free: 71.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007318/1.991, allocations: 44 kB / 1.23 GB, free: 71.63 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.713e-05/1.991, allocations: 43.84 kB / 1.23 GB, free: 71.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.129e-05/1.991, allocations: 31.97 kB / 1.23 GB, free: 71.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 9.444e-05/1.992, allocations: 132.4 kB / 1.23 GB, free: 71.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.992, allocations: 4 kB / 1.23 GB, free: 71.42 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001978/1.994, allocations: 443.6 kB / 1.231 GB, free: 70.99 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.006327/2, allocations: 3.295 MB / 1.234 GB, free: 67.61 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001773/2.002, allocations: 0.6479 MB / 1.234 GB, free: 66.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/2.002, allocations: 0 / 1.234 GB, free: 66.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009154/2.003, allocations: 0.5326 MB / 1.235 GB, free: 66.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006015/2.003, allocations: 96.89 kB / 1.235 GB, free: 66.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005474/2.009, allocations: 5.802 MB / 1.241 GB, free: 60.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/2.009, allocations: 0.789 MB / 1.241 GB, free: 59.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001125/2.01, allocations: 195.1 kB / 1.242 GB, free: 59.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003612/2.011, allocations: 123.3 kB / 1.242 GB, free: 59.21 MB / 426.7 MB Notification: Performance of SimCode: time 9.52e-07/2.011, allocations: 8 kB / 1.242 GB, free: 59.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04158/2.052, allocations: 27.74 MB / 1.269 GB, free: 31.41 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001277/2.052, allocations: 188.6 kB / 1.269 GB, free: 31.18 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.901/4.953, allocations: 0 / 1.269 GB, free: 31.18 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_MixtureGases.fmu > Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.MixtureGases_res.mat does not exist to compare? outputFormat=mat