Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",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.001082/0.001082, allocations: 113.2 kB / 17.78 MB, free: 5.262 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.001062/0.001062, allocations: 185 kB / 18.72 MB, free: 4.336 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.359/1.359, allocations: 222.9 MB / 242.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.21/0.21, allocations: 44.18 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 63.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3978/0.3992, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.177/0.5762, allocations: 149.9 MB / 0.6648 GB, free: 5.676 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.003945/0.5802, allocations: 3.138 MB / 0.6679 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.5804, allocations: 0 / 0.6679 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0004106/0.5808, allocations: 63.64 kB / 0.6679 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002754/0.5836, allocations: 1.031 MB / 0.6689 GB, free: 1.43 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005342/0.5842, allocations: 195.3 kB / 0.6691 GB, free: 1.242 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00049/0.5847, allocations: 358.7 kB / 0.6695 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 6.197e-05/0.5847, allocations: 9.078 kB / 0.6695 GB, free: 0.8789 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003425/0.5851, allocations: 152.5 kB / 0.6696 GB, free: 0.7305 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.5853, allocations: 107.6 kB / 0.6697 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.684e-05/0.5854, allocations: 12 kB / 0.6697 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003084/0.5885, allocations: 1.491 MB / 0.6712 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.5886, allocations: 87.59 kB / 0.6713 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.5888, allocations: 99.64 kB / 0.6714 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001869/0.5906, allocations: 0.9897 MB / 0.6723 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.5907, allocations: 0 / 0.6723 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.896e-06/0.5907, allocations: 4 kB / 0.6723 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.886e-06/0.5907, allocations: 0 / 0.6723 GB, free: 13.94 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001146/0.5918, allocations: 0.5646 MB / 0.6729 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.5919, allocations: 12.03 kB / 0.6729 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.375e-05/0.592, allocations: 54.72 kB / 0.6729 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001588/0.5936, allocations: 204.6 kB / 0.6731 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.594, allocations: 251.7 kB / 0.6734 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.594, allocations: 16.38 kB / 0.6734 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.292e-05/0.5941, allocations: 19.98 kB / 0.6734 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006238/0.5947, allocations: 373.4 kB / 0.6738 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.5948, allocations: 0 / 0.6738 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.5948, allocations: 12 kB / 0.6738 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.5948, allocations: 4 kB / 0.6738 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005862/0.5954, allocations: 399.7 kB / 0.6742 GB, free: 11.95 MB / 0.5294 GB 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.001835/0.5973, allocations: 0.8125 MB / 0.675 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004101/0.5977, allocations: 225.2 kB / 0.6752 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.5979, allocations: 121.9 kB / 0.6753 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002043/0.5999, allocations: 0.9878 MB / 0.6763 GB, free: 9.566 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.782e-05/0.6, allocations: 38.56 kB / 0.6763 GB, free: 9.52 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=29): time 2.124e-06/0.6, allocations: 4 kB / 0.6763 GB, free: 9.516 MB / 0.5294 GB Notification: Performance of matching and sorting (n=29): time 0.001296/0.6013, allocations: 357.6 kB / 0.6766 GB, free: 9.16 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.545e-05/0.6014, allocations: 85.09 kB / 0.6767 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.6015, allocations: 109.8 kB / 0.6768 GB, free: 8.941 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/0.6015, allocations: 33.7 kB / 0.6769 GB, free: 8.902 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.844e-05/0.6016, allocations: 108.6 kB / 0.677 GB, free: 8.793 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.675e-05/0.6017, allocations: 111 kB / 0.6771 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.6018, allocations: 66.02 kB / 0.6771 GB, free: 8.613 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.602, allocations: 330.8 kB / 0.6774 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.6022, allocations: 96.61 kB / 0.6775 GB, free: 8.188 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002798/0.6025, allocations: 191.5 kB / 0.6777 GB, free: 7.965 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000462/0.6029, allocations: 301.2 kB / 0.678 GB, free: 7.641 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.6029, allocations: 0 / 0.678 GB, free: 7.641 MB / 0.5294 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006218/0.6036, allocations: 341.2 kB / 0.6783 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.6036, allocations: 8 kB / 0.6783 GB, free: 7.293 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.6036, allocations: 0 / 0.6783 GB, free: 7.293 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.6036, allocations: 11.94 kB / 0.6784 GB, free: 7.281 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.604, allocations: 67.91 kB / 0.6784 GB, free: 7.215 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.604, allocations: 4 kB / 0.6784 GB, free: 7.211 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/0.6043, allocations: 27.83 kB / 0.6784 GB, free: 7.184 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.775e-05/0.6043, allocations: 20 kB / 0.6785 GB, free: 7.164 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001563/0.6045, allocations: 153.9 kB / 0.6786 GB, free: 7.004 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.6046, allocations: 19.84 kB / 0.6786 GB, free: 6.984 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000635/0.6053, allocations: 314.2 kB / 0.6789 GB, free: 6.672 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.6053, allocations: 4 kB / 0.6789 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.6053, allocations: 0 / 0.6789 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.6053, allocations: 0 / 0.6789 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006476/0.606, allocations: 331.1 kB / 0.6793 GB, free: 6.293 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.606, allocations: 7.875 kB / 0.6793 GB, free: 6.285 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003424/0.6063, allocations: 59.91 kB / 0.6793 GB, free: 6.227 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.6063, allocations: 0 / 0.6793 GB, free: 6.227 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.6064, allocations: 12 kB / 0.6793 GB, free: 6.215 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.6064, allocations: 4 kB / 0.6793 GB, free: 6.211 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.6064, allocations: 3.984 kB / 0.6793 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007754/0.6072, allocations: 0.4985 MB / 0.6798 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.908e-05/0.6072, allocations: 96.94 kB / 0.6799 GB, free: 5.578 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.018e-05/0.6073, allocations: 8.062 kB / 0.6799 GB, free: 5.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003252/0.6076, allocations: 15.98 kB / 0.6799 GB, free: 5.555 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.6077, allocations: 15.98 kB / 0.68 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.455e-05/0.6077, allocations: 23.92 kB / 0.68 GB, free: 5.516 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 5.39e-05/0.6078, allocations: 91.56 kB / 0.6801 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6078, allocations: 0 / 0.6801 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009548/0.6087, allocations: 231.4 kB / 0.6803 GB, free: 5.199 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,medium.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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002191/0.6109, allocations: 1.379 MB / 0.6816 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005281/0.6115, allocations: 256.4 kB / 0.6819 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6115, allocations: 0 / 0.6819 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002037/0.6117, allocations: 131.7 kB / 0.682 GB, free: 3.422 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000666/0.6124, allocations: 88.53 kB / 0.6821 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00343/0.6158, allocations: 2.676 MB / 0.6847 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.6162, allocations: 0.7363 MB / 0.6854 GB, free: 15.74 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003095/0.6165, allocations: 66.03 kB / 0.6855 GB, free: 15.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.6167, allocations: 59.41 kB / 0.6855 GB, free: 15.62 MB / 0.545 GB Notification: Performance of SimCode: time 2.074e-06/0.6167, allocations: 0 / 0.6855 GB, free: 15.62 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03711/0.6538, allocations: 10.48 MB / 0.6958 GB, free: 5.258 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.934/8.588, allocations: 12.89 kB / 0.6958 GB, free: 5.254 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches