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.002378/0.002378, allocations: 182.6 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 2.05/2.05, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001167/0.001167, allocations: 91.39 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004045/0.0004045, allocations: 8 kB / 327 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.327, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.1944/0.5215, allocations: 127.6 MB / 0.4905 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3135/0.835, allocations: 3.385 MB / 0.4938 GB, free: 2.023 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.8353, allocations: 2.875 kB / 0.4938 GB, free: 2.023 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004295/0.8357, allocations: 77.56 kB / 0.4939 GB, free: 2.023 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002986/0.8387, allocations: 0.7947 MB / 0.4946 GB, free: 2.012 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.8399, allocations: 293.7 kB / 0.4949 GB, free: 2.008 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006552/0.8406, allocations: 285.2 kB / 0.4952 GB, free: 2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.469e-05/0.8407, allocations: 9 kB / 0.4952 GB, free: 2 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007115/0.8414, allocations: 290.8 kB / 0.4955 GB, free: 1.996 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.8417, allocations: 118.3 kB / 0.4956 GB, free: 1.996 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.566e-05/0.8417, allocations: 10.66 kB / 0.4956 GB, free: 1.996 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006649/0.8484, allocations: 1.606 MB / 0.4972 GB, free: 1.992 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001992/0.8486, allocations: 120.5 kB / 0.4973 GB, free: 1.992 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.8488, allocations: 86.62 kB / 0.4974 GB, free: 1.961 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002529/0.8513, allocations: 0.8663 MB / 0.4982 GB, free: 1.914 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.8514, allocations: 0 / 0.4982 GB, free: 1.914 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.8514, allocations: 0 / 0.4982 GB, free: 1.914 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.8514, allocations: 0 / 0.4982 GB, free: 1.914 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.003208/0.8546, allocations: 0.7198 MB / 0.4989 GB, free: 17.44 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.8547, allocations: 10.97 kB / 0.4989 GB, free: 17.44 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001437/0.8549, allocations: 63.88 kB / 0.499 GB, free: 17.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.8559, allocations: 109.6 kB / 0.4991 GB, free: 17.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/0.8565, allocations: 270 kB / 0.4993 GB, free: 17.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/0.8565, allocations: 18.03 kB / 0.4994 GB, free: 17.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.8567, allocations: 30.72 kB / 0.4994 GB, free: 17.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001688/0.8584, allocations: 0.5946 MB / 0.5 GB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.694e-05/0.8584, allocations: 2.531 kB / 0.5 GB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.184e-05/0.8585, allocations: 12.16 kB / 0.5 GB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.51e-05/0.8586, allocations: 18.53 kB / 0.5 GB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002119/0.8607, allocations: 0.6408 MB / 0.5006 GB, free: 17.11 MB / 394.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.004506/0.8652, allocations: 1.255 MB / 0.5018 GB, free: 16.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.8669, allocations: 358.8 kB / 0.5022 GB, free: 16.63 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00237/0.8693, allocations: 0.9347 MB / 0.5031 GB, free: 15.87 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.093e-05/0.8694, allocations: 39.92 kB / 0.5031 GB, free: 15.83 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 4.238e-06/0.8694, allocations: 2.938 kB / 0.5031 GB, free: 15.83 MB / 394.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.02634/0.8958, allocations: 3.494 MB / 0.5066 GB, free: 14.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.699e-05/0.8959, allocations: 92 kB / 0.5066 GB, free: 14.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.8962, allocations: 175.6 kB / 0.5068 GB, free: 14.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.8963, allocations: 35.08 kB / 0.5068 GB, free: 14.45 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.8965, allocations: 240.8 kB / 0.5071 GB, free: 14.24 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/0.8967, allocations: 181.1 kB / 0.5072 GB, free: 14.13 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.571e-05/0.8968, allocations: 11.59 kB / 0.5073 GB, free: 14.13 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.8969, allocations: 335.5 kB / 0.5076 GB, free: 13.81 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.8983, allocations: 262.8 kB / 0.5078 GB, free: 13.81 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.8998, allocations: 425.6 kB / 0.5082 GB, free: 13.62 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/0.9014, allocations: 301.9 kB / 0.5085 GB, free: 13.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/0.9014, allocations: 5.922 kB / 0.5085 GB, free: 13.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003617/0.905, allocations: 0.7714 MB / 0.5093 GB, free: 13.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.9051, allocations: 11.14 kB / 0.5093 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.9052, allocations: 11.69 kB / 0.5093 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000309/0.9055, allocations: 57.09 kB / 0.5094 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002168/0.9077, allocations: 176.3 kB / 0.5095 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009866/0.9087, allocations: 1.083 MB / 0.5106 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.9102, allocations: 52.03 kB / 0.5106 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001408/0.9103, allocations: 41.36 kB / 0.5107 GB, free: 12.46 MB / 394.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.0003909/0.9107, allocations: 172.4 kB / 0.5108 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.9109, allocations: 26.97 kB / 0.5109 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003995/0.9149, allocations: 0.779 MB / 0.5116 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.915, allocations: 8.25 kB / 0.5116 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.915, allocations: 1.906 kB / 0.5116 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.915, allocations: 4.953 kB / 0.5116 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005595/0.9206, allocations: 1.552 MB / 0.5132 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.9207, allocations: 10.17 kB / 0.5132 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002088/0.9228, allocations: 148.4 kB / 0.5133 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002239/0.923, allocations: 43.16 kB / 0.5133 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.9232, allocations: 22.78 kB / 0.5134 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002537/0.9257, allocations: 2.545 MB / 0.5159 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.9258, allocations: 5.188 kB / 0.5159 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00475/0.9305, allocations: 1.161 MB / 0.517 GB, free: 8.652 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.9307, allocations: 96.89 kB / 0.5171 GB, free: 8.547 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.9309, allocations: 21.11 kB / 0.5171 GB, free: 8.543 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/0.9324, allocations: 44.52 kB / 0.5171 GB, free: 8.539 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.9325, allocations: 39.73 kB / 0.5172 GB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.9326, allocations: 32.84 kB / 0.5172 GB, free: 8.535 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001559/0.9328, allocations: 129.1 kB / 0.5173 GB, free: 8.457 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.9328, allocations: 4 kB / 0.5173 GB, free: 8.453 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00192/0.9347, allocations: 378.7 kB / 0.5177 GB, free: 8.406 MB / 394.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.009237/0.944, allocations: 2.817 MB / 0.5205 GB, free: 6.777 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00333/0.9474, allocations: 0.6387 MB / 0.5211 GB, free: 6.766 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/0.9475, allocations: 2.781 kB / 0.5211 GB, free: 6.766 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001897/0.9494, allocations: 0.5295 MB / 0.5216 GB, free: 6.539 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.9505, allocations: 100.7 kB / 0.5217 GB, free: 6.523 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/0.9616, allocations: 5.827 MB / 0.5274 GB, free: 2.219 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004937/0.9621, allocations: 0.7911 MB / 0.5282 GB, free: 1.516 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009255/0.9631, allocations: 142.9 kB / 0.5283 GB, free: 1.504 MB / 394.7 MB Notification: Performance of SimCode: time 1.262e-06/0.9631, allocations: 0 / 0.5283 GB, free: 1.504 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.72/4.683, allocations: 15.9 MB / 0.5438 GB, free: 8.707 MB / 410.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