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.001073/0.001073, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.001111/0.001111, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.28/1.28, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009513/0.0009513, allocations: 46.58 kB / 299.9 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07714/0.07811, allocations: 49.45 MB / 349.4 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2799/0.3581, allocations: 150.3 MB / 499.7 MB, free: 14.92 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004391/0.3625, allocations: 4.13 MB / 0.492 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.3627, allocations: 3.938 kB / 0.492 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004085/0.3631, allocations: 95.58 kB / 0.4921 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002419/0.3655, allocations: 1.103 MB / 0.4932 GB, free: 9.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009129/0.3665, allocations: 346.8 kB / 0.4935 GB, free: 9.254 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006807/0.3672, allocations: 0.6158 MB / 0.4941 GB, free: 8.633 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.576e-05/0.3672, allocations: 9.562 kB / 0.4941 GB, free: 8.625 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000366/0.3676, allocations: 207.2 kB / 0.4943 GB, free: 8.422 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.3679, allocations: 163.4 kB / 0.4945 GB, free: 8.262 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.872e-05/0.3679, allocations: 12 kB / 0.4945 GB, free: 8.25 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00416/0.3721, allocations: 2.486 MB / 0.4969 GB, free: 5.758 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000163/0.3723, allocations: 123.7 kB / 0.497 GB, free: 5.637 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002266/0.3725, allocations: 163.4 kB / 0.4972 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002871/0.3754, allocations: 1.789 MB / 0.4989 GB, free: 3.684 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3754, allocations: 0 / 0.4989 GB, free: 3.684 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.3754, allocations: 0 / 0.4989 GB, free: 3.684 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.3754, allocations: 0 / 0.4989 GB, free: 3.684 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.002487/0.3779, allocations: 0.769 MB / 0.4997 GB, free: 2.867 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.378, allocations: 8.031 kB / 0.4997 GB, free: 2.859 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002557/0.3805, allocations: 272.3 kB / 0.5 GB, free: 2.594 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000405/0.381, allocations: 287.4 kB / 0.5002 GB, free: 2.273 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.381, allocations: 20.56 kB / 0.5002 GB, free: 2.254 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.722e-05/0.3811, allocations: 24 kB / 0.5003 GB, free: 2.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.3825, allocations: 0.6706 MB / 0.5009 GB, free: 1.547 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.3825, allocations: 0 / 0.5009 GB, free: 1.547 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.48e-05/0.3826, allocations: 12 kB / 0.5009 GB, free: 1.535 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-05/0.3826, allocations: 20.42 kB / 0.501 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.3844, allocations: 0.7551 MB / 0.5017 GB, free: 0.7617 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.00408/0.3885, allocations: 1.83 MB / 0.5035 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.3898, allocations: 480.8 kB / 0.5039 GB, free: 14.35 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006535/0.3905, allocations: 233.6 kB / 0.5042 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00244/0.393, allocations: 1.384 MB / 0.5055 GB, free: 12.51 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.393, allocations: 42.69 kB / 0.5056 GB, free: 12.46 MB / 430.1 MB Notification: Performance of pre-optimization done (n=35): time 1.923e-06/0.393, allocations: 0 / 0.5056 GB, free: 12.46 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.01465/0.4077, allocations: 3.714 MB / 0.5092 GB, free: 8.543 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.4077, allocations: 81.11 kB / 0.5093 GB, free: 8.445 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.4079, allocations: 179.2 kB / 0.5094 GB, free: 8.262 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.158e-05/0.408, allocations: 33.7 kB / 0.5095 GB, free: 8.223 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.29e-05/0.4081, allocations: 180.1 kB / 0.5096 GB, free: 8.039 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.4082, allocations: 173.5 kB / 0.5098 GB, free: 7.867 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002166/0.4084, allocations: 114.3 kB / 0.5099 GB, free: 7.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4086, allocations: 346.8 kB / 0.5102 GB, free: 7.402 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007871/0.4094, allocations: 265.1 kB / 0.5105 GB, free: 7.145 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008447/0.4102, allocations: 425.5 kB / 0.5109 GB, free: 6.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.4119, allocations: 0.7027 MB / 0.5116 GB, free: 5.895 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.4119, allocations: 4 kB / 0.5116 GB, free: 5.891 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002011/0.4139, allocations: 0.7805 MB / 0.5124 GB, free: 5.098 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.4139, allocations: 11.94 kB / 0.5124 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.414, allocations: 4 kB / 0.5124 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002048/0.4142, allocations: 58.31 kB / 0.5124 GB, free: 5.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.4154, allocations: 175.7 kB / 0.5126 GB, free: 4.848 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006291/0.416, allocations: 1.081 MB / 0.5136 GB, free: 3.715 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000805/0.4168, allocations: 47.88 kB / 0.5137 GB, free: 3.668 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.093e-05/0.4169, allocations: 43.95 kB / 0.5137 GB, free: 3.625 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.0002382/0.4172, allocations: 177.8 kB / 0.5139 GB, free: 3.441 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.4173, allocations: 31.66 kB / 0.5139 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002298/0.4196, allocations: 0.7772 MB / 0.5147 GB, free: 2.621 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.4196, allocations: 4 kB / 0.5147 GB, free: 2.617 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.4197, allocations: 4 kB / 0.5147 GB, free: 2.613 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.4197, allocations: 4 kB / 0.5147 GB, free: 2.609 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00333/0.423, allocations: 1.558 MB / 0.5162 GB, free: 0.957 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.423, allocations: 4 kB / 0.5162 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.4242, allocations: 140 kB / 0.5164 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001366/0.4243, allocations: 53.61 kB / 0.5164 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.719e-05/0.4244, allocations: 27.97 kB / 0.5164 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001681/0.4261, allocations: 2.529 MB / 0.5189 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4261, allocations: 0 / 0.5189 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.4288, allocations: 1.083 MB / 0.52 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.806e-05/0.4288, allocations: 100.8 kB / 0.5201 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.057e-05/0.4289, allocations: 11.94 kB / 0.5201 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008735/0.4298, allocations: 44 kB / 0.5201 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.656e-05/0.4299, allocations: 35.95 kB / 0.5202 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.949e-05/0.43, allocations: 35.97 kB / 0.5202 GB, free: 12.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.286e-05/0.4301, allocations: 124.4 kB / 0.5203 GB, free: 12.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4301, allocations: 0 / 0.5203 GB, free: 12.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001439/0.4315, allocations: 407.8 kB / 0.5207 GB, free: 12.05 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.002965/0.4345, allocations: 0.8845 MB / 0.5216 GB, free: 11.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001972/0.4365, allocations: 0.6489 MB / 0.5222 GB, free: 10.51 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.4365, allocations: 7.938 kB / 0.5222 GB, free: 10.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.4376, allocations: 0.5436 MB / 0.5227 GB, free: 9.934 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008025/0.4384, allocations: 95.23 kB / 0.5228 GB, free: 9.844 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.4407, allocations: 1.114 MB / 0.5239 GB, free: 8.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.441, allocations: 0.7852 MB / 0.5247 GB, free: 7.867 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001184/0.4422, allocations: 183.1 kB / 0.5248 GB, free: 7.688 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004054/0.4426, allocations: 67.38 kB / 0.5249 GB, free: 7.621 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4426, allocations: 0 / 0.5249 GB, free: 7.621 MB / 446.1 MB Notification: Performance of Templates: time 0.1539/0.5966, allocations: 15.58 MB / 0.5401 GB, free: 164.4 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 -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","/var/lib/jenkins/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