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: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001691/0.001692, allocations: 107 kB / 16.92 MB, free: 5.777 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.001984/0.001984, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.107/2.107, allocations: 222.9 MB / 241.6 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 42.84 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1134, allocations: 49.45 MB / 350.1 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.4855/0.5989, allocations: 152.5 MB / 0.4909 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008088/0.6071, allocations: 4.045 MB / 0.4948 GB, free: 8.336 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002333/0.6074, allocations: 0 / 0.4948 GB, free: 8.336 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007691/0.6082, allocations: 107.4 kB / 0.4949 GB, free: 8.23 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004379/0.6126, allocations: 1.173 MB / 0.4961 GB, free: 7.055 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001599/0.6143, allocations: 387.2 kB / 0.4965 GB, free: 6.68 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009274/0.6152, allocations: 458.8 kB / 0.4969 GB, free: 6.227 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.514e-05/0.6153, allocations: 9.562 kB / 0.4969 GB, free: 6.219 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006149/0.6159, allocations: 235 kB / 0.4971 GB, free: 5.988 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003531/0.6163, allocations: 139.5 kB / 0.4973 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.257e-05/0.6164, allocations: 16 kB / 0.4973 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006628/0.623, allocations: 2.127 MB / 0.4994 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002694/0.6234, allocations: 139.6 kB / 0.4995 GB, free: 3.566 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003585/0.6237, allocations: 163.4 kB / 0.4996 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004221/0.628, allocations: 1.559 MB / 0.5012 GB, free: 1.844 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.065e-05/0.6281, allocations: 4 kB / 0.5012 GB, free: 1.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6281, allocations: 7.938 kB / 0.5012 GB, free: 1.832 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.6281, allocations: 0 / 0.5012 GB, free: 1.832 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.003377/0.6315, allocations: 0.7575 MB / 0.5019 GB, free: 1.027 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.6316, allocations: 12.02 kB / 0.5019 GB, free: 1.016 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.6317, allocations: 70.67 kB / 0.502 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00379/0.6355, allocations: 276.8 kB / 0.5023 GB, free: 0.668 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000674/0.6362, allocations: 291.2 kB / 0.5025 GB, free: 352 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.556e-05/0.6363, allocations: 20.56 kB / 0.5026 GB, free: 332 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.6364, allocations: 24 kB / 0.5026 GB, free: 308 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/0.6387, allocations: 0.6822 MB / 0.5032 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.6387, allocations: 0 / 0.5032 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/0.6389, allocations: 12 kB / 0.5033 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.955e-05/0.639, allocations: 16.44 kB / 0.5033 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002879/0.6418, allocations: 0.759 MB / 0.504 GB, free: 14.82 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.006654/0.6485, allocations: 1.822 MB / 0.5058 GB, free: 12.9 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002215/0.6508, allocations: 476.8 kB / 0.5062 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.6519, allocations: 233.6 kB / 0.5065 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003899/0.6558, allocations: 1.383 MB / 0.5078 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.137e-05/0.6559, allocations: 46.69 kB / 0.5079 GB, free: 10.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=35): time 4.719e-06/0.6559, allocations: 0 / 0.5079 GB, free: 10.52 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.02505/0.6809, allocations: 3.71 MB / 0.5115 GB, free: 6.613 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.378e-05/0.6811, allocations: 93.09 kB / 0.5116 GB, free: 6.504 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002803/0.6814, allocations: 181 kB / 0.5117 GB, free: 6.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.6815, allocations: 41.62 kB / 0.5118 GB, free: 6.273 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.6817, allocations: 180.1 kB / 0.512 GB, free: 6.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002894/0.682, allocations: 177.4 kB / 0.5121 GB, free: 5.914 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003757/0.6824, allocations: 118.2 kB / 0.5122 GB, free: 5.793 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.6826, allocations: 338.8 kB / 0.5126 GB, free: 5.453 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.684, allocations: 265.1 kB / 0.5128 GB, free: 5.195 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.6856, allocations: 421.5 kB / 0.5132 GB, free: 4.715 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003432/0.6891, allocations: 0.6961 MB / 0.5139 GB, free: 3.953 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.6891, allocations: 0 / 0.5139 GB, free: 3.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003905/0.693, allocations: 0.787 MB / 0.5147 GB, free: 3.156 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.384e-05/0.6931, allocations: 8 kB / 0.5147 GB, free: 3.148 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.6931, allocations: 4 kB / 0.5147 GB, free: 3.145 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003659/0.6935, allocations: 50.22 kB / 0.5147 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002338/0.6959, allocations: 187.7 kB / 0.5149 GB, free: 2.906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.6971, allocations: 1.074 MB / 0.516 GB, free: 1.781 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.6985, allocations: 39.97 kB / 0.516 GB, free: 1.742 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/0.6987, allocations: 47.91 kB / 0.516 GB, free: 1.695 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.0004905/0.6992, allocations: 173.7 kB / 0.5162 GB, free: 1.516 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002509/0.6995, allocations: 27.72 kB / 0.5162 GB, free: 1.488 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004506/0.704, allocations: 0.789 MB / 0.517 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.086e-05/0.7041, allocations: 11.98 kB / 0.517 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.7041, allocations: 0 / 0.517 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-05/0.7041, allocations: 3.984 kB / 0.517 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0061/0.7102, allocations: 1.563 MB / 0.5185 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.7103, allocations: 3.938 kB / 0.5185 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002201/0.7125, allocations: 147.7 kB / 0.5187 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000308/0.7128, allocations: 45.84 kB / 0.5187 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.713, allocations: 27.97 kB / 0.5188 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002951/0.7159, allocations: 2.718 MB / 0.5214 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.716, allocations: 4.031 kB / 0.5214 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004729/0.7207, allocations: 1.075 MB / 0.5225 GB, free: 10.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.7209, allocations: 112.9 kB / 0.5226 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/0.7211, allocations: 15.98 kB / 0.5226 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/0.7229, allocations: 43.89 kB / 0.5226 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.723, allocations: 43.89 kB / 0.5227 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/0.7232, allocations: 31.97 kB / 0.5227 GB, free: 10.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002014/0.7234, allocations: 127.2 kB / 0.5228 GB, free: 10.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7235, allocations: 0 / 0.5228 GB, free: 10.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002551/0.726, allocations: 387.8 kB / 0.5232 GB, free: 9.902 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.01115/0.7372, allocations: 2.377 MB / 0.5255 GB, free: 7.473 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004086/0.7414, allocations: 0.6908 MB / 0.5262 GB, free: 6.777 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/0.7414, allocations: 0 / 0.5262 GB, free: 6.777 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002424/0.7439, allocations: 0.5262 MB / 0.5267 GB, free: 6.227 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001756/0.7456, allocations: 97.25 kB / 0.5268 GB, free: 6.133 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01653/0.7622, allocations: 4.216 MB / 0.5309 GB, free: 1.652 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007354/0.763, allocations: 0.7813 MB / 0.5317 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002264/0.7653, allocations: 183.1 kB / 0.5319 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007063/0.7661, allocations: 131.4 kB / 0.532 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of SimCode: time 1.664e-06/0.7661, allocations: 0 / 0.532 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3472/1.113, allocations: 19.32 MB / 0.5508 GB, free: 160.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.54/20.66, allocations: 7.922 kB / 0.5508 GB, free: 160.8 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.csv","/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