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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001939/0.001939, allocations: 187.5 kB / 23.7 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 51.92 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2485, allocations: 52.19 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3713/0.6198, allocations: 131.3 MB / 0.5409 GB, free: 1.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00405/0.6238, allocations: 3.609 MB / 0.5444 GB, free: 1.375 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.624, allocations: 0 / 0.5444 GB, free: 1.375 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004717/0.6245, allocations: 96.22 kB / 0.5445 GB, free: 1.375 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002612/0.6271, allocations: 1.22 MB / 0.5457 GB, free: 1.32 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008961/0.628, allocations: 401.2 kB / 0.546 GB, free: 1.301 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005012/0.6285, allocations: 460.8 kB / 0.5465 GB, free: 1.301 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.834e-05/0.6285, allocations: 18.06 kB / 0.5465 GB, free: 1.297 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003395/0.6289, allocations: 230.9 kB / 0.5467 GB, free: 1.297 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001996/0.6291, allocations: 145 kB / 0.5469 GB, free: 1.297 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.485e-05/0.6291, allocations: 20.47 kB / 0.5469 GB, free: 1.297 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002972/0.6321, allocations: 1.822 MB / 0.5487 GB, free: 1.273 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.6322, allocations: 142.5 kB / 0.5488 GB, free: 1.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001504/0.6324, allocations: 147.5 kB / 0.5489 GB, free: 1.27 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001875/0.6342, allocations: 1.463 MB / 0.5504 GB, free: 1.219 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.6342, allocations: 0.9688 kB / 0.5504 GB, free: 1.219 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6342, allocations: 0 / 0.5504 GB, free: 1.219 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.6342, allocations: 1 kB / 0.5504 GB, free: 1.219 MB / 446.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.001953/0.6362, allocations: 0.7032 MB / 0.5511 GB, free: 16.83 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.6362, allocations: 11.38 kB / 0.5511 GB, free: 16.83 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.083e-05/0.6363, allocations: 68.92 kB / 0.5511 GB, free: 16.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000631/0.637, allocations: 108.8 kB / 0.5512 GB, free: 16.78 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004156/0.6374, allocations: 223.3 kB / 0.5514 GB, free: 16.64 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.6374, allocations: 22.72 kB / 0.5515 GB, free: 16.64 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.358e-05/0.6374, allocations: 28.83 kB / 0.5515 GB, free: 16.63 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.6385, allocations: 0.8987 MB / 0.5524 GB, free: 16.21 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.6385, allocations: 3.625 kB / 0.5524 GB, free: 16.21 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.164e-05/0.6386, allocations: 14.31 kB / 0.5524 GB, free: 16.21 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.629e-05/0.6386, allocations: 18.55 kB / 0.5524 GB, free: 16.21 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.6397, allocations: 0.6473 MB / 0.553 GB, free: 16.2 MB / 462.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.002545/0.6422, allocations: 1.177 MB / 0.5542 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009221/0.6432, allocations: 355 kB / 0.5545 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000391/0.6436, allocations: 170.5 kB / 0.5547 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001905/0.6455, allocations: 499.1 kB / 0.5552 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.6455, allocations: 41.62 kB / 0.5552 GB, free: 15.69 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 1.863e-06/0.6455, allocations: 0 / 0.5552 GB, free: 15.69 MB / 462.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.01381/0.6593, allocations: 3.188 MB / 0.5583 GB, free: 14.96 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.6594, allocations: 84.14 kB / 0.5584 GB, free: 14.86 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.6595, allocations: 187 kB / 0.5586 GB, free: 14.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.282e-05/0.6596, allocations: 34.39 kB / 0.5586 GB, free: 14.72 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.409e-05/0.6597, allocations: 181.6 kB / 0.5588 GB, free: 14.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.6598, allocations: 184.2 kB / 0.559 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.66, allocations: 119.1 kB / 0.5591 GB, free: 14.43 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.6601, allocations: 335.6 kB / 0.5594 GB, free: 14.12 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006573/0.6608, allocations: 266 kB / 0.5596 GB, free: 14.12 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007182/0.6615, allocations: 422.8 kB / 0.56 GB, free: 13.94 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.663, allocations: 0.699 MB / 0.5607 GB, free: 13.76 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.663, allocations: 4.188 kB / 0.5607 GB, free: 13.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001738/0.6647, allocations: 0.773 MB / 0.5615 GB, free: 13.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.6647, allocations: 7.375 kB / 0.5615 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.6647, allocations: 7.688 kB / 0.5615 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002061/0.6649, allocations: 61.28 kB / 0.5616 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.666, allocations: 177.7 kB / 0.5617 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007481/0.6667, allocations: 1.081 MB / 0.5628 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007485/0.6675, allocations: 49.61 kB / 0.5628 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.628e-05/0.6676, allocations: 41.14 kB / 0.5629 GB, free: 12.63 MB / 462.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.0002504/0.6678, allocations: 175.5 kB / 0.563 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.6679, allocations: 26.64 kB / 0.5631 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001984/0.6699, allocations: 0.7902 MB / 0.5638 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.6699, allocations: 2.219 kB / 0.5638 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.6699, allocations: 2.969 kB / 0.5638 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.6699, allocations: 3.359 kB / 0.5638 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/0.673, allocations: 1.468 MB / 0.5653 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.673, allocations: 7.188 kB / 0.5653 GB, free: 11.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.674, allocations: 154.5 kB / 0.5654 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001184/0.6741, allocations: 38.83 kB / 0.5655 GB, free: 11.83 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.44e-05/0.6742, allocations: 27.36 kB / 0.5655 GB, free: 11.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00188/0.676, allocations: 2.516 MB / 0.568 GB, free: 9.395 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.676, allocations: 2.906 kB / 0.568 GB, free: 9.395 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002364/0.6784, allocations: 1.078 MB / 0.569 GB, free: 9.078 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.587e-05/0.6785, allocations: 25.91 kB / 0.569 GB, free: 9.062 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.666e-05/0.6785, allocations: 11.94 kB / 0.569 GB, free: 9.062 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007987/0.6793, allocations: 49.44 kB / 0.5691 GB, free: 9.055 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.819e-05/0.6794, allocations: 47.89 kB / 0.5691 GB, free: 9.047 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.335e-05/0.6795, allocations: 38.16 kB / 0.5692 GB, free: 9.047 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.96e-05/0.6796, allocations: 118.7 kB / 0.5693 GB, free: 8.973 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.6796, allocations: 0 / 0.5693 GB, free: 8.973 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001349/0.6809, allocations: 392.9 kB / 0.5697 GB, free: 8.922 MB / 462.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.004719/0.6856, allocations: 2.373 MB / 0.572 GB, free: 7.941 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.6873, allocations: 0.6354 MB / 0.5726 GB, free: 7.926 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.6873, allocations: 0 / 0.5726 GB, free: 7.926 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.6883, allocations: 0.5232 MB / 0.5731 GB, free: 7.703 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007246/0.6891, allocations: 97.86 kB / 0.5732 GB, free: 7.691 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007783/0.6968, allocations: 4.24 MB / 0.5773 GB, free: 5.508 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001674/0.697, allocations: 179.2 kB / 0.5775 GB, free: 5.422 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008409/0.6978, allocations: 187.8 kB / 0.5777 GB, free: 5.332 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003517/0.6982, allocations: 132.9 kB / 0.5778 GB, free: 5.32 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6982, allocations: 0 / 0.5778 GB, free: 5.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05666/0.7549, allocations: 20.76 MB / 0.5981 GB, free: 11.03 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.55, allocations: 7.812 kB / 0.5981 GB, free: 11.02 MB / 478.1 MB " [Timeout remaining time 645] (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.00019992 Modelica_4_0_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.2425814778544]