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.000852/0.000852, allocations: 175.1 kB / 16.72 MB, free: 5.059 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.164/1.164, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0006822/0.0006824, allocations: 108 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002817/0.0002818, allocations: 12 kB / 327.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1847, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2972/0.4819, allocations: 140 MB / 0.5031 GB, free: 1.484 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003515/0.4854, allocations: 2.833 MB / 0.5059 GB, free: 1.438 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.4856, allocations: 0 / 0.5059 GB, free: 1.438 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004335/0.4861, allocations: 96.67 kB / 0.5059 GB, free: 1.434 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002867/0.489, allocations: 1.07 MB / 0.507 GB, free: 1.375 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.49, allocations: 326.9 kB / 0.5073 GB, free: 1.363 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007249/0.4908, allocations: 0.5172 MB / 0.5078 GB, free: 1.355 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.527e-05/0.4908, allocations: 12.91 kB / 0.5078 GB, free: 1.355 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005163/0.4914, allocations: 201.8 kB / 0.508 GB, free: 1.355 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.4917, allocations: 172 kB / 0.5082 GB, free: 1.352 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.17e-05/0.4918, allocations: 8.219 kB / 0.5082 GB, free: 1.352 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005215/0.497, allocations: 2.555 MB / 0.5107 GB, free: 1.336 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002679/0.4973, allocations: 133.2 kB / 0.5108 GB, free: 1.336 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005347/0.4978, allocations: 181 kB / 0.511 GB, free: 1.305 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002319/0.5002, allocations: 1.231 MB / 0.5122 GB, free: 1.262 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.5002, allocations: 0 / 0.5122 GB, free: 1.262 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5002, allocations: 1.812 kB / 0.5122 GB, free: 1.262 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.5002, allocations: 0 / 0.5122 GB, free: 1.262 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.00271/0.5029, allocations: 0.6987 MB / 0.5129 GB, free: 16.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.266e-05/0.503, allocations: 7.625 kB / 0.5129 GB, free: 16.79 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001347/0.5031, allocations: 66.91 kB / 0.5129 GB, free: 16.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003209/0.5064, allocations: 266.4 kB / 0.5132 GB, free: 16.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005233/0.5069, allocations: 294 kB / 0.5135 GB, free: 16.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.383e-05/0.5069, allocations: 18.91 kB / 0.5135 GB, free: 16.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.5071, allocations: 30.11 kB / 0.5135 GB, free: 16.51 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.5089, allocations: 0.6638 MB / 0.5142 GB, free: 16.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.509, allocations: 3 kB / 0.5142 GB, free: 16.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.009e-05/0.5091, allocations: 15.91 kB / 0.5142 GB, free: 16.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.374e-05/0.5091, allocations: 20.38 kB / 0.5142 GB, free: 16.45 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00227/0.5114, allocations: 0.7588 MB / 0.5149 GB, free: 16.44 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.004329/0.5157, allocations: 1.816 MB / 0.5167 GB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.517, allocations: 471.3 kB / 0.5172 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005818/0.5176, allocations: 232.5 kB / 0.5174 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00239/0.52, allocations: 1.383 MB / 0.5187 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.52, allocations: 41.72 kB / 0.5188 GB, free: 14.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 2.594e-06/0.52, allocations: 4 kB / 0.5188 GB, free: 14.34 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.0128/0.5328, allocations: 3.643 MB / 0.5223 GB, free: 13.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.5329, allocations: 87.45 kB / 0.5224 GB, free: 13.08 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.533, allocations: 177.7 kB / 0.5226 GB, free: 12.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.766e-05/0.5331, allocations: 35.2 kB / 0.5226 GB, free: 12.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.5332, allocations: 181.1 kB / 0.5228 GB, free: 12.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.5333, allocations: 173.5 kB / 0.523 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.965e-05/0.5334, allocations: 8.688 kB / 0.523 GB, free: 12.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.5335, allocations: 347 kB / 0.5233 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007144/0.5342, allocations: 260.2 kB / 0.5235 GB, free: 12.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007587/0.535, allocations: 423.4 kB / 0.524 GB, free: 12.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.5364, allocations: 0.6944 MB / 0.5246 GB, free: 11.99 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.5364, allocations: 0 / 0.5246 GB, free: 11.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001746/0.5382, allocations: 0.7794 MB / 0.5254 GB, free: 11.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.5382, allocations: 6.5 kB / 0.5254 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.5382, allocations: 6.844 kB / 0.5254 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001767/0.5384, allocations: 57.66 kB / 0.5255 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.5395, allocations: 181 kB / 0.5256 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005889/0.5401, allocations: 1.079 MB / 0.5267 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007425/0.5408, allocations: 42.92 kB / 0.5267 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.205e-05/0.5409, allocations: 40.39 kB / 0.5268 GB, free: 10.76 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.0002015/0.5411, allocations: 182 kB / 0.5269 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.441e-05/0.5412, allocations: 26.56 kB / 0.527 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002019/0.5433, allocations: 0.7791 MB / 0.5277 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.5433, allocations: 6.156 kB / 0.5277 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.5433, allocations: 0 / 0.5277 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.5433, allocations: 10.83 kB / 0.5277 GB, free: 10.35 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002912/0.5462, allocations: 1.544 MB / 0.5293 GB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.5462, allocations: 6.297 kB / 0.5293 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.5473, allocations: 147.2 kB / 0.5294 GB, free: 9.473 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.5474, allocations: 42.05 kB / 0.5294 GB, free: 9.445 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.096e-05/0.5475, allocations: 32.19 kB / 0.5295 GB, free: 9.434 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001459/0.5489, allocations: 2.538 MB / 0.5319 GB, free: 6.879 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.5489, allocations: 4.719 kB / 0.5319 GB, free: 6.879 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002325/0.5513, allocations: 1.069 MB / 0.533 GB, free: 6.418 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.406e-05/0.5514, allocations: 102.4 kB / 0.5331 GB, free: 6.309 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.268e-05/0.5514, allocations: 18.66 kB / 0.5331 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007947/0.5522, allocations: 43.61 kB / 0.5332 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.5523, allocations: 39.8 kB / 0.5332 GB, free: 6.277 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-05/0.5524, allocations: 34.31 kB / 0.5332 GB, free: 6.27 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.388e-05/0.5525, allocations: 128.7 kB / 0.5333 GB, free: 6.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5525, allocations: 0 / 0.5333 GB, free: 6.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001328/0.5538, allocations: 406.9 kB / 0.5337 GB, free: 6.125 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.005071/0.5589, allocations: 2.38 MB / 0.5361 GB, free: 4.816 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.5606, allocations: 0.6499 MB / 0.5367 GB, free: 4.691 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5606, allocations: 4.75 kB / 0.5367 GB, free: 4.691 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009663/0.5616, allocations: 0.5273 MB / 0.5372 GB, free: 4.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007585/0.5623, allocations: 103.6 kB / 0.5373 GB, free: 4.375 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004989/0.5673, allocations: 2.66 MB / 0.5399 GB, free: 2.871 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.5677, allocations: 0.7789 MB / 0.5407 GB, free: 2.137 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004811/0.5682, allocations: 147.7 kB / 0.5408 GB, free: 2.098 MB / 394.7 MB Notification: Performance of SimCode: time 4.5e-07/0.5682, allocations: 4 kB / 0.5408 GB, free: 2.094 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.511/6.079, allocations: 13.83 MB / 0.5543 GB, free: 8.254 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) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches