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.001264/0.001264, allocations: 106.3 kB / 17.73 MB, free: 5.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.001322/0.001322, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.583/1.583, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001191/0.001191, allocations: 47.92 kB / 328.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08731/0.08851, allocations: 46.62 MB / 375.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3535/0.442, allocations: 154.3 MB / 0.517 GB, free: 4.891 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003971/0.4461, allocations: 3.051 MB / 0.52 GB, free: 1.832 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.4463, allocations: 0 / 0.52 GB, free: 1.832 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005846/0.447, allocations: 107.4 kB / 0.5201 GB, free: 1.727 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002916/0.4499, allocations: 1.175 MB / 0.5212 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.4509, allocations: 387.5 kB / 0.5216 GB, free: 172 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000653/0.4516, allocations: 450.9 kB / 0.522 GB, free: 15.73 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.883e-05/0.4517, allocations: 13.56 kB / 0.522 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004402/0.4521, allocations: 238.4 kB / 0.5223 GB, free: 15.48 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002522/0.4524, allocations: 135.5 kB / 0.5224 GB, free: 15.35 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.773e-05/0.4524, allocations: 20 kB / 0.5224 GB, free: 15.33 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003799/0.4562, allocations: 2.06 MB / 0.5244 GB, free: 13.27 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.4564, allocations: 135.7 kB / 0.5246 GB, free: 13.13 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002005/0.4566, allocations: 167.3 kB / 0.5247 GB, free: 12.97 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002479/0.4591, allocations: 1.531 MB / 0.5262 GB, free: 11.43 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.4591, allocations: 3.938 kB / 0.5262 GB, free: 11.43 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4591, allocations: 8 kB / 0.5262 GB, free: 11.42 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.4592, allocations: 0 / 0.5262 GB, free: 11.42 MB / 462.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.002088/0.4612, allocations: 0.7788 MB / 0.527 GB, free: 10.59 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.4613, allocations: 8.031 kB / 0.527 GB, free: 10.58 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000722/0.462, allocations: 108.7 kB / 0.5271 GB, free: 10.48 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/0.4624, allocations: 287.7 kB / 0.5274 GB, free: 10.16 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.4624, allocations: 24.5 kB / 0.5274 GB, free: 10.13 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.196e-05/0.4625, allocations: 24 kB / 0.5274 GB, free: 10.11 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.4636, allocations: 0.5964 MB / 0.528 GB, free: 9.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.4636, allocations: 0 / 0.528 GB, free: 9.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.607e-05/0.4637, allocations: 16 kB / 0.528 GB, free: 9.484 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.249e-05/0.4637, allocations: 16.44 kB / 0.528 GB, free: 9.469 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.465, allocations: 0.638 MB / 0.5286 GB, free: 8.832 MB / 462.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.002895/0.468, allocations: 1.287 MB / 0.5299 GB, free: 7.488 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009483/0.4689, allocations: 358.1 kB / 0.5302 GB, free: 7.121 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004726/0.4694, allocations: 170.5 kB / 0.5304 GB, free: 6.949 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0023/0.4717, allocations: 1.383 MB / 0.5318 GB, free: 5.344 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.4718, allocations: 46.55 kB / 0.5318 GB, free: 5.289 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 1.993e-06/0.4718, allocations: 0 / 0.5318 GB, free: 5.289 MB / 462.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.01463/0.4864, allocations: 3.483 MB / 0.5352 GB, free: 1.609 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.4865, allocations: 89.11 kB / 0.5353 GB, free: 1.504 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.4867, allocations: 182.5 kB / 0.5355 GB, free: 1.316 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.995e-05/0.4868, allocations: 37.7 kB / 0.5355 GB, free: 1.273 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.4869, allocations: 180.6 kB / 0.5357 GB, free: 1.09 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.4871, allocations: 182.4 kB / 0.5358 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002281/0.4873, allocations: 110.3 kB / 0.5359 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.4875, allocations: 342.8 kB / 0.5363 GB, free: 464 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007345/0.4882, allocations: 265.1 kB / 0.5365 GB, free: 200 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000873/0.4891, allocations: 429.4 kB / 0.5369 GB, free: 15.71 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001655/0.4908, allocations: 0.703 MB / 0.5376 GB, free: 14.94 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.4908, allocations: 0 / 0.5376 GB, free: 14.94 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001996/0.4928, allocations: 0.784 MB / 0.5384 GB, free: 14.14 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.4928, allocations: 11.28 kB / 0.5384 GB, free: 14.13 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.4929, allocations: 5.75 kB / 0.5384 GB, free: 14.13 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002325/0.4931, allocations: 54.31 kB / 0.5385 GB, free: 14.07 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/0.4942, allocations: 179.7 kB / 0.5386 GB, free: 13.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006525/0.4949, allocations: 1.085 MB / 0.5397 GB, free: 12.76 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007308/0.4956, allocations: 43.95 kB / 0.5397 GB, free: 12.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.532e-05/0.4957, allocations: 35.98 kB / 0.5398 GB, free: 12.68 MB / 478.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.0002845/0.496, allocations: 177.7 kB / 0.5399 GB, free: 12.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.4961, allocations: 27.86 kB / 0.54 GB, free: 12.47 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002168/0.4983, allocations: 0.7823 MB / 0.5407 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.67e-05/0.4983, allocations: 8 kB / 0.5407 GB, free: 11.67 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.4983, allocations: 0 / 0.5407 GB, free: 11.67 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.4983, allocations: 3.984 kB / 0.5407 GB, free: 11.66 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003182/0.5015, allocations: 1.555 MB / 0.5423 GB, free: 10.01 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5015, allocations: 0 / 0.5423 GB, free: 10.01 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.5026, allocations: 147.7 kB / 0.5424 GB, free: 9.867 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001348/0.5027, allocations: 43.83 kB / 0.5424 GB, free: 9.82 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-05/0.5028, allocations: 31.91 kB / 0.5425 GB, free: 9.789 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001757/0.5046, allocations: 2.739 MB / 0.5451 GB, free: 6.773 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.5046, allocations: 4.031 kB / 0.5451 GB, free: 6.77 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.5072, allocations: 1.073 MB / 0.5462 GB, free: 5.652 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.413e-05/0.5073, allocations: 104.9 kB / 0.5463 GB, free: 5.531 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.97e-05/0.5074, allocations: 12 kB / 0.5463 GB, free: 5.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007852/0.5082, allocations: 43.94 kB / 0.5463 GB, free: 5.477 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.661e-05/0.5083, allocations: 47.88 kB / 0.5464 GB, free: 5.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-05/0.5083, allocations: 32.97 kB / 0.5464 GB, free: 5.398 MB / 478.1 MB Notification: Performance of sorting global known variables: time 9.96e-05/0.5084, allocations: 128.4 kB / 0.5465 GB, free: 5.273 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5084, allocations: 0 / 0.5465 GB, free: 5.273 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001334/0.5098, allocations: 391.2 kB / 0.5469 GB, free: 4.891 MB / 478.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.002237/0.512, allocations: 0.8493 MB / 0.5477 GB, free: 4.031 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.514, allocations: 0.6564 MB / 0.5484 GB, free: 3.379 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.514, allocations: 3.938 kB / 0.5484 GB, free: 3.375 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.5151, allocations: 0.5326 MB / 0.5489 GB, free: 2.816 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007933/0.516, allocations: 103.1 kB / 0.549 GB, free: 2.719 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002144/0.5181, allocations: 0.9912 MB / 0.55 GB, free: 1.668 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.5185, allocations: 0.7813 MB / 0.5507 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008014/0.5193, allocations: 191 kB / 0.5509 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003077/0.5196, allocations: 63.39 kB / 0.551 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5196, allocations: 4 kB / 0.551 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of Templates: time 0.213/0.7325, allocations: 16.17 MB / 0.5668 GB, free: 162.5 MB / 478.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches