Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001569/0.001569, allocations: 100.6 kB / 17.93 MB, free: 5.41 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.001772/0.001772, allocations: 193.8 kB / 18.86 MB, free: 4.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.1 MB / 224.7 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001176, allocations: 51.94 kB / 280.8 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08453/0.08572, allocations: 46.64 MB / 327.4 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.309/0.3948, allocations: 152.1 MB / 479.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003334/0.3982, allocations: 3.038 MB / 482.6 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.3983, allocations: 4 kB / 482.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004695/0.3988, allocations: 99.5 kB / 482.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00241/0.4013, allocations: 1.107 MB / 483.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009392/0.4022, allocations: 359.9 kB / 484.2 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005627/0.4028, allocations: 458.7 kB / 484.6 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.419e-05/0.4029, allocations: 13.56 kB / 484.6 MB, free: 10.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003734/0.4032, allocations: 231.1 kB / 484.8 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002253/0.4035, allocations: 163.5 kB / 485 MB, free: 9.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.4035, allocations: 16 kB / 485 MB, free: 9.938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003733/0.4073, allocations: 2.345 MB / 487.4 MB, free: 7.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.4074, allocations: 139.6 kB / 487.5 MB, free: 7.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001872/0.4076, allocations: 171.3 kB / 487.7 MB, free: 7.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001607/0.4092, allocations: 1.142 MB / 488.8 MB, free: 6.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.4092, allocations: 0 / 488.8 MB, free: 6.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4093, allocations: 0 / 488.8 MB, free: 6.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.4093, allocations: 0 / 488.8 MB, free: 6.137 MB / 382.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.002161/0.4114, allocations: 0.7729 MB / 489.6 MB, free: 5.316 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.4115, allocations: 12.03 kB / 489.6 MB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002381/0.4139, allocations: 268.8 kB / 489.9 MB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.4143, allocations: 279.9 kB / 490.1 MB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.4143, allocations: 25.38 kB / 490.2 MB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.522e-05/0.4144, allocations: 24 kB / 490.2 MB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.4157, allocations: 0.6784 MB / 490.9 MB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.4158, allocations: 0 / 490.9 MB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.119e-05/0.4158, allocations: 12 kB / 490.9 MB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.515e-05/0.4159, allocations: 20.42 kB / 490.9 MB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.4175, allocations: 0.7628 MB / 491.6 MB, free: 3.195 MB / 382.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.003741/0.4212, allocations: 1.822 MB / 493.5 MB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.4225, allocations: 483.8 kB / 493.9 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005817/0.4231, allocations: 233.7 kB / 494.2 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002443/0.4255, allocations: 1.383 MB / 495.6 MB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.4255, allocations: 34.56 kB / 495.6 MB, free: 14.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.054e-06/0.4256, allocations: 3.938 kB / 495.6 MB, free: 14.9 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.01395/0.4395, allocations: 3.717 MB / 499.3 MB, free: 10.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.4396, allocations: 81.11 kB / 499.4 MB, free: 10.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.4398, allocations: 178.5 kB / 499.6 MB, free: 10.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.507e-05/0.4398, allocations: 37.7 kB / 499.6 MB, free: 10.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.911e-05/0.4399, allocations: 172.1 kB / 499.8 MB, free: 10.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.4401, allocations: 177.5 kB / 499.9 MB, free: 10.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.4403, allocations: 110.3 kB / 0.4883 GB, free: 10.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4404, allocations: 346.8 kB / 0.4887 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006892/0.4411, allocations: 265.1 kB / 0.4889 GB, free: 9.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000811/0.442, allocations: 425.5 kB / 0.4893 GB, free: 9.113 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.4435, allocations: 0.707 MB / 0.49 GB, free: 8.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4435, allocations: 4 kB / 0.49 GB, free: 8.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001896/0.4454, allocations: 0.7838 MB / 0.4908 GB, free: 7.539 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.4454, allocations: 8 kB / 0.4908 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.4454, allocations: 8.562 kB / 0.4908 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000217/0.4457, allocations: 53.69 kB / 0.4908 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.4468, allocations: 179.7 kB / 0.491 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006325/0.4474, allocations: 1.081 MB / 0.4921 GB, free: 6.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007382/0.4482, allocations: 44.14 kB / 0.4921 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.712e-05/0.4483, allocations: 43.98 kB / 0.4922 GB, free: 6.07 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 (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.0002631/0.4485, allocations: 177.6 kB / 0.4923 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.4487, allocations: 31.66 kB / 0.4924 GB, free: 5.855 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002181/0.4509, allocations: 0.7779 MB / 0.4931 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.4509, allocations: 7.938 kB / 0.4931 GB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.4509, allocations: 8 kB / 0.4931 GB, free: 5.051 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.4509, allocations: 3.984 kB / 0.4931 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003139/0.4541, allocations: 1.542 MB / 0.4946 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4541, allocations: 4 kB / 0.4946 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.4552, allocations: 148 kB / 0.4948 GB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001481/0.4553, allocations: 45.69 kB / 0.4948 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.687e-05/0.4554, allocations: 23.91 kB / 0.4949 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001722/0.4571, allocations: 2.738 MB / 0.4975 GB, free: 180 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.4572, allocations: 4 kB / 0.4975 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/0.4597, allocations: 1.075 MB / 0.4986 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.4598, allocations: 96.83 kB / 0.4987 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.4599, allocations: 16 kB / 0.4987 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008136/0.4608, allocations: 43.89 kB / 0.4987 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.257e-05/0.4608, allocations: 39.89 kB / 0.4988 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.058e-05/0.4609, allocations: 35.97 kB / 0.4988 GB, free: 14.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.524e-05/0.461, allocations: 128.4 kB / 0.4989 GB, free: 14.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.461, allocations: 0 / 0.4989 GB, free: 14.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001347/0.4624, allocations: 391.8 kB / 0.4993 GB, free: 14.3 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 (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.002552/0.4649, allocations: 0.8693 MB / 0.5001 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001947/0.4669, allocations: 0.6831 MB / 0.5008 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4669, allocations: 0 / 0.5008 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.468, allocations: 0.5292 MB / 0.5013 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007675/0.4688, allocations: 104.9 kB / 0.5014 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.4708, allocations: 1.149 MB / 0.5026 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.4712, allocations: 0.7852 MB / 0.5033 GB, free: 10.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004293/0.4716, allocations: 83.36 kB / 0.5034 GB, free: 9.977 MB / 414.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4716, allocations: 0 / 0.5034 GB, free: 9.977 MB / 414.1 MB Notification: Performance of Templates: time 0.01968/0.4913, allocations: 14.61 MB / 0.5177 GB, free: 11.34 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_3.2.3_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches