Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009006/0.0009007, allocations: 197.8 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007419/0.000742, allocations: 102.7 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000195/0.0001951, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1734, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2853/0.4587, allocations: 138.4 MB / 0.5331 GB, free: 13.3 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.003551/0.4623, allocations: 3.746 MB / 0.5368 GB, free: 13.06 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.4625, allocations: 4 kB / 0.5368 GB, free: 13.06 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002995/0.4628, allocations: 76.73 kB / 0.5369 GB, free: 13.04 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001973/0.4648, allocations: 0.7986 MB / 0.5376 GB, free: 12.86 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007478/0.4655, allocations: 286.5 kB / 0.5379 GB, free: 12.82 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005028/0.466, allocations: 0.5207 MB / 0.5384 GB, free: 12.73 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.796e-05/0.4661, allocations: 13.45 kB / 0.5384 GB, free: 12.73 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002949/0.4664, allocations: 199.6 kB / 0.5386 GB, free: 12.7 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.4666, allocations: 167.5 kB / 0.5388 GB, free: 12.68 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.4666, allocations: 10.72 kB / 0.5388 GB, free: 12.68 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002797/0.4694, allocations: 1.587 MB / 0.5403 GB, free: 12.43 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.4696, allocations: 140.5 kB / 0.5405 GB, free: 12.37 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 8.5e-05/0.4697, allocations: 86.81 kB / 0.5406 GB, free: 12.33 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001079/0.4708, allocations: 0.9167 MB / 0.5415 GB, free: 11.98 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.4708, allocations: 0 / 0.5415 GB, free: 11.98 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4708, allocations: 0 / 0.5415 GB, free: 11.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.4708, allocations: 0 / 0.5415 GB, free: 11.98 MB / 394.7 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.001776/0.4726, allocations: 0.7034 MB / 0.5421 GB, free: 11.42 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.4726, allocations: 8.219 kB / 0.5421 GB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002123/0.4747, allocations: 258 kB / 0.5424 GB, free: 11.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003605/0.4751, allocations: 291.8 kB / 0.5427 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.4751, allocations: 19.47 kB / 0.5427 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.284e-05/0.4752, allocations: 32.53 kB / 0.5427 GB, free: 11.06 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.4764, allocations: 0.6692 MB / 0.5434 GB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.4764, allocations: 0 / 0.5434 GB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.614e-05/0.4765, allocations: 9.781 kB / 0.5434 GB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.4766, allocations: 19.03 kB / 0.5434 GB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.478, allocations: 0.7638 MB / 0.5441 GB, free: 10.71 MB / 394.7 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.003497/0.4815, allocations: 1.803 MB / 0.5459 GB, free: 9.582 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.4827, allocations: 477.4 kB / 0.5464 GB, free: 9.449 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005673/0.4833, allocations: 234.3 kB / 0.5466 GB, free: 9.391 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002152/0.4854, allocations: 1.374 MB / 0.5479 GB, free: 8.125 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.4855, allocations: 36.81 kB / 0.548 GB, free: 8.086 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 2.474e-06/0.4855, allocations: 0 / 0.548 GB, free: 8.086 MB / 394.7 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.01267/0.4981, allocations: 3.639 MB / 0.5515 GB, free: 6.379 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.4982, allocations: 80.02 kB / 0.5516 GB, free: 6.285 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.4984, allocations: 180.7 kB / 0.5518 GB, free: 6.16 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.488e-05/0.4984, allocations: 39.14 kB / 0.5518 GB, free: 6.125 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.4986, allocations: 180.5 kB / 0.552 GB, free: 5.969 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.4987, allocations: 172.6 kB / 0.5521 GB, free: 5.844 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-05/0.4988, allocations: 9.188 kB / 0.5521 GB, free: 5.844 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.4989, allocations: 335.7 kB / 0.5525 GB, free: 5.523 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000692/0.4996, allocations: 264.6 kB / 0.5527 GB, free: 5.473 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007564/0.5003, allocations: 425.1 kB / 0.5531 GB, free: 5.227 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007299/0.5011, allocations: 306.6 kB / 0.5534 GB, free: 5.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.5011, allocations: 0 / 0.5534 GB, free: 5.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00177/0.5029, allocations: 0.7767 MB / 0.5542 GB, free: 4.977 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.5029, allocations: 10.66 kB / 0.5542 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.5029, allocations: 8.672 kB / 0.5542 GB, free: 4.973 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001967/0.5031, allocations: 59.69 kB / 0.5543 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.5042, allocations: 184.9 kB / 0.5544 GB, free: 4.895 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006192/0.5049, allocations: 1.078 MB / 0.5555 GB, free: 3.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007666/0.5057, allocations: 44.19 kB / 0.5555 GB, free: 3.824 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-05/0.5057, allocations: 37.77 kB / 0.5556 GB, free: 3.82 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000233/0.506, allocations: 179.1 kB / 0.5557 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.5061, allocations: 28.47 kB / 0.5558 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/0.5082, allocations: 0.796 MB / 0.5565 GB, free: 3.391 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.5082, allocations: 8.859 kB / 0.5565 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.5082, allocations: 2.906 kB / 0.5565 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.5082, allocations: 0 / 0.5565 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002985/0.5112, allocations: 1.558 MB / 0.5581 GB, free: 2.516 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.5112, allocations: 2.938 kB / 0.5581 GB, free: 2.516 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.5122, allocations: 141.8 kB / 0.5582 GB, free: 2.477 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001322/0.5124, allocations: 54.83 kB / 0.5583 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-05/0.5125, allocations: 29.69 kB / 0.5583 GB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00152/0.514, allocations: 2.518 MB / 0.5607 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.514, allocations: 9.844 kB / 0.5608 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.5163, allocations: 1.084 MB / 0.5618 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.315e-05/0.5164, allocations: 100.6 kB / 0.5619 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.443e-05/0.5165, allocations: 14.14 kB / 0.5619 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007797/0.5173, allocations: 39.89 kB / 0.562 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.52e-05/0.5174, allocations: 43.81 kB / 0.562 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.104e-05/0.5175, allocations: 35.03 kB / 0.562 GB, free: 15.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.762e-05/0.5175, allocations: 126.3 kB / 0.5622 GB, free: 15.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5176, allocations: 0 / 0.5622 GB, free: 15.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001301/0.5189, allocations: 383.2 kB / 0.5625 GB, free: 15.11 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002387/0.5213, allocations: 0.6757 MB / 0.5632 GB, free: 14.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001741/0.523, allocations: 0.6521 MB / 0.5638 GB, free: 14.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.523, allocations: 0 / 0.5638 GB, free: 14.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009875/0.524, allocations: 0.5346 MB / 0.5643 GB, free: 14.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007236/0.5248, allocations: 97.34 kB / 0.5644 GB, free: 14.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001995/0.5268, allocations: 1.218 MB / 0.5656 GB, free: 13.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.5271, allocations: 0.7915 MB / 0.5664 GB, free: 12.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004254/0.5275, allocations: 78.03 kB / 0.5665 GB, free: 12.7 MB / 410.7 MB Notification: Performance of SimCode: time 8.71e-07/0.5275, allocations: 0 / 0.5665 GB, free: 12.7 MB / 410.7 MB Notification: Performance of Templates: time 0.01959/0.5471, allocations: 14.43 MB / 0.5806 GB, free: 244 kB / 410.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches