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.001321/0.001321, allocations: 113.8 kB / 17.07 MB, free: 5.969 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.001192/0.001192, allocations: 194.8 kB / 18.01 MB, free: 5.051 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.284/1.284, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 48.06 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2226, allocations: 49.44 MB / 400.2 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3606/0.5832, allocations: 152.5 MB / 0.5398 GB, free: 1.676 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004049/0.5873, allocations: 4.042 MB / 0.5437 GB, free: 1.66 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.5874, allocations: 2.25 kB / 0.5437 GB, free: 1.66 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000384/0.5878, allocations: 109.3 kB / 0.5438 GB, free: 1.66 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002261/0.5901, allocations: 1.185 MB / 0.545 GB, free: 1.609 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008219/0.591, allocations: 393 kB / 0.5454 GB, free: 1.598 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004402/0.5914, allocations: 461.8 kB / 0.5458 GB, free: 1.598 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.036e-05/0.5915, allocations: 13.67 kB / 0.5458 GB, free: 1.594 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002718/0.5917, allocations: 228.9 kB / 0.546 GB, free: 1.594 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.5919, allocations: 145.5 kB / 0.5462 GB, free: 1.594 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.238e-05/0.592, allocations: 16.75 kB / 0.5462 GB, free: 1.594 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002624/0.5946, allocations: 2.063 MB / 0.5482 GB, free: 1.574 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.5947, allocations: 135.7 kB / 0.5483 GB, free: 1.574 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001582/0.5949, allocations: 165 kB / 0.5485 GB, free: 1.574 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001521/0.5964, allocations: 1.536 MB / 0.55 GB, free: 1.523 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.5964, allocations: 2.594 kB / 0.55 GB, free: 1.523 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5964, allocations: 0.9062 kB / 0.55 GB, free: 1.523 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.393e-06/0.5964, allocations: 0 / 0.55 GB, free: 1.523 MB / 462.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.00194/0.5984, allocations: 0.7802 MB / 0.5508 GB, free: 17.04 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.5984, allocations: 10.53 kB / 0.5508 GB, free: 17.04 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.65e-05/0.5985, allocations: 67.91 kB / 0.5508 GB, free: 17 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006782/0.5992, allocations: 114.3 kB / 0.5509 GB, free: 16.98 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003761/0.5996, allocations: 276.7 kB / 0.5512 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.5996, allocations: 23.56 kB / 0.5512 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.452e-05/0.5997, allocations: 28.36 kB / 0.5513 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009205/0.6006, allocations: 0.5988 MB / 0.5518 GB, free: 16.71 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.6006, allocations: 1.781 kB / 0.5518 GB, free: 16.71 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.438e-05/0.6007, allocations: 10.34 kB / 0.5518 GB, free: 16.71 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.551e-05/0.6007, allocations: 25.41 kB / 0.5519 GB, free: 16.71 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.6018, allocations: 0.6315 MB / 0.5525 GB, free: 16.71 MB / 478.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.002578/0.6044, allocations: 1.284 MB / 0.5537 GB, free: 16.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008715/0.6053, allocations: 359.5 kB / 0.5541 GB, free: 16.24 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004175/0.6057, allocations: 173.2 kB / 0.5542 GB, free: 16.23 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002354/0.6081, allocations: 1.392 MB / 0.5556 GB, free: 15.08 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.6081, allocations: 42.09 kB / 0.5556 GB, free: 15.04 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.325e-06/0.6081, allocations: 0 / 0.5556 GB, free: 15.04 MB / 478.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.01518/0.6233, allocations: 3.479 MB / 0.559 GB, free: 13.94 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.6234, allocations: 82.98 kB / 0.5591 GB, free: 13.84 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.6235, allocations: 187.6 kB / 0.5593 GB, free: 13.73 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.001e-05/0.6236, allocations: 29.64 kB / 0.5593 GB, free: 13.7 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.985e-05/0.6237, allocations: 184.2 kB / 0.5595 GB, free: 13.55 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.6238, allocations: 183.2 kB / 0.5597 GB, free: 13.44 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/0.624, allocations: 123.5 kB / 0.5598 GB, free: 13.42 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.6241, allocations: 340.1 kB / 0.5601 GB, free: 13.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00071/0.6249, allocations: 265.3 kB / 0.5604 GB, free: 13.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007666/0.6256, allocations: 423.3 kB / 0.5608 GB, free: 12.92 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.6271, allocations: 0.6952 MB / 0.5615 GB, free: 12.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.6272, allocations: 2.406 kB / 0.5615 GB, free: 12.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001795/0.629, allocations: 0.7862 MB / 0.5622 GB, free: 12.68 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.629, allocations: 9.438 kB / 0.5622 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.629, allocations: 7.531 kB / 0.5622 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001799/0.6292, allocations: 51.3 kB / 0.5623 GB, free: 12.66 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.6303, allocations: 182.9 kB / 0.5625 GB, free: 12.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006116/0.6309, allocations: 1.083 MB / 0.5635 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007793/0.6317, allocations: 43.27 kB / 0.5636 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-05/0.6318, allocations: 40.22 kB / 0.5636 GB, free: 11.62 MB / 478.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.0002223/0.632, allocations: 178.3 kB / 0.5638 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.6322, allocations: 26.42 kB / 0.5638 GB, free: 11.49 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002063/0.6342, allocations: 0.7905 MB / 0.5646 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.6342, allocations: 5.25 kB / 0.5646 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.6343, allocations: 0 / 0.5646 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.6343, allocations: 3.969 kB / 0.5646 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003053/0.6373, allocations: 1.562 MB / 0.5661 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/0.6373, allocations: 3.312 kB / 0.5661 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.6384, allocations: 143.3 kB / 0.5662 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000117/0.6385, allocations: 49.12 kB / 0.5663 GB, free: 10.79 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.719e-05/0.6386, allocations: 25.69 kB / 0.5663 GB, free: 10.79 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001712/0.6403, allocations: 2.734 MB / 0.569 GB, free: 8.098 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.6403, allocations: 3.812 kB / 0.569 GB, free: 8.098 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002483/0.6428, allocations: 1.072 MB / 0.57 GB, free: 7.789 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.189e-05/0.6429, allocations: 101.3 kB / 0.5701 GB, free: 7.684 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.492e-05/0.643, allocations: 15.75 kB / 0.5702 GB, free: 7.684 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008317/0.6438, allocations: 41.66 kB / 0.5702 GB, free: 7.684 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.495e-05/0.6439, allocations: 38.08 kB / 0.5702 GB, free: 7.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.567e-05/0.644, allocations: 34.97 kB / 0.5703 GB, free: 7.68 MB / 478.1 MB Notification: Performance of sorting global known variables: time 8.544e-05/0.6441, allocations: 127.6 kB / 0.5704 GB, free: 7.605 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6441, allocations: 1.188 kB / 0.5704 GB, free: 7.605 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001336/0.6454, allocations: 389.7 kB / 0.5708 GB, free: 7.555 MB / 478.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.004854/0.6503, allocations: 2.382 MB / 0.5731 GB, free: 6.652 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.6521, allocations: 0.6535 MB / 0.5737 GB, free: 6.645 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.6521, allocations: 2.875 kB / 0.5737 GB, free: 6.645 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.6531, allocations: 0.5448 MB / 0.5743 GB, free: 6.418 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007492/0.6539, allocations: 99.38 kB / 0.5744 GB, free: 6.402 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007861/0.6618, allocations: 4.249 MB / 0.5785 GB, free: 4.191 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/0.6622, allocations: 0.784 MB / 0.5793 GB, free: 3.492 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008711/0.6631, allocations: 186.5 kB / 0.5794 GB, free: 3.402 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003629/0.6634, allocations: 128 kB / 0.5796 GB, free: 3.391 MB / 478.1 MB Notification: Performance of SimCode: time 4.71e-07/0.6634, allocations: 0 / 0.5796 GB, free: 3.391 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0426/0.706, allocations: 19.64 MB / 0.5987 GB, free: 9.109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.49, allocations: 15.98 kB / 0.5988 GB, free: 9.094 MB / 494.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