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: translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.MixtureGases") translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 114.2 kB / 17.28 MB, free: 6.219 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.001053/0.001053, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.347/1.347, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001119/0.00112, allocations: 47.92 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08809/0.08922, allocations: 46.62 MB / 326.8 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3117/0.401, allocations: 152.1 MB / 478.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003632/0.4046, allocations: 3.041 MB / 481.9 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.4048, allocations: 7.875 kB / 481.9 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005087/0.4054, allocations: 95.58 kB / 482 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003253/0.4087, allocations: 1.111 MB / 483.1 MB, free: 11.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.4099, allocations: 353.3 kB / 483.5 MB, free: 10.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008292/0.4107, allocations: 474.7 kB / 484 MB, free: 10.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.959e-05/0.4108, allocations: 9.562 kB / 484 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006228/0.4114, allocations: 219.2 kB / 484.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003811/0.4118, allocations: 163.4 kB / 484.3 MB, free: 9.957 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.96e-05/0.4119, allocations: 16 kB / 484.4 MB, free: 9.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005894/0.4178, allocations: 2.353 MB / 486.7 MB, free: 7.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002783/0.4181, allocations: 135.7 kB / 486.8 MB, free: 7.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003838/0.4185, allocations: 159.4 kB / 487 MB, free: 7.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003544/0.422, allocations: 1.703 MB / 488.7 MB, free: 5.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.4221, allocations: 0 / 488.7 MB, free: 5.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4221, allocations: 0 / 488.7 MB, free: 5.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.701e-05/0.4221, allocations: 4 kB / 488.7 MB, free: 5.582 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.002602/0.4247, allocations: 0.7729 MB / 489.5 MB, free: 4.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.4248, allocations: 8.031 kB / 489.5 MB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002488/0.4273, allocations: 268.8 kB / 489.7 MB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.4278, allocations: 290.1 kB / 490 MB, free: 4.172 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.4278, allocations: 24.5 kB / 490.1 MB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.428, allocations: 32 kB / 490.1 MB, free: 4.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.4294, allocations: 0.6589 MB / 490.7 MB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.4295, allocations: 4 kB / 490.7 MB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.356e-05/0.4295, allocations: 16 kB / 490.8 MB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.625e-05/0.4296, allocations: 24.42 kB / 490.8 MB, free: 3.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.4312, allocations: 0.7579 MB / 491.5 MB, free: 2.645 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.003798/0.435, allocations: 1.818 MB / 493.4 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.4362, allocations: 488.8 kB / 493.8 MB, free: 240 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005898/0.4368, allocations: 229.6 kB / 494.1 MB, free: 4 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00241/0.4393, allocations: 1.384 MB / 495.4 MB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.4393, allocations: 42.5 kB / 495.5 MB, free: 14.35 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.074e-06/0.4393, allocations: 0 / 495.5 MB, free: 14.35 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.01372/0.453, allocations: 3.715 MB / 499.2 MB, free: 10.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.4531, allocations: 85.11 kB / 499.3 MB, free: 10.33 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.4533, allocations: 182.5 kB / 499.5 MB, free: 10.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.869e-05/0.4534, allocations: 29.7 kB / 499.5 MB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.4535, allocations: 180.1 kB / 499.7 MB, free: 9.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.4537, allocations: 181.5 kB / 499.8 MB, free: 9.746 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002216/0.454, allocations: 118.3 kB / 500 MB, free: 9.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.4541, allocations: 334.8 kB / 0.4886 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007431/0.4549, allocations: 265.1 kB / 0.4888 GB, free: 9.031 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000918/0.4558, allocations: 429.5 kB / 0.4892 GB, free: 8.543 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.4575, allocations: 0.703 MB / 0.4899 GB, free: 7.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.4575, allocations: 0 / 0.4899 GB, free: 7.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002132/0.4597, allocations: 0.7844 MB / 0.4907 GB, free: 6.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.4597, allocations: 7.984 kB / 0.4907 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.4597, allocations: 12.03 kB / 0.4907 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002582/0.46, allocations: 49.69 kB / 0.4907 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.4612, allocations: 183.7 kB / 0.4909 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007241/0.462, allocations: 1.074 MB / 0.492 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008262/0.4628, allocations: 52.14 kB / 0.492 GB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.4629, allocations: 39.97 kB / 0.4921 GB, free: 5.508 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.0003282/0.4633, allocations: 169.6 kB / 0.4922 GB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.4634, allocations: 35.66 kB / 0.4923 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002396/0.4658, allocations: 0.7784 MB / 0.493 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.4659, allocations: 15.88 kB / 0.493 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.4659, allocations: 0 / 0.493 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4659, allocations: 0 / 0.493 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003349/0.4692, allocations: 1.55 MB / 0.4945 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.4693, allocations: 0 / 0.4945 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.4703, allocations: 148 kB / 0.4947 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001614/0.4705, allocations: 41.62 kB / 0.4947 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.913e-05/0.4706, allocations: 31.91 kB / 0.4948 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/0.4727, allocations: 2.726 MB / 0.4974 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.4727, allocations: 7.969 kB / 0.4974 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002851/0.4755, allocations: 1.075 MB / 0.4985 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.4757, allocations: 100.8 kB / 0.4986 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.889e-05/0.4758, allocations: 12 kB / 0.4986 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000836/0.4766, allocations: 40 kB / 0.4986 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.455e-05/0.4767, allocations: 51.81 kB / 0.4987 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.991e-05/0.4768, allocations: 31.97 kB / 0.4987 GB, free: 14.24 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.946e-05/0.4769, allocations: 124.4 kB / 0.4988 GB, free: 14.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4769, allocations: 0 / 0.4988 GB, free: 14.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001498/0.4784, allocations: 391.8 kB / 0.4992 GB, free: 13.74 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.003003/0.4814, allocations: 0.8732 MB / 0.5 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00218/0.4836, allocations: 0.6792 MB / 0.5007 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.4836, allocations: 0 / 0.5007 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.4848, allocations: 0.5325 MB / 0.5012 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008407/0.4857, allocations: 99.84 kB / 0.5013 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.4879, allocations: 1.116 MB / 0.5024 GB, free: 10.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004471/0.4883, allocations: 0.7852 MB / 0.5032 GB, free: 9.539 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001195/0.4895, allocations: 187.1 kB / 0.5034 GB, free: 9.355 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003343/0.4899, allocations: 67.33 kB / 0.5034 GB, free: 9.289 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4899, allocations: 0 / 0.5034 GB, free: 9.289 MB / 414.1 MB Notification: Performance of Templates: time 0.0255/0.5154, allocations: 15.89 MB / 0.5189 GB, free: 9.363 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.makefile (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 & ./Modelica_3.2.3_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins/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