Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001369/0.00137, allocations: 110.2 kB / 17.17 MB, free: 6.344 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.001389/0.001389, allocations: 194.9 kB / 18.08 MB, free: 5.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 241.8 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001005/0.001005, allocations: 45.98 kB / 300.6 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1043, allocations: 49.45 MB / 350 MB, free: 4.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3682/0.4726, allocations: 150.3 MB / 0.4886 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004642/0.4773, allocations: 4.137 MB / 0.4927 GB, free: 10.83 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.4774, allocations: 3.938 kB / 0.4927 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004962/0.4779, allocations: 95.58 kB / 0.4928 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002503/0.4805, allocations: 1.095 MB / 0.4938 GB, free: 9.633 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009211/0.4814, allocations: 346.2 kB / 0.4942 GB, free: 9.297 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007059/0.4821, allocations: 0.6274 MB / 0.4948 GB, free: 8.664 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.077e-05/0.4822, allocations: 13.55 kB / 0.4948 GB, free: 8.652 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003978/0.4826, allocations: 203.2 kB / 0.495 GB, free: 8.453 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.4828, allocations: 163.5 kB / 0.4951 GB, free: 8.293 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.305e-05/0.4829, allocations: 12 kB / 0.4951 GB, free: 8.281 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00407/0.4869, allocations: 2.482 MB / 0.4976 GB, free: 5.793 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.4871, allocations: 135.6 kB / 0.4977 GB, free: 5.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.4873, allocations: 151.4 kB / 0.4978 GB, free: 5.512 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001752/0.4891, allocations: 1.255 MB / 0.4991 GB, free: 4.254 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.4891, allocations: 0 / 0.4991 GB, free: 4.254 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.4891, allocations: 0 / 0.4991 GB, free: 4.254 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.4891, allocations: 0 / 0.4991 GB, free: 4.254 MB / 414.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.002197/0.4913, allocations: 0.769 MB / 0.4998 GB, free: 3.438 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.201e-05/0.4914, allocations: 8.031 kB / 0.4998 GB, free: 3.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002294/0.4937, allocations: 272.2 kB / 0.5001 GB, free: 3.164 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003739/0.4941, allocations: 284 kB / 0.5003 GB, free: 2.848 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.4941, allocations: 20.56 kB / 0.5004 GB, free: 2.828 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.42e-05/0.4942, allocations: 24 kB / 0.5004 GB, free: 2.805 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.4955, allocations: 0.6745 MB / 0.5011 GB, free: 2.117 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.4956, allocations: 3.984 kB / 0.5011 GB, free: 2.113 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-05/0.4956, allocations: 15.98 kB / 0.5011 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.662e-05/0.4957, allocations: 24.42 kB / 0.5011 GB, free: 2.074 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.4973, allocations: 0.7551 MB / 0.5018 GB, free: 1.32 MB / 414.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.003859/0.5012, allocations: 1.814 MB / 0.5036 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.5024, allocations: 484.8 kB / 0.5041 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005853/0.503, allocations: 231.8 kB / 0.5043 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002336/0.5053, allocations: 1.388 MB / 0.5056 GB, free: 13.08 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.5054, allocations: 38.69 kB / 0.5057 GB, free: 13.03 MB / 430.1 MB Notification: Performance of pre-optimization done (n=35): time 1.874e-06/0.5054, allocations: 0 / 0.5057 GB, free: 13.03 MB / 430.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.0143/0.5197, allocations: 3.714 MB / 0.5093 GB, free: 9.113 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/0.5198, allocations: 81.11 kB / 0.5094 GB, free: 9.016 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.52, allocations: 179.2 kB / 0.5096 GB, free: 8.832 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.746e-05/0.5201, allocations: 37.7 kB / 0.5096 GB, free: 8.789 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.5202, allocations: 184 kB / 0.5098 GB, free: 8.602 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/0.5204, allocations: 173.5 kB / 0.5099 GB, free: 8.43 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002275/0.5207, allocations: 110.3 kB / 0.51 GB, free: 8.316 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.5209, allocations: 342.8 kB / 0.5104 GB, free: 7.973 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007542/0.5216, allocations: 265.1 kB / 0.5106 GB, free: 7.715 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008631/0.5225, allocations: 429.5 kB / 0.511 GB, free: 7.227 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/0.5242, allocations: 0.6993 MB / 0.5117 GB, free: 6.465 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-05/0.5242, allocations: 4 kB / 0.5117 GB, free: 6.461 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002058/0.5263, allocations: 0.7768 MB / 0.5125 GB, free: 5.672 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.5263, allocations: 8 kB / 0.5125 GB, free: 5.664 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.5264, allocations: 4 kB / 0.5125 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002393/0.5266, allocations: 57.69 kB / 0.5125 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.5278, allocations: 180.2 kB / 0.5127 GB, free: 5.422 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008265/0.5286, allocations: 1.085 MB / 0.5138 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008246/0.5295, allocations: 47.86 kB / 0.5138 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.743e-05/0.5296, allocations: 39.98 kB / 0.5139 GB, free: 4.199 MB / 430.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.0003073/0.5299, allocations: 177.8 kB / 0.514 GB, free: 4.016 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.5301, allocations: 31.81 kB / 0.5141 GB, free: 3.984 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002335/0.5324, allocations: 0.781 MB / 0.5148 GB, free: 3.191 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.5324, allocations: 4 kB / 0.5148 GB, free: 3.188 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.5325, allocations: 4 kB / 0.5148 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.5325, allocations: 3.984 kB / 0.5148 GB, free: 3.18 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003606/0.5361, allocations: 1.558 MB / 0.5163 GB, free: 1.527 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.5361, allocations: 7.984 kB / 0.5164 GB, free: 1.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.5373, allocations: 143.8 kB / 0.5165 GB, free: 1.379 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001517/0.5374, allocations: 49.84 kB / 0.5165 GB, free: 1.324 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-05/0.5375, allocations: 27.97 kB / 0.5166 GB, free: 1.297 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002265/0.5398, allocations: 2.525 MB / 0.519 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5398, allocations: 256 / 0.519 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002712/0.5425, allocations: 1.087 MB / 0.5201 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001934/0.5427, allocations: 100.9 kB / 0.5202 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.484e-05/0.5428, allocations: 19.88 kB / 0.5202 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008551/0.5437, allocations: 39.95 kB / 0.5202 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.682e-05/0.5438, allocations: 39.95 kB / 0.5203 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.047e-05/0.5439, allocations: 35.97 kB / 0.5203 GB, free: 13.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001127/0.544, allocations: 124.4 kB / 0.5204 GB, free: 13 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.544, allocations: 0 / 0.5204 GB, free: 13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001719/0.5457, allocations: 399.8 kB / 0.5208 GB, free: 12.61 MB / 446.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.003539/0.5493, allocations: 0.8813 MB / 0.5217 GB, free: 11.72 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002108/0.5514, allocations: 0.6521 MB / 0.5223 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.5514, allocations: 0 / 0.5223 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.5526, allocations: 0.5364 MB / 0.5228 GB, free: 10.51 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008433/0.5534, allocations: 103.8 kB / 0.5229 GB, free: 10.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.5558, allocations: 1.144 MB / 0.5241 GB, free: 9.211 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004225/0.5562, allocations: 0.7931 MB / 0.5248 GB, free: 8.391 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004683/0.5567, allocations: 71.36 kB / 0.5249 GB, free: 8.32 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5567, allocations: 8 kB / 0.5249 GB, free: 8.312 MB / 446.1 MB Notification: Performance of Templates: time 0.2075/0.7642, allocations: 14.58 MB / 0.5391 GB, free: 160.4 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_4.0.0_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches