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: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001117/0.001117, allocations: 105.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001157/0.001157, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 60.25 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0933/0.09457, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3181/0.4127, allocations: 155.4 MB / 0.501 GB, free: 15.86 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004136/0.4169, allocations: 4.036 MB / 0.5049 GB, free: 11.82 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.4171, allocations: 3.938 kB / 0.5049 GB, free: 11.82 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004426/0.4176, allocations: 115.4 kB / 0.505 GB, free: 11.71 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002595/0.4202, allocations: 1.177 MB / 0.5062 GB, free: 10.53 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.4213, allocations: 394.5 kB / 0.5065 GB, free: 10.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005592/0.4219, allocations: 450.9 kB / 0.507 GB, free: 9.703 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.023e-05/0.4219, allocations: 9.562 kB / 0.507 GB, free: 9.695 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004406/0.4224, allocations: 247 kB / 0.5072 GB, free: 9.453 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.4226, allocations: 143.4 kB / 0.5074 GB, free: 9.312 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.901e-05/0.4227, allocations: 16 kB / 0.5074 GB, free: 9.297 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003952/0.4266, allocations: 2.131 MB / 0.5094 GB, free: 7.16 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001518/0.4268, allocations: 139.7 kB / 0.5096 GB, free: 7.023 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.427, allocations: 159.4 kB / 0.5097 GB, free: 6.867 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002091/0.4291, allocations: 1.575 MB / 0.5113 GB, free: 5.289 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.4291, allocations: 0 / 0.5113 GB, free: 5.289 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4291, allocations: 0 / 0.5113 GB, free: 5.289 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.4291, allocations: 4 kB / 0.5113 GB, free: 5.285 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.001968/0.4311, allocations: 0.7691 MB / 0.512 GB, free: 4.469 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.4312, allocations: 12.03 kB / 0.512 GB, free: 4.457 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.57e-05/0.4313, allocations: 66.72 kB / 0.5121 GB, free: 4.383 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002543/0.4338, allocations: 268.2 kB / 0.5124 GB, free: 4.121 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.4342, allocations: 283.3 kB / 0.5126 GB, free: 3.805 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.4342, allocations: 20.56 kB / 0.5126 GB, free: 3.785 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.946e-05/0.4343, allocations: 24 kB / 0.5127 GB, free: 3.762 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.4356, allocations: 0.6822 MB / 0.5133 GB, free: 3.066 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.4356, allocations: 0 / 0.5133 GB, free: 3.066 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.479e-05/0.4357, allocations: 12 kB / 0.5133 GB, free: 3.055 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.973e-05/0.4357, allocations: 20.42 kB / 0.5134 GB, free: 3.035 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001669/0.4374, allocations: 0.7551 MB / 0.5141 GB, free: 2.273 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.003863/0.4413, allocations: 1.829 MB / 0.5159 GB, free: 360 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.4426, allocations: 472.8 kB / 0.5163 GB, free: 15.87 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00064/0.4433, allocations: 233.8 kB / 0.5166 GB, free: 15.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002324/0.4456, allocations: 1.375 MB / 0.5179 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.4456, allocations: 46.69 kB / 0.518 GB, free: 13.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=35): time 1.643e-06/0.4456, allocations: 0 / 0.518 GB, free: 13.98 MB / 446.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.01436/0.46, allocations: 3.718 MB / 0.5216 GB, free: 10.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.4601, allocations: 81.11 kB / 0.5217 GB, free: 9.977 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.4602, allocations: 184.8 kB / 0.5218 GB, free: 9.789 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.953e-05/0.4603, allocations: 41.64 kB / 0.5219 GB, free: 9.742 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.9e-05/0.4604, allocations: 180.1 kB / 0.522 GB, free: 9.562 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.4605, allocations: 173.5 kB / 0.5222 GB, free: 9.391 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002093/0.4608, allocations: 118.2 kB / 0.5223 GB, free: 9.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4609, allocations: 338.8 kB / 0.5226 GB, free: 8.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007878/0.4617, allocations: 265.1 kB / 0.5229 GB, free: 8.672 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008686/0.4626, allocations: 421.5 kB / 0.5233 GB, free: 8.191 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.4642, allocations: 0.6951 MB / 0.524 GB, free: 7.434 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.4642, allocations: 8 kB / 0.524 GB, free: 7.426 MB / 446.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002004/0.4662, allocations: 0.7837 MB / 0.5248 GB, free: 6.633 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.4663, allocations: 8 kB / 0.5248 GB, free: 6.625 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.4663, allocations: 7.938 kB / 0.5248 GB, free: 6.617 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001991/0.4665, allocations: 53.69 kB / 0.5248 GB, free: 6.559 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.4677, allocations: 187.9 kB / 0.525 GB, free: 6.375 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006485/0.4683, allocations: 1.078 MB / 0.5261 GB, free: 5.246 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000792/0.4691, allocations: 39.97 kB / 0.5261 GB, free: 5.207 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.679e-05/0.4692, allocations: 51.91 kB / 0.5261 GB, free: 5.156 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.0002269/0.4695, allocations: 173.6 kB / 0.5263 GB, free: 4.977 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.4696, allocations: 23.72 kB / 0.5263 GB, free: 4.953 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002301/0.4719, allocations: 0.7941 MB / 0.5271 GB, free: 4.145 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.4719, allocations: 4 kB / 0.5271 GB, free: 4.141 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.4719, allocations: 0 / 0.5271 GB, free: 4.141 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.4719, allocations: 3.984 kB / 0.5271 GB, free: 4.137 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/0.4753, allocations: 1.557 MB / 0.5286 GB, free: 2.484 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.4753, allocations: 0 / 0.5286 GB, free: 2.484 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.4764, allocations: 147.7 kB / 0.5288 GB, free: 2.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001315/0.4766, allocations: 49.62 kB / 0.5288 GB, free: 2.285 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.033e-05/0.4766, allocations: 24.09 kB / 0.5288 GB, free: 2.262 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1382/0.6149, allocations: 2.722 MB / 0.5315 GB, free: 159.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.6149, allocations: 2.688 kB / 0.5315 GB, free: 159.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002748/0.6177, allocations: 1.076 MB / 0.5326 GB, free: 159.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.435e-05/0.6178, allocations: 104.2 kB / 0.5327 GB, free: 159.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.691e-05/0.6178, allocations: 13.06 kB / 0.5327 GB, free: 159.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008669/0.6187, allocations: 38.69 kB / 0.5327 GB, free: 159.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.107e-05/0.6188, allocations: 48.64 kB / 0.5328 GB, free: 159.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.391e-05/0.6189, allocations: 39.45 kB / 0.5328 GB, free: 159.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.64e-05/0.619, allocations: 121.9 kB / 0.5329 GB, free: 159.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.619, allocations: 0 / 0.5329 GB, free: 159.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001346/0.6203, allocations: 392.2 kB / 0.5333 GB, free: 159.3 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.005243/0.6256, allocations: 2.382 MB / 0.5356 GB, free: 158.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001899/0.6275, allocations: 0.6965 MB / 0.5363 GB, free: 158.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.6275, allocations: 1.281 kB / 0.5363 GB, free: 158.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.6285, allocations: 0.5286 MB / 0.5368 GB, free: 158.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007721/0.6293, allocations: 99.5 kB / 0.5369 GB, free: 158.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007368/0.6367, allocations: 4.206 MB / 0.541 GB, free: 155.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.6369, allocations: 0.7876 MB / 0.5418 GB, free: 154.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001094/0.638, allocations: 182.4 kB / 0.5419 GB, free: 154.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003581/0.6384, allocations: 128 kB / 0.5421 GB, free: 154.5 MB / 446.1 MB Notification: Performance of SimCode: time 3.3e-07/0.6384, allocations: 0 / 0.5421 GB, free: 154.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0452/0.6836, allocations: 19.52 MB / 0.5611 GB, free: 144.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.6, allocations: 11.98 kB / 0.5611 GB, free: 144.1 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Media_Examples_MixtureGases.fmu > Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches