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.001109/0.001109, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001142/0.001142, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.291/1.291, allocations: 222.9 MB / 242.3 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009813/0.0009814, allocations: 54.11 kB / 302 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08434/0.08534, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.312/0.3974, allocations: 152.5 MB / 0.4922 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004288/0.4018, allocations: 4.038 MB / 0.4961 GB, free: 7.77 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.4019, allocations: 0 / 0.4961 GB, free: 7.77 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004601/0.4024, allocations: 107.4 kB / 0.4962 GB, free: 7.664 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002772/0.4052, allocations: 1.175 MB / 0.4974 GB, free: 6.484 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.4063, allocations: 386.9 kB / 0.4978 GB, free: 6.113 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006395/0.407, allocations: 458.9 kB / 0.4982 GB, free: 5.66 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.646e-05/0.407, allocations: 9.562 kB / 0.4982 GB, free: 5.652 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004002/0.4074, allocations: 234.9 kB / 0.4984 GB, free: 5.426 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002102/0.4077, allocations: 139.5 kB / 0.4986 GB, free: 5.289 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.58e-05/0.4077, allocations: 20 kB / 0.4986 GB, free: 5.27 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003722/0.4114, allocations: 2.053 MB / 0.5006 GB, free: 3.211 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.4116, allocations: 139.6 kB / 0.5007 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002232/0.4118, allocations: 167.3 kB / 0.5009 GB, free: 2.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002159/0.414, allocations: 1.532 MB / 0.5024 GB, free: 1.375 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.414, allocations: 8 kB / 0.5024 GB, free: 1.367 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.414, allocations: 0 / 0.5024 GB, free: 1.367 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.414, allocations: 0 / 0.5024 GB, free: 1.367 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.00214/0.4162, allocations: 0.769 MB / 0.5031 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.4162, allocations: 8.031 kB / 0.5031 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006885/0.4169, allocations: 108.6 kB / 0.5032 GB, free: 448 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004431/0.4174, allocations: 283.4 kB / 0.5035 GB, free: 124 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.4174, allocations: 20.56 kB / 0.5035 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.339e-05/0.4175, allocations: 31.98 kB / 0.5036 GB, free: 72 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.4186, allocations: 0.5964 MB / 0.5041 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.4186, allocations: 3.938 kB / 0.5041 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.405e-05/0.4187, allocations: 12 kB / 0.5042 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.394e-05/0.4187, allocations: 24.42 kB / 0.5042 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.4199, allocations: 0.6302 MB / 0.5048 GB, free: 14.79 MB / 430.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.002925/0.4228, allocations: 1.275 MB / 0.506 GB, free: 13.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008845/0.4237, allocations: 356.7 kB / 0.5064 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004252/0.4242, allocations: 177.6 kB / 0.5065 GB, free: 12.91 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002407/0.4266, allocations: 1.387 MB / 0.5079 GB, free: 11.3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.4267, allocations: 42.75 kB / 0.5079 GB, free: 11.25 MB / 430.1 MB Notification: Performance of pre-optimization done (n=35): time 1.824e-06/0.4267, allocations: 3.938 kB / 0.5079 GB, free: 11.25 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.01433/0.441, allocations: 3.483 MB / 0.5114 GB, free: 7.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.787e-05/0.4411, allocations: 89.09 kB / 0.5114 GB, free: 7.465 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.4412, allocations: 181.1 kB / 0.5116 GB, free: 7.281 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.375e-05/0.4413, allocations: 33.7 kB / 0.5116 GB, free: 7.242 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.742e-05/0.4414, allocations: 180.1 kB / 0.5118 GB, free: 7.059 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.4416, allocations: 173.5 kB / 0.512 GB, free: 6.887 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002321/0.4418, allocations: 118.3 kB / 0.5121 GB, free: 6.766 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.442, allocations: 334.8 kB / 0.5124 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007976/0.4428, allocations: 269.1 kB / 0.5127 GB, free: 6.168 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.4438, allocations: 429.5 kB / 0.5131 GB, free: 5.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001738/0.4456, allocations: 0.696 MB / 0.5138 GB, free: 4.918 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4456, allocations: 0 / 0.5138 GB, free: 4.918 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001933/0.4475, allocations: 0.7792 MB / 0.5145 GB, free: 4.129 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.4476, allocations: 8 kB / 0.5145 GB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.4476, allocations: 4 kB / 0.5145 GB, free: 4.117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002271/0.4478, allocations: 54.31 kB / 0.5146 GB, free: 4.059 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.449, allocations: 187.7 kB / 0.5148 GB, free: 3.875 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007291/0.4497, allocations: 1.081 MB / 0.5158 GB, free: 2.742 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000741/0.4505, allocations: 39.95 kB / 0.5159 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.217e-05/0.4506, allocations: 35.98 kB / 0.5159 GB, free: 2.668 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.000274/0.4509, allocations: 185.7 kB / 0.5161 GB, free: 2.477 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.451, allocations: 27.72 kB / 0.5161 GB, free: 2.449 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/0.4532, allocations: 0.7806 MB / 0.5169 GB, free: 1.656 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.4532, allocations: 8 kB / 0.5169 GB, free: 1.648 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4532, allocations: 0 / 0.5169 GB, free: 1.648 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.4532, allocations: 3.984 kB / 0.5169 GB, free: 1.645 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003235/0.4565, allocations: 1.564 MB / 0.5184 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.4565, allocations: 4 kB / 0.5184 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.4575, allocations: 147.7 kB / 0.5185 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001314/0.4577, allocations: 45.56 kB / 0.5186 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.965e-05/0.4578, allocations: 24.08 kB / 0.5186 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/0.4597, allocations: 2.726 MB / 0.5213 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.4598, allocations: 11.95 kB / 0.5213 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002495/0.4623, allocations: 1.072 MB / 0.5223 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.139e-05/0.4624, allocations: 100.9 kB / 0.5224 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.982e-05/0.4625, allocations: 16 kB / 0.5224 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007748/0.4633, allocations: 35.95 kB / 0.5225 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.466e-05/0.4633, allocations: 55.81 kB / 0.5225 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-05/0.4634, allocations: 31.97 kB / 0.5226 GB, free: 11.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.699e-05/0.4635, allocations: 119.2 kB / 0.5227 GB, free: 11.26 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4635, allocations: 0 / 0.5227 GB, free: 11.26 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001346/0.4649, allocations: 387.8 kB / 0.523 GB, free: 10.88 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.002193/0.4671, allocations: 0.8615 MB / 0.5239 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.4689, allocations: 0.6518 MB / 0.5245 GB, free: 9.359 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4689, allocations: 0 / 0.5245 GB, free: 9.359 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.47, allocations: 0.5287 MB / 0.525 GB, free: 8.805 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007108/0.4707, allocations: 96.55 kB / 0.5251 GB, free: 8.711 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/0.4727, allocations: 1.002 MB / 0.5261 GB, free: 7.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.473, allocations: 0.7852 MB / 0.5269 GB, free: 6.852 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007847/0.4738, allocations: 183.1 kB / 0.527 GB, free: 6.672 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002984/0.4741, allocations: 75.31 kB / 0.5271 GB, free: 6.598 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4741, allocations: 0 / 0.5271 GB, free: 6.598 MB / 446.1 MB Notification: Performance of Templates: time 0.1649/0.6391, allocations: 16.09 MB / 0.5428 GB, free: 163.9 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 -s cvode -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