Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_3_2_3_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.001156/0.001156, allocations: 106.4 kB / 16.27 MB, free: 6 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.001375/0.001375, allocations: 185.2 kB / 17.19 MB, free: 5.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2083/0.2083, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 70.03 kB / 382.8 MB, free: 56.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1056, allocations: 57.79 MB / 440.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.4693/0.5749, allocations: 151.2 MB / 0.5779 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003255/0.5782, allocations: 3.032 MB / 0.5809 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.697e-05/0.5783, allocations: 0 / 0.5809 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003651/0.5787, allocations: 62.98 kB / 0.5809 GB, free: 12.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002724/0.5815, allocations: 1.007 MB / 0.5819 GB, free: 11.98 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006145/0.5822, allocations: 197.8 kB / 0.5821 GB, free: 11.96 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004745/0.5826, allocations: 363 kB / 0.5825 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.712e-05/0.5827, allocations: 12.92 kB / 0.5825 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002345/0.5829, allocations: 142.8 kB / 0.5826 GB, free: 11.86 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.5831, allocations: 111.7 kB / 0.5827 GB, free: 11.84 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.5832, allocations: 17.03 kB / 0.5827 GB, free: 11.83 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002643/0.5858, allocations: 1.495 MB / 0.5842 GB, free: 11.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.586, allocations: 72.67 kB / 0.5843 GB, free: 11.58 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.5861, allocations: 111.7 kB / 0.5844 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001614/0.5877, allocations: 0.9763 MB / 0.5853 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.5877, allocations: 0 / 0.5853 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5877, allocations: 2.906 kB / 0.5853 GB, free: 11.2 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.5878, allocations: 0 / 0.5853 GB, free: 11.2 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0009509/0.5887, allocations: 0.5422 MB / 0.5859 GB, free: 10.73 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.5888, allocations: 13.55 kB / 0.5859 GB, free: 10.73 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.105e-05/0.5888, allocations: 57.3 kB / 0.5859 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003862/0.5927, allocations: 384.1 kB / 0.5863 GB, free: 10.53 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003603/0.5931, allocations: 253 kB / 0.5865 GB, free: 10.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.5931, allocations: 18.94 kB / 0.5865 GB, free: 10.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.655e-05/0.5932, allocations: 27.56 kB / 0.5866 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000902/0.5941, allocations: 491.5 kB / 0.587 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.5941, allocations: 0 / 0.587 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.05e-05/0.5942, allocations: 9.156 kB / 0.587 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.5942, allocations: 4.406 kB / 0.5871 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009642/0.5952, allocations: 0.5263 MB / 0.5876 GB, free: 10.02 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.002188/0.5974, allocations: 0.9868 MB / 0.5885 GB, free: 9.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005473/0.5979, allocations: 297.1 kB / 0.5888 GB, free: 9.324 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002505/0.5982, allocations: 155.3 kB / 0.589 GB, free: 9.285 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001723/0.5999, allocations: 0.8924 MB / 0.5898 GB, free: 8.453 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.6, allocations: 38.72 kB / 0.5899 GB, free: 8.414 MB / 430.1 MB Notification: Performance of pre-optimization done (n=29): time 1.804e-06/0.6, allocations: 0 / 0.5899 GB, free: 8.414 MB / 430.1 MB Notification: Performance of matching and sorting (n=29): time 0.0008991/0.6009, allocations: 405.2 kB / 0.5903 GB, free: 8.324 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.6009, allocations: 79.64 kB / 0.5903 GB, free: 8.23 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.643e-05/0.601, allocations: 116.6 kB / 0.5904 GB, free: 8.125 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.718e-05/0.6011, allocations: 35.77 kB / 0.5905 GB, free: 8.094 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.842e-05/0.6011, allocations: 106.4 kB / 0.5906 GB, free: 7.988 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.373e-05/0.6012, allocations: 104.4 kB / 0.5907 GB, free: 7.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.6013, allocations: 63.73 kB / 0.5907 GB, free: 7.887 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.6014, allocations: 324.3 kB / 0.591 GB, free: 7.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/0.6017, allocations: 118.1 kB / 0.5912 GB, free: 7.551 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002624/0.6019, allocations: 207.8 kB / 0.5914 GB, free: 7.426 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000493/0.6024, allocations: 344.7 kB / 0.5917 GB, free: 7.297 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.6025, allocations: 0 / 0.5917 GB, free: 7.297 MB / 430.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006542/0.6031, allocations: 384.5 kB / 0.5921 GB, free: 7.195 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.6031, allocations: 8.75 kB / 0.5921 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.6032, allocations: 2.688 kB / 0.5921 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.6032, allocations: 9.062 kB / 0.5921 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/0.6036, allocations: 70.89 kB / 0.5921 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.6036, allocations: 5.375 kB / 0.5921 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.6039, allocations: 28.73 kB / 0.5922 GB, free: 7.164 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/0.604, allocations: 16.62 kB / 0.5922 GB, free: 7.164 MB / 430.1 MB 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.0001485/0.6041, allocations: 150 kB / 0.5923 GB, free: 7.031 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.6042, allocations: 21.94 kB / 0.5924 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007636/0.605, allocations: 371 kB / 0.5927 GB, free: 6.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.605, allocations: 10.19 kB / 0.5927 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.605, allocations: 0 / 0.5927 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.6051, allocations: 0 / 0.5927 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005498/0.6056, allocations: 374.2 kB / 0.5931 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.6056, allocations: 0 / 0.5931 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.606, allocations: 54.16 kB / 0.5931 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.6061, allocations: 10.77 kB / 0.5931 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/0.6061, allocations: 8.219 kB / 0.5931 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.6061, allocations: 2.938 kB / 0.5931 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.6061, allocations: 3.938 kB / 0.5932 GB, free: 6.602 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008314/0.607, allocations: 0.5523 MB / 0.5937 GB, free: 6.332 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.112e-05/0.607, allocations: 96.36 kB / 0.5938 GB, free: 6.227 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.454e-05/0.6071, allocations: 9.828 kB / 0.5938 GB, free: 6.223 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003973/0.6075, allocations: 11.98 kB / 0.5938 GB, free: 6.219 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.404e-05/0.6075, allocations: 17.55 kB / 0.5938 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.6076, allocations: 17.98 kB / 0.5938 GB, free: 6.211 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.906e-05/0.6076, allocations: 92.34 kB / 0.5939 GB, free: 6.133 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6076, allocations: 4 kB / 0.5939 GB, free: 6.129 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008602/0.6085, allocations: 227 kB / 0.5941 GB, free: 6.09 MB / 430.1 MB 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.00208/0.6106, allocations: 1.418 MB / 0.5955 GB, free: 5.168 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005688/0.6112, allocations: 307.6 kB / 0.5958 GB, free: 5.113 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.6112, allocations: 0 / 0.5958 GB, free: 5.113 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.6114, allocations: 146.1 kB / 0.596 GB, free: 5.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006156/0.612, allocations: 81.97 kB / 0.596 GB, free: 5.059 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00408/0.6161, allocations: 2.742 MB / 0.5987 GB, free: 3.066 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004412/0.6166, allocations: 0.7286 MB / 0.5994 GB, free: 2.352 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005277/0.6171, allocations: 98.23 kB / 0.5995 GB, free: 2.285 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.6173, allocations: 59.73 kB / 0.5996 GB, free: 2.273 MB / 430.1 MB Notification: Performance of SimCode: time 8.21e-07/0.6173, allocations: 4 kB / 0.5996 GB, free: 2.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02906/0.6464, allocations: 10.59 MB / 0.6099 GB, free: 11.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.05/8.696, allocations: 4.062 kB / 0.6099 GB, free: 11.49 MB / 446.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches