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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009453/0.0009453, allocations: 95.61 kB / 17.3 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 175.6 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.172/1.172, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004103/0.0004103, allocations: 16.47 kB / 281.5 MB, free: 3.336 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07451/0.07493, allocations: 47.58 MB / 329 MB, free: 3.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2833/0.3582, allocations: 150.1 MB / 479.1 MB, free: 3.641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003237/0.3615, allocations: 3.101 MB / 482.2 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.824e-05/0.3616, allocations: 4 kB / 482.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003627/0.3619, allocations: 95.58 kB / 482.3 MB, free: 452 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00195/0.3639, allocations: 1.095 MB / 483.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007686/0.3647, allocations: 351 kB / 483.8 MB, free: 15 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006615/0.3654, allocations: 0.6272 MB / 484.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.523e-05/0.3654, allocations: 17.55 kB / 484.4 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.3658, allocations: 215.1 kB / 484.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002346/0.366, allocations: 159.5 kB / 484.8 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.162e-05/0.366, allocations: 8 kB / 484.8 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003563/0.3696, allocations: 2.482 MB / 487.3 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.3697, allocations: 131.6 kB / 487.4 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.3699, allocations: 185.1 kB / 487.6 MB, free: 11.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001926/0.3719, allocations: 1.781 MB / 489.4 MB, free: 9.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.3719, allocations: 3.938 kB / 489.4 MB, free: 9.383 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3719, allocations: 0 / 489.4 MB, free: 9.383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3719, allocations: 4 kB / 489.4 MB, free: 9.379 MB / 382.1 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.001785/0.3737, allocations: 0.6912 MB / 490.1 MB, free: 8.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.3737, allocations: 8.031 kB / 490.1 MB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.955e-05/0.3738, allocations: 66.73 kB / 490.1 MB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00233/0.3762, allocations: 264.3 kB / 490.4 MB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003281/0.3765, allocations: 295.6 kB / 490.7 MB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.3765, allocations: 16.56 kB / 490.7 MB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.369e-05/0.3766, allocations: 24 kB / 490.7 MB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.3779, allocations: 0.6745 MB / 491.4 MB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.3779, allocations: 0.875 kB / 491.4 MB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.505e-05/0.378, allocations: 15.94 kB / 491.4 MB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.094e-05/0.3781, allocations: 20.42 kB / 491.4 MB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.3797, allocations: 0.759 MB / 492.2 MB, free: 6.449 MB / 382.1 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.003668/0.3834, allocations: 1.814 MB / 494 MB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.3847, allocations: 479.2 kB / 494.5 MB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006337/0.3853, allocations: 233.6 kB / 494.7 MB, free: 3.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002217/0.3875, allocations: 1.38 MB / 496.1 MB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.3876, allocations: 42.55 kB / 496.1 MB, free: 2.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.412e-06/0.3876, allocations: 0 / 496.1 MB, free: 2.168 MB / 382.1 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.01321/0.4008, allocations: 3.624 MB / 499.7 MB, free: 14.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.4009, allocations: 85.02 kB / 499.8 MB, free: 14.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.401, allocations: 174.6 kB / 0.4883 GB, free: 14.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.807e-05/0.4011, allocations: 33.7 kB / 0.4883 GB, free: 14.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.807e-05/0.4012, allocations: 184 kB / 0.4885 GB, free: 13.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.4013, allocations: 177.5 kB / 0.4887 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.224e-05/0.4014, allocations: 57.69 kB / 0.4887 GB, free: 13.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.4016, allocations: 334.8 kB / 0.489 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000757/0.4023, allocations: 261.1 kB / 0.4893 GB, free: 13 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008379/0.4032, allocations: 433.5 kB / 0.4897 GB, free: 12.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/0.4048, allocations: 0.703 MB / 0.4904 GB, free: 11.74 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4048, allocations: 0 / 0.4904 GB, free: 11.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001907/0.4067, allocations: 0.7799 MB / 0.4911 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.4067, allocations: 8.625 kB / 0.4912 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.4068, allocations: 8 kB / 0.4912 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001858/0.4069, allocations: 57.62 kB / 0.4912 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.4081, allocations: 179.7 kB / 0.4914 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006266/0.4087, allocations: 1.081 MB / 0.4924 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007696/0.4095, allocations: 52.14 kB / 0.4925 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.117e-05/0.4096, allocations: 35.98 kB / 0.4925 GB, free: 9.477 MB / 398.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002087/0.4098, allocations: 169.6 kB / 0.4927 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.877e-05/0.4099, allocations: 31.72 kB / 0.4927 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002198/0.4121, allocations: 0.7891 MB / 0.4935 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.4121, allocations: 12 kB / 0.4935 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.4121, allocations: 0 / 0.4935 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.4121, allocations: 3.984 kB / 0.4935 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003111/0.4153, allocations: 1.55 MB / 0.495 GB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4153, allocations: 3.938 kB / 0.495 GB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.4163, allocations: 152 kB / 0.4952 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001166/0.4165, allocations: 45.62 kB / 0.4952 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.725e-05/0.4165, allocations: 23.92 kB / 0.4952 GB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001635/0.4182, allocations: 2.54 MB / 0.4977 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.4182, allocations: 7.969 kB / 0.4977 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002533/0.4207, allocations: 1.072 MB / 0.4988 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.85e-05/0.4208, allocations: 100.8 kB / 0.4989 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.343e-05/0.4209, allocations: 15.94 kB / 0.4989 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000799/0.4217, allocations: 40 kB / 0.4989 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.382e-05/0.4218, allocations: 47.88 kB / 0.499 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.728e-05/0.4218, allocations: 35.97 kB / 0.499 GB, free: 2.402 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.384e-05/0.4219, allocations: 124.4 kB / 0.4991 GB, free: 2.281 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4219, allocations: 0 / 0.4991 GB, free: 2.281 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001262/0.4232, allocations: 407.8 kB / 0.4995 GB, free: 1.883 MB / 398.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005164/0.4284, allocations: 2.385 MB / 0.5018 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001787/0.4302, allocations: 0.6521 MB / 0.5025 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.4302, allocations: 4 kB / 0.5025 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.4312, allocations: 0.5287 MB / 0.503 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007503/0.432, allocations: 99.78 kB / 0.5031 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007421/0.4394, allocations: 4.412 MB / 0.5074 GB, free: 9.457 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.4398, allocations: 0.7968 MB / 0.5082 GB, free: 8.633 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001081/0.4409, allocations: 187.1 kB / 0.5084 GB, free: 8.449 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003728/0.4413, allocations: 127.4 kB / 0.5085 GB, free: 8.328 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4413, allocations: 0 / 0.5085 GB, free: 8.328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3477/0.7889, allocations: 18.8 MB / 0.5268 GB, free: 5.473 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000216/0.7892, allocations: 223.2 kB / 0.527 GB, free: 5.211 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.704/3.493, allocations: 0 / 0.527 GB, free: 5.211 MB / 430.1 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/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) diffSimulationResults("Modelica_3.2.3_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_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches