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.0008771/0.0008772, allocations: 90.61 kB / 16.3 MB, free: 6.133 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.0009465/0.0009467, allocations: 184 kB / 17.2 MB, free: 6.016 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.221/1.221, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002204/0.0002204, allocations: 8 kB / 300.7 MB, free: 6.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08255/0.08278, allocations: 50.41 MB / 351.1 MB, free: 3.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2751/0.3579, allocations: 127.6 MB / 478.7 MB, free: 5.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003461/0.3614, allocations: 3.388 MB / 482.1 MB, free: 2.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.349e-05/0.3615, allocations: 4 kB / 482.1 MB, free: 2.496 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003071/0.3618, allocations: 79.59 kB / 482.2 MB, free: 2.418 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001584/0.3634, allocations: 0.7906 MB / 483 MB, free: 1.625 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007187/0.3641, allocations: 291.3 kB / 483.3 MB, free: 1.344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003934/0.3645, allocations: 283.9 kB / 483.6 MB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.157e-05/0.3646, allocations: 17.55 kB / 483.6 MB, free: 1.047 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004648/0.3651, allocations: 287.1 kB / 483.9 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.3652, allocations: 111.6 kB / 484 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.3653, allocations: 12 kB / 484 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003617/0.3689, allocations: 1.614 MB / 485.6 MB, free: 15.03 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.369, allocations: 119.7 kB / 485.7 MB, free: 14.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.372e-05/0.3691, allocations: 81.58 kB / 485.8 MB, free: 14.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.3702, allocations: 0.866 MB / 486.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3702, allocations: 0 / 486.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3703, allocations: 3.938 kB / 486.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.3703, allocations: 0 / 486.7 MB, free: 13.96 MB / 398.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.001827/0.3721, allocations: 0.7182 MB / 487.4 MB, free: 13.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.3721, allocations: 8.031 kB / 487.4 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006804/0.3728, allocations: 115.6 kB / 487.5 MB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.3732, allocations: 262.7 kB / 487.8 MB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.3732, allocations: 16.56 kB / 487.8 MB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.584e-05/0.3733, allocations: 35.86 kB / 487.8 MB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.3743, allocations: 0.5851 MB / 488.4 MB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.3743, allocations: 3.938 kB / 488.4 MB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.823e-05/0.3744, allocations: 12 kB / 488.4 MB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.022e-05/0.3744, allocations: 29.28 kB / 488.4 MB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.3757, allocations: 0.6423 MB / 489.1 MB, free: 11.44 MB / 398.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.002645/0.3783, allocations: 1.237 MB / 490.3 MB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009493/0.3793, allocations: 360.7 kB / 490.7 MB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00144/0.3808, allocations: 0.9393 MB / 491.6 MB, free: 8.691 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.3808, allocations: 38.56 kB / 491.6 MB, free: 8.645 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.763e-06/0.3808, allocations: 0 / 491.6 MB, free: 8.645 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.0151/0.3959, allocations: 3.492 MB / 495.1 MB, free: 4.953 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.396, allocations: 85.06 kB / 495.2 MB, free: 4.852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.3962, allocations: 180.1 kB / 495.4 MB, free: 4.668 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.421e-05/0.3962, allocations: 41.7 kB / 495.4 MB, free: 4.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.453e-05/0.3963, allocations: 176.1 kB / 495.6 MB, free: 4.441 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.3965, allocations: 177.5 kB / 495.8 MB, free: 4.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.3965, allocations: 12 kB / 495.8 MB, free: 4.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.3967, allocations: 338.8 kB / 496.1 MB, free: 3.914 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007626/0.3974, allocations: 261.1 kB / 496.4 MB, free: 3.656 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008272/0.3983, allocations: 418.2 kB / 496.8 MB, free: 3.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007845/0.3991, allocations: 308.9 kB / 497.1 MB, free: 2.887 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3991, allocations: 0 / 497.1 MB, free: 2.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001933/0.401, allocations: 0.781 MB / 497.9 MB, free: 2.094 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.401, allocations: 7.938 kB / 497.9 MB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.4011, allocations: 8 kB / 497.9 MB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001888/0.4012, allocations: 53.62 kB / 497.9 MB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.4024, allocations: 184.2 kB / 498.1 MB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005845/0.403, allocations: 1.081 MB / 499.2 MB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000786/0.4038, allocations: 43.95 kB / 499.2 MB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.291e-05/0.4039, allocations: 43.92 kB / 499.3 MB, free: 0.6211 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 (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.0002283/0.4042, allocations: 181.7 kB / 499.5 MB, free: 444 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.4043, allocations: 31.64 kB / 499.5 MB, free: 412 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002213/0.4065, allocations: 0.7755 MB / 0.4885 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.4065, allocations: 4 kB / 0.4885 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.465e-06/0.4065, allocations: 7.984 kB / 0.4886 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.4065, allocations: 7.953 kB / 0.4886 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003161/0.4097, allocations: 1.546 MB / 0.4901 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.4097, allocations: 0 / 0.4901 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/0.4108, allocations: 151.9 kB / 0.4902 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001264/0.411, allocations: 49.59 kB / 0.4903 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.669e-05/0.411, allocations: 15.98 kB / 0.4903 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/0.4125, allocations: 2.552 MB / 0.4928 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4126, allocations: 0 / 0.4928 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00256/0.4151, allocations: 1.163 MB / 0.4939 GB, free: 9.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.316e-05/0.4152, allocations: 100.9 kB / 0.494 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.121e-05/0.4153, allocations: 19.94 kB / 0.494 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008311/0.4161, allocations: 35.95 kB / 0.4941 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.018e-05/0.4162, allocations: 51.84 kB / 0.4941 GB, free: 9.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-05/0.4163, allocations: 31.97 kB / 0.4941 GB, free: 9.406 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.337e-05/0.4164, allocations: 120.4 kB / 0.4943 GB, free: 9.289 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4164, allocations: 0 / 0.4943 GB, free: 9.289 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001176/0.4176, allocations: 379.7 kB / 0.4946 GB, free: 8.918 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 (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.002039/0.4196, allocations: 0.6627 MB / 0.4953 GB, free: 8.246 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.4214, allocations: 0.6447 MB / 0.4959 GB, free: 7.602 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4215, allocations: 3.938 kB / 0.4959 GB, free: 7.598 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.4225, allocations: 0.5365 MB / 0.4964 GB, free: 7.035 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005891/0.4231, allocations: 101.6 kB / 0.4965 GB, free: 6.938 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.4251, allocations: 1.171 MB / 0.4977 GB, free: 5.723 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.4254, allocations: 0.7968 MB / 0.4984 GB, free: 4.902 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001114/0.4265, allocations: 191.1 kB / 0.4986 GB, free: 4.711 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/0.4269, allocations: 63.39 kB / 0.4987 GB, free: 4.648 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4269, allocations: 0 / 0.4987 GB, free: 4.648 MB / 414.1 MB Notification: Performance of Templates: time 0.02118/0.4481, allocations: 15.51 MB / 0.5138 GB, free: 5.16 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches