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.001131/0.001131, allocations: 107.4 kB / 17.15 MB, free: 6.328 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.001114/0.001114, allocations: 198 kB / 18.07 MB, free: 5.434 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.129/1.129, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001033/0.001033, allocations: 47.91 kB / 280.1 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0705/0.07154, allocations: 46.62 MB / 326.7 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2546/0.3261, allocations: 152.1 MB / 478.7 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003013/0.3292, allocations: 3.142 MB / 481.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.382e-05/0.3293, allocations: 0.75 kB / 481.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003601/0.3296, allocations: 103.5 kB / 482 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001763/0.3314, allocations: 1.095 MB / 483.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007004/0.3321, allocations: 357.8 kB / 483.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005458/0.3327, allocations: 0.6195 MB / 484.1 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.008e-05/0.3327, allocations: 17.56 kB / 484.1 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003029/0.333, allocations: 211.1 kB / 484.3 MB, free: 9.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001986/0.3333, allocations: 159.5 kB / 484.4 MB, free: 9.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.086e-05/0.3333, allocations: 15.94 kB / 484.4 MB, free: 9.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003325/0.3366, allocations: 2.482 MB / 486.9 MB, free: 7.328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.3368, allocations: 131.6 kB / 487.1 MB, free: 7.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.3369, allocations: 159.3 kB / 487.2 MB, free: 7.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001947/0.3389, allocations: 1.781 MB / 489 MB, free: 5.258 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3389, allocations: 0 / 489 MB, free: 5.258 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.788e-06/0.3389, allocations: 4 kB / 489 MB, free: 5.254 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.3389, allocations: 0 / 489 MB, free: 5.254 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.001905/0.3408, allocations: 0.7653 MB / 489.8 MB, free: 4.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.3409, allocations: 8.031 kB / 489.8 MB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.007e-05/0.341, allocations: 66.73 kB / 489.8 MB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002276/0.3432, allocations: 260.3 kB / 490.1 MB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003412/0.3436, allocations: 295.6 kB / 490.4 MB, free: 3.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.3436, allocations: 20.56 kB / 490.4 MB, free: 3.758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.974e-05/0.3437, allocations: 28 kB / 490.4 MB, free: 3.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.3449, allocations: 0.6705 MB / 491.1 MB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.345, allocations: 8 kB / 491.1 MB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.526e-05/0.345, allocations: 12 kB / 491.1 MB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.805e-05/0.3451, allocations: 20.44 kB / 491.1 MB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.3466, allocations: 0.755 MB / 491.9 MB, free: 2.25 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.003558/0.3502, allocations: 1.822 MB / 493.7 MB, free: 340 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.3514, allocations: 477.1 kB / 494.2 MB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005745/0.352, allocations: 233.5 kB / 494.4 MB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002119/0.3541, allocations: 1.383 MB / 495.8 MB, free: 14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.3542, allocations: 42.5 kB / 495.8 MB, free: 13.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.563e-06/0.3542, allocations: 0 / 495.8 MB, free: 13.95 MB / 398.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.01292/0.3671, allocations: 3.714 MB / 499.5 MB, free: 10.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.3671, allocations: 89.11 kB / 499.6 MB, free: 9.938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.3673, allocations: 178.5 kB / 499.8 MB, free: 9.754 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.845e-05/0.3673, allocations: 33.7 kB / 499.8 MB, free: 9.715 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.994e-05/0.3674, allocations: 176.1 kB / 0.4883 GB, free: 9.539 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.3676, allocations: 177.5 kB / 0.4885 GB, free: 9.363 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000204/0.3678, allocations: 114.3 kB / 0.4886 GB, free: 9.246 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.3679, allocations: 342.7 kB / 0.4889 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006826/0.3686, allocations: 265.1 kB / 0.4892 GB, free: 8.645 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007705/0.3694, allocations: 421.5 kB / 0.4896 GB, free: 8.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001471/0.3708, allocations: 0.7146 MB / 0.4903 GB, free: 7.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3708, allocations: 0 / 0.4903 GB, free: 7.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001785/0.3726, allocations: 0.78 MB / 0.491 GB, free: 6.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.3727, allocations: 11.94 kB / 0.491 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3727, allocations: 7.938 kB / 0.491 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001784/0.3729, allocations: 50.31 kB / 0.4911 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.3739, allocations: 183.7 kB / 0.4913 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005866/0.3745, allocations: 1.077 MB / 0.4923 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007156/0.3752, allocations: 47.95 kB / 0.4924 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.142e-05/0.3753, allocations: 35.98 kB / 0.4924 GB, free: 5.125 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.0002032/0.3755, allocations: 181.6 kB / 0.4926 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.3757, allocations: 27.7 kB / 0.4926 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002068/0.3777, allocations: 0.7862 MB / 0.4934 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.3777, allocations: 4 kB / 0.4934 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3778, allocations: 3.938 kB / 0.4934 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3778, allocations: 7.984 kB / 0.4934 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002952/0.3807, allocations: 1.547 MB / 0.4949 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3807, allocations: 4 kB / 0.4949 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.3818, allocations: 151.7 kB / 0.495 GB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001078/0.3819, allocations: 45.91 kB / 0.4951 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.976e-05/0.382, allocations: 23.92 kB / 0.4951 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001488/0.3835, allocations: 2.533 MB / 0.4976 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.3835, allocations: 4.031 kB / 0.4976 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.3858, allocations: 1.075 MB / 0.4986 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.094e-05/0.3859, allocations: 100.8 kB / 0.4987 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.128e-05/0.386, allocations: 19.88 kB / 0.4987 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007582/0.3867, allocations: 36 kB / 0.4988 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.718e-05/0.3868, allocations: 51.88 kB / 0.4988 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.646e-05/0.3869, allocations: 31.97 kB / 0.4989 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.556e-05/0.387, allocations: 124.4 kB / 0.499 GB, free: 13.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.387, allocations: 0 / 0.499 GB, free: 13.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001247/0.3882, allocations: 411.8 kB / 0.4994 GB, free: 13.53 MB / 414.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.005092/0.3933, allocations: 2.386 MB / 0.5017 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001713/0.395, allocations: 0.6482 MB / 0.5023 GB, free: 10.44 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3951, allocations: 0 / 0.5023 GB, free: 10.44 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009883/0.396, allocations: 0.5326 MB / 0.5028 GB, free: 9.879 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000693/0.3968, allocations: 99.84 kB / 0.5029 GB, free: 9.781 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00703/0.4038, allocations: 4.32 MB / 0.5072 GB, free: 5.199 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.4041, allocations: 0.7889 MB / 0.5079 GB, free: 4.383 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001049/0.4052, allocations: 191.1 kB / 0.5081 GB, free: 4.195 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003707/0.4056, allocations: 131.3 kB / 0.5082 GB, free: 4.07 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4056, allocations: 0 / 0.5082 GB, free: 4.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.467/3.872, allocations: 18.92 MB / 0.5267 GB, free: 1.074 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002272/3.873, allocations: 215.7 kB / 0.5269 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.084/6.957, allocations: 0 / 0.5269 GB, free: 0.8203 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