Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001678/0.001678, allocations: 109 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002071/0.002071, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 57.62 kB / 306.9 MB, free: 1.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09939/0.1006, allocations: 50.53 MB / 357.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3272/0.4278, allocations: 153.2 MB / 0.4986 GB, free: 2.586 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004396/0.4322, allocations: 4.141 MB / 0.5027 GB, free: 14.45 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.4325, allocations: 4 kB / 0.5027 GB, free: 14.45 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004653/0.4329, allocations: 95.56 kB / 0.5028 GB, free: 14.36 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002444/0.4354, allocations: 1.099 MB / 0.5039 GB, free: 13.25 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009088/0.4363, allocations: 350.5 kB / 0.5042 GB, free: 12.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006427/0.437, allocations: 0.6197 MB / 0.5048 GB, free: 12.29 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.657e-05/0.437, allocations: 9.562 kB / 0.5048 GB, free: 12.29 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003903/0.4374, allocations: 231.1 kB / 0.505 GB, free: 12.06 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.4376, allocations: 163.5 kB / 0.5052 GB, free: 11.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.452e-05/0.4377, allocations: 11.94 kB / 0.5052 GB, free: 11.89 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003979/0.4417, allocations: 2.493 MB / 0.5076 GB, free: 9.387 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.4419, allocations: 131.7 kB / 0.5078 GB, free: 9.258 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.4421, allocations: 155.4 kB / 0.5079 GB, free: 9.105 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001763/0.4438, allocations: 1.251 MB / 0.5091 GB, free: 7.852 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.4439, allocations: 0 / 0.5091 GB, free: 7.852 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4439, allocations: 0 / 0.5091 GB, free: 7.852 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.4439, allocations: 0 / 0.5091 GB, free: 7.852 MB / 430.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.002179/0.4461, allocations: 0.7768 MB / 0.5099 GB, free: 7.027 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.4461, allocations: 8.031 kB / 0.5099 GB, free: 7.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002394/0.4485, allocations: 264.3 kB / 0.5101 GB, free: 6.762 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.4489, allocations: 295.4 kB / 0.5104 GB, free: 6.434 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.449, allocations: 20.56 kB / 0.5104 GB, free: 6.414 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.441e-05/0.449, allocations: 28 kB / 0.5105 GB, free: 6.387 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.4504, allocations: 0.6666 MB / 0.5111 GB, free: 5.707 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.4504, allocations: 8 kB / 0.5111 GB, free: 5.699 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.4505, allocations: 12 kB / 0.5111 GB, free: 5.688 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.692e-05/0.4506, allocations: 28.36 kB / 0.5112 GB, free: 5.66 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001649/0.4522, allocations: 0.7473 MB / 0.5119 GB, free: 4.906 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.003924/0.4561, allocations: 1.826 MB / 0.5137 GB, free: 2.988 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.4574, allocations: 480.8 kB / 0.5141 GB, free: 2.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006163/0.4581, allocations: 225.6 kB / 0.5144 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002302/0.4604, allocations: 1.372 MB / 0.5157 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.4604, allocations: 34.75 kB / 0.5157 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of pre-optimization done (n=35): time 2.825e-06/0.4604, allocations: 0 / 0.5157 GB, free: 0.6367 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.0144/0.4748, allocations: 3.721 MB / 0.5194 GB, free: 12.72 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.4749, allocations: 89.11 kB / 0.5194 GB, free: 12.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.4751, allocations: 173.1 kB / 0.5196 GB, free: 12.44 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.023e-05/0.4752, allocations: 33.7 kB / 0.5196 GB, free: 12.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.836e-05/0.4753, allocations: 184 kB / 0.5198 GB, free: 12.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.4754, allocations: 173.5 kB / 0.52 GB, free: 12.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/0.4756, allocations: 122.2 kB / 0.5201 GB, free: 11.92 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.4757, allocations: 334.8 kB / 0.5204 GB, free: 11.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007231/0.4765, allocations: 265.1 kB / 0.5207 GB, free: 11.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008343/0.4773, allocations: 433.5 kB / 0.5211 GB, free: 10.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.4789, allocations: 0.7034 MB / 0.5218 GB, free: 10.07 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.4789, allocations: 0 / 0.5218 GB, free: 10.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002027/0.481, allocations: 0.7806 MB / 0.5225 GB, free: 9.277 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.481, allocations: 4 kB / 0.5225 GB, free: 9.273 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.481, allocations: 8 kB / 0.5225 GB, free: 9.266 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.4813, allocations: 54.31 kB / 0.5226 GB, free: 9.207 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.4825, allocations: 183.7 kB / 0.5228 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006673/0.4831, allocations: 1.085 MB / 0.5238 GB, free: 7.891 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008077/0.484, allocations: 43.88 kB / 0.5239 GB, free: 7.848 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.483e-05/0.4841, allocations: 39.97 kB / 0.5239 GB, free: 7.809 MB / 446.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.0002681/0.4843, allocations: 181.6 kB / 0.5241 GB, free: 7.621 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.4845, allocations: 27.72 kB / 0.5241 GB, free: 7.594 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002284/0.4868, allocations: 0.7814 MB / 0.5249 GB, free: 6.801 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.4868, allocations: 8 kB / 0.5249 GB, free: 6.793 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.4868, allocations: 3.938 kB / 0.5249 GB, free: 6.789 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.567e-06/0.4868, allocations: 7.969 kB / 0.5249 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003346/0.4902, allocations: 1.554 MB / 0.5264 GB, free: 5.129 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/0.4902, allocations: 0 / 0.5264 GB, free: 5.129 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.4913, allocations: 143.8 kB / 0.5265 GB, free: 4.988 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001428/0.4915, allocations: 49.78 kB / 0.5266 GB, free: 4.934 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.72e-05/0.4916, allocations: 27.97 kB / 0.5266 GB, free: 4.906 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001658/0.4932, allocations: 2.533 MB / 0.5291 GB, free: 2.109 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.4932, allocations: 7.938 kB / 0.5291 GB, free: 2.102 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/0.4958, allocations: 1.072 MB / 0.5302 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.924e-05/0.4959, allocations: 96.83 kB / 0.5302 GB, free: 0.875 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.059e-05/0.496, allocations: 23.94 kB / 0.5303 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008213/0.4968, allocations: 36 kB / 0.5303 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.085e-05/0.4969, allocations: 47.89 kB / 0.5303 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.768e-05/0.497, allocations: 35.95 kB / 0.5304 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.799e-05/0.4971, allocations: 124.4 kB / 0.5305 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4971, allocations: 0 / 0.5305 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001441/0.4986, allocations: 411.8 kB / 0.5309 GB, free: 216 kB / 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.1554/0.6539, allocations: 0.8652 MB / 0.5317 GB, free: 160.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002152/0.6561, allocations: 0.6484 MB / 0.5324 GB, free: 160.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.6562, allocations: 4.625 kB / 0.5324 GB, free: 160.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.6573, allocations: 0.5277 MB / 0.5329 GB, free: 160.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008438/0.6581, allocations: 109.6 kB / 0.533 GB, free: 160.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/0.6603, allocations: 1.149 MB / 0.5341 GB, free: 160.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/0.6605, allocations: 0.7874 MB / 0.5349 GB, free: 159.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004847/0.661, allocations: 73.86 kB / 0.535 GB, free: 159.5 MB / 446.1 MB Notification: Performance of SimCode: time 4.3e-07/0.661, allocations: 1.375 kB / 0.535 GB, free: 159.5 MB / 446.1 MB Notification: Performance of Templates: time 0.02205/0.6831, allocations: 14.76 MB / 0.5494 GB, free: 154.4 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_trunk_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches