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.0007769/0.000777, allocations: 98.08 kB / 17.31 MB, free: 6.391 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.0009895/0.0009898, allocations: 174.8 kB / 18.21 MB, free: 5.555 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.364/1.364, allocations: 223.3 MB / 242.3 MB, free: 14.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002547/0.0002548, allocations: 8.641 kB / 302.1 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.101, allocations: 50.41 MB / 352.5 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3274/0.4284, allocations: 148.4 MB / 0.4891 GB, free: 1.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004358/0.4328, allocations: 4.066 MB / 0.4931 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.433, allocations: 7.938 kB / 0.4931 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003819/0.4334, allocations: 99.56 kB / 0.4932 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002263/0.4357, allocations: 1.095 MB / 0.4943 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008681/0.4365, allocations: 349.5 kB / 0.4946 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006851/0.4372, allocations: 0.6198 MB / 0.4952 GB, free: 11 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.108e-05/0.4373, allocations: 17.48 kB / 0.4952 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003942/0.4377, allocations: 211.1 kB / 0.4954 GB, free: 10.78 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.438, allocations: 155.5 kB / 0.4956 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.304e-05/0.438, allocations: 12 kB / 0.4956 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003936/0.442, allocations: 2.482 MB / 0.498 GB, free: 8.125 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000151/0.4421, allocations: 131.6 kB / 0.4981 GB, free: 7.996 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002043/0.4423, allocations: 193.1 kB / 0.4983 GB, free: 7.801 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.444, allocations: 1.24 MB / 0.4995 GB, free: 6.559 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.4441, allocations: 3.938 kB / 0.4995 GB, free: 6.555 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4441, allocations: 0 / 0.4995 GB, free: 6.555 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.4441, allocations: 0 / 0.4995 GB, free: 6.555 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.002028/0.4461, allocations: 0.6949 MB / 0.5002 GB, free: 5.812 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.4461, allocations: 8.031 kB / 0.5002 GB, free: 5.805 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002415/0.4486, allocations: 269.3 kB / 0.5005 GB, free: 5.543 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/0.449, allocations: 291.4 kB / 0.5007 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.449, allocations: 20.5 kB / 0.5008 GB, free: 5.199 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.99e-05/0.4491, allocations: 28 kB / 0.5008 GB, free: 5.172 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.4504, allocations: 0.6667 MB / 0.5014 GB, free: 4.492 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.4505, allocations: 0 / 0.5014 GB, free: 4.492 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.159e-05/0.4505, allocations: 12 kB / 0.5014 GB, free: 4.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.323e-05/0.4506, allocations: 20.42 kB / 0.5015 GB, free: 4.461 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/0.4523, allocations: 0.7628 MB / 0.5022 GB, free: 3.699 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.003851/0.4561, allocations: 1.822 MB / 0.504 GB, free: 1.781 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.4575, allocations: 480 kB / 0.5044 GB, free: 1.297 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006469/0.4581, allocations: 229.6 kB / 0.5047 GB, free: 1.066 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002433/0.4606, allocations: 1.38 MB / 0.506 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.4606, allocations: 34.75 kB / 0.506 GB, free: 15.42 MB / 430.1 MB Notification: Performance of pre-optimization done (n=35): time 1.894e-06/0.4606, allocations: 0 / 0.506 GB, free: 15.42 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.01428/0.4749, allocations: 3.643 MB / 0.5096 GB, free: 11.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.475, allocations: 81.11 kB / 0.5097 GB, free: 11.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.4752, allocations: 176.3 kB / 0.5098 GB, free: 11.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.815e-05/0.4753, allocations: 37.7 kB / 0.5099 GB, free: 11.25 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.4754, allocations: 188 kB / 0.5101 GB, free: 11.06 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.4755, allocations: 173.6 kB / 0.5102 GB, free: 10.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.294e-05/0.4756, allocations: 57.56 kB / 0.5103 GB, free: 10.83 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.4758, allocations: 338.8 kB / 0.5106 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007975/0.4766, allocations: 265.1 kB / 0.5109 GB, free: 10.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008723/0.4774, allocations: 425.5 kB / 0.5113 GB, free: 9.746 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001634/0.4791, allocations: 0.6988 MB / 0.5119 GB, free: 8.984 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4791, allocations: 0 / 0.5119 GB, free: 8.984 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002024/0.4811, allocations: 0.7888 MB / 0.5127 GB, free: 8.184 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.4812, allocations: 6.812 kB / 0.5127 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.4812, allocations: 8 kB / 0.5127 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002074/0.4814, allocations: 49.69 kB / 0.5128 GB, free: 8.117 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.4826, allocations: 179.9 kB / 0.513 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006655/0.4832, allocations: 1.085 MB / 0.514 GB, free: 6.805 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008078/0.4841, allocations: 52.05 kB / 0.5141 GB, free: 6.754 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.089e-05/0.4842, allocations: 39.98 kB / 0.5141 GB, free: 6.715 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.0002511/0.4844, allocations: 173.8 kB / 0.5143 GB, free: 6.535 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.4845, allocations: 27.7 kB / 0.5143 GB, free: 6.508 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002306/0.4868, allocations: 0.7824 MB / 0.5151 GB, free: 5.711 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.4869, allocations: 4 kB / 0.5151 GB, free: 5.707 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.4869, allocations: 0 / 0.5151 GB, free: 5.707 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.4869, allocations: 3.984 kB / 0.5151 GB, free: 5.703 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00332/0.4902, allocations: 1.563 MB / 0.5166 GB, free: 4.051 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.4902, allocations: 0 / 0.5166 GB, free: 4.051 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.4913, allocations: 155.7 kB / 0.5167 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001355/0.4915, allocations: 49.62 kB / 0.5168 GB, free: 3.844 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.43e-05/0.4916, allocations: 23.97 kB / 0.5168 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001624/0.4932, allocations: 2.529 MB / 0.5193 GB, free: 1.027 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4932, allocations: 0 / 0.5193 GB, free: 1.027 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1659/0.6591, allocations: 1.081 MB / 0.5203 GB, free: 149.4 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.6592, allocations: 99.61 kB / 0.5204 GB, free: 149.3 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.6594, allocations: 17.38 kB / 0.5204 GB, free: 149.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009866/0.6604, allocations: 42.7 kB / 0.5205 GB, free: 149.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.6605, allocations: 40.28 kB / 0.5205 GB, free: 149.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.6606, allocations: 34.78 kB / 0.5206 GB, free: 149.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001122/0.6607, allocations: 122.8 kB / 0.5207 GB, free: 149.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6607, allocations: 0.5312 kB / 0.5207 GB, free: 149.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001657/0.6624, allocations: 408.9 kB / 0.5211 GB, free: 149.3 MB / 430.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.00315/0.6656, allocations: 0.8667 MB / 0.5219 GB, free: 149.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002066/0.6676, allocations: 0.6496 MB / 0.5225 GB, free: 149.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.6677, allocations: 4.844 kB / 0.5225 GB, free: 149.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.6688, allocations: 0.5367 MB / 0.5231 GB, free: 149 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000843/0.6697, allocations: 102.4 kB / 0.5232 GB, free: 148.9 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.6718, allocations: 1.24 MB / 0.5244 GB, free: 148.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.672, allocations: 0.782 MB / 0.5251 GB, free: 147.7 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004445/0.6725, allocations: 77.48 kB / 0.5252 GB, free: 147.7 MB / 430.1 MB Notification: Performance of SimCode: time 1.352e-06/0.6725, allocations: 0 / 0.5252 GB, free: 147.7 MB / 430.1 MB Notification: Performance of Templates: time 0.02296/0.6954, allocations: 14.58 MB / 0.5395 GB, free: 142.4 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/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