Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.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.IdealGasN2Mix,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2Mix",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2Mix,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2Mix",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.001725/0.001725, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001913/0.001913, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.383/1.383, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2133/0.2133, allocations: 44.18 MB / 336.8 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 63.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.3254, allocations: 60.83 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2Mix): time 0.1788/0.5043, allocations: 149.6 MB / 0.6645 GB, free: 6 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.002252/0.5066, allocations: 1.608 MB / 0.6661 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.7e-05/0.5067, allocations: 0 / 0.6661 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0004139/0.5071, allocations: 51.72 kB / 0.6661 GB, free: 4.336 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.5083, allocations: 398.1 kB / 0.6665 GB, free: 3.945 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005645/0.5089, allocations: 163.4 kB / 0.6666 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0003486/0.5092, allocations: 191.2 kB / 0.6668 GB, free: 3.598 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.788e-05/0.5093, allocations: 11.94 kB / 0.6668 GB, free: 3.586 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/0.5095, allocations: 71.77 kB / 0.6669 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.5097, allocations: 59.75 kB / 0.667 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.5097, allocations: 8 kB / 0.667 GB, free: 3.449 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.5109, allocations: 0.5924 MB / 0.6675 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.788e-05/0.511, allocations: 27.95 kB / 0.6676 GB, free: 2.828 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 7.651e-05/0.5111, allocations: 47.8 kB / 0.6676 GB, free: 2.781 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0008203/0.5119, allocations: 406.6 kB / 0.668 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.5119, allocations: 0 / 0.668 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.114e-06/0.512, allocations: 0 / 0.668 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.626e-06/0.512, allocations: 4 kB / 0.668 GB, free: 2.383 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006168/0.5126, allocations: 438.8 kB / 0.6684 GB, free: 1.906 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.5126, allocations: 8.031 kB / 0.6684 GB, free: 1.898 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.359e-05/0.5127, allocations: 42.73 kB / 0.6685 GB, free: 1.848 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002319/0.515, allocations: 192.6 kB / 0.6687 GB, free: 1.66 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002846/0.5153, allocations: 207.7 kB / 0.6689 GB, free: 1.418 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.5154, allocations: 12 kB / 0.6689 GB, free: 1.406 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/0.5154, allocations: 8 kB / 0.6689 GB, free: 1.398 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005096/0.5159, allocations: 207.9 kB / 0.6691 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.5159, allocations: 0 / 0.6691 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.516, allocations: 7.938 kB / 0.6691 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.516, allocations: 4 kB / 0.6691 GB, free: 1.18 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006074/0.5166, allocations: 231.8 kB / 0.6693 GB, free: 0.9531 MB / 0.5137 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.001786/0.5184, allocations: 0.6673 MB / 0.67 GB, free: 232 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004652/0.5189, allocations: 186.4 kB / 0.6701 GB, free: 36 kB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.5191, allocations: 96.81 kB / 0.6702 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001681/0.5193, allocations: 89.09 kB / 0.6703 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.5194, allocations: 38.56 kB / 0.6703 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.5194, allocations: 0 / 0.6703 GB, free: 15.79 MB / 0.5294 GB 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: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.005825/0.5252, allocations: 1.538 MB / 0.6719 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.5252, allocations: 55.41 kB / 0.6719 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.722e-05/0.5254, allocations: 113.8 kB / 0.672 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.5254, allocations: 33.7 kB / 0.672 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.481e-05/0.5255, allocations: 100.4 kB / 0.6721 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.559e-05/0.5255, allocations: 67.38 kB / 0.6722 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.884e-05/0.5256, allocations: 45.69 kB / 0.6722 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.5258, allocations: 318.8 kB / 0.6726 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002457/0.526, allocations: 95.81 kB / 0.6726 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.5263, allocations: 127.3 kB / 0.6728 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004828/0.5268, allocations: 226.1 kB / 0.673 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.5268, allocations: 0 / 0.673 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006506/0.5274, allocations: 286.2 kB / 0.6733 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.5275, allocations: 4 kB / 0.6733 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.5275, allocations: 4 kB / 0.6733 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001249/0.5276, allocations: 24.84 kB / 0.6733 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004499/0.5281, allocations: 55.89 kB / 0.6733 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003833/0.5285, allocations: 0.5407 MB / 0.6739 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002928/0.5288, allocations: 8 kB / 0.6739 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.5288, allocations: 7.984 kB / 0.6739 GB, free: 11.95 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.529, allocations: 125.8 kB / 0.674 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.645e-05/0.529, allocations: 7.953 kB / 0.674 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007713/0.5298, allocations: 325.5 kB / 0.6743 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.5298, allocations: 0 / 0.6743 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.5298, allocations: 0 / 0.6743 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.5298, allocations: 8 kB / 0.6743 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.531, allocations: 0.6717 MB / 0.675 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.531, allocations: 3.938 kB / 0.675 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004479/0.5315, allocations: 47.97 kB / 0.675 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.57e-05/0.5316, allocations: 24.94 kB / 0.6751 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/0.5316, allocations: 7.984 kB / 0.6751 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.5327, allocations: 1.371 MB / 0.6764 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5328, allocations: 0 / 0.6764 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008915/0.5337, allocations: 462.7 kB / 0.6768 GB, free: 8.648 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 5.47e-05/0.5337, allocations: 85.06 kB / 0.6769 GB, free: 8.547 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.447e-05/0.5338, allocations: 4 kB / 0.6769 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004024/0.5342, allocations: 7.984 kB / 0.6769 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.659e-05/0.5342, allocations: 19.98 kB / 0.677 GB, free: 8.516 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.292e-05/0.5343, allocations: 15.98 kB / 0.677 GB, free: 8.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 5.734e-05/0.5343, allocations: 95.56 kB / 0.6771 GB, free: 8.406 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5343, allocations: 0 / 0.6771 GB, free: 8.406 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0005056/0.5348, allocations: 135.7 kB / 0.6772 GB, free: 8.273 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 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 (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001838/0.5367, allocations: 1.125 MB / 0.6783 GB, free: 7.109 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0006411/0.5373, allocations: 247.2 kB / 0.6785 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5374, allocations: 0 / 0.6785 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004109/0.5378, allocations: 230.8 kB / 0.6787 GB, free: 6.637 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004535/0.5382, allocations: 43.89 kB / 0.6788 GB, free: 6.594 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003092/0.5413, allocations: 2.143 MB / 0.6809 GB, free: 4.328 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.5417, allocations: 0.7124 MB / 0.6816 GB, free: 3.59 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003077/0.542, allocations: 49.78 kB / 0.6816 GB, free: 3.543 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.5422, allocations: 39.36 kB / 0.6817 GB, free: 3.504 MB / 0.5294 GB Notification: Performance of SimCode: time 6.91e-07/0.5422, allocations: 0 / 0.6817 GB, free: 3.504 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03684/0.579, allocations: 7.971 MB / 0.6894 GB, free: 11.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.67, allocations: 1.719 kB / 0.6894 GB, free: 11.66 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix_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_IdealGasN2Mix.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2Mix/IdealGasN2Mix.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches