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.0007287/0.0007289, allocations: 93.42 kB / 17.35 MB, free: 6.344 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.0008254/0.0008254, allocations: 171.3 kB / 18.25 MB, free: 5.504 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.354/1.354, allocations: 223.3 MB / 242.3 MB, free: 192 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2052/0.2052, allocations: 44.25 MB / 337.7 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003419, allocations: 8.531 kB / 410.4 MB, free: 27.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1366, allocations: 61.93 MB / 472.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.4358/0.5724, allocations: 145.8 MB / 0.6037 GB, free: 0.707 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003636/0.5761, allocations: 3.18 MB / 0.6068 GB, free: 13.54 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.481e-05/0.5762, allocations: 4 kB / 0.6068 GB, free: 13.54 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003386/0.5765, allocations: 55.72 kB / 0.6068 GB, free: 13.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002075/0.5786, allocations: 0.9476 MB / 0.6077 GB, free: 12.53 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004348/0.579, allocations: 181.2 kB / 0.6079 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004835/0.5795, allocations: 486.5 kB / 0.6084 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.625e-05/0.5796, allocations: 13.08 kB / 0.6084 GB, free: 11.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002264/0.5798, allocations: 131.5 kB / 0.6085 GB, free: 11.73 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001951/0.58, allocations: 123.6 kB / 0.6086 GB, free: 11.61 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.5801, allocations: 8 kB / 0.6086 GB, free: 11.61 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00275/0.5828, allocations: 1.758 MB / 0.6104 GB, free: 9.844 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.003e-05/0.5829, allocations: 71.78 kB / 0.6104 GB, free: 9.773 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.5831, allocations: 125.3 kB / 0.6105 GB, free: 9.645 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001355/0.5844, allocations: 1.122 MB / 0.6116 GB, free: 8.52 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.5845, allocations: 4 kB / 0.6116 GB, free: 8.516 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5845, allocations: 0 / 0.6116 GB, free: 8.516 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.5845, allocations: 0 / 0.6116 GB, free: 8.516 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0007288/0.5852, allocations: 0.4945 MB / 0.6121 GB, free: 7.977 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.5853, allocations: 12.03 kB / 0.6121 GB, free: 7.965 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.946e-05/0.5853, allocations: 50.73 kB / 0.6122 GB, free: 7.906 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003688/0.589, allocations: 392.2 kB / 0.6126 GB, free: 7.523 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.5893, allocations: 252.1 kB / 0.6128 GB, free: 7.238 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.5894, allocations: 16.31 kB / 0.6128 GB, free: 7.223 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.88e-05/0.5894, allocations: 27.91 kB / 0.6128 GB, free: 7.195 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009094/0.5904, allocations: 486.2 kB / 0.6133 GB, free: 6.711 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.5904, allocations: 3.938 kB / 0.6133 GB, free: 6.707 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.181e-05/0.5904, allocations: 12 kB / 0.6133 GB, free: 6.695 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.5905, allocations: 4 kB / 0.6133 GB, free: 6.691 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009842/0.5914, allocations: 0.5036 MB / 0.6138 GB, free: 6.188 MB / 446.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.002114/0.5936, allocations: 0.9896 MB / 0.6148 GB, free: 5.145 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000554/0.5941, allocations: 289 kB / 0.6151 GB, free: 4.844 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002615/0.5944, allocations: 151.6 kB / 0.6152 GB, free: 4.691 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001682/0.5961, allocations: 0.984 MB / 0.6162 GB, free: 3.543 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.5962, allocations: 38.55 kB / 0.6162 GB, free: 3.496 MB / 446.1 MB Notification: Performance of pre-optimization done (n=29): time 3.407e-06/0.5962, allocations: 3.938 kB / 0.6162 GB, free: 3.492 MB / 446.1 MB Notification: Performance of matching and sorting (n=29): time 0.0008915/0.5971, allocations: 404.7 kB / 0.6166 GB, free: 3.094 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.5971, allocations: 85.11 kB / 0.6167 GB, free: 2.992 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.321e-05/0.5972, allocations: 117.8 kB / 0.6168 GB, free: 2.867 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.884e-05/0.5972, allocations: 29.7 kB / 0.6168 GB, free: 2.832 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.574e-05/0.5973, allocations: 116.4 kB / 0.6169 GB, free: 2.711 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.195e-05/0.5974, allocations: 110.4 kB / 0.617 GB, free: 2.602 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.983e-05/0.5975, allocations: 29.7 kB / 0.6171 GB, free: 2.566 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.746e-05/0.5976, allocations: 322.8 kB / 0.6174 GB, free: 2.242 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.5978, allocations: 116.6 kB / 0.6175 GB, free: 2.129 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00027/0.5981, allocations: 199.8 kB / 0.6177 GB, free: 1.898 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005152/0.5986, allocations: 349.3 kB / 0.618 GB, free: 1.523 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5986, allocations: 4 kB / 0.618 GB, free: 1.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006592/0.5993, allocations: 365.5 kB / 0.6184 GB, free: 1.156 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.5993, allocations: 12 kB / 0.6184 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.5993, allocations: 0 / 0.6184 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.5993, allocations: 4 kB / 0.6184 GB, free: 1.141 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004147/0.5998, allocations: 79.89 kB / 0.6184 GB, free: 1.062 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.5998, allocations: 4.625 kB / 0.6185 GB, free: 1.059 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003524/0.6001, allocations: 35.67 kB / 0.6185 GB, free: 1.023 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.74e-05/0.6002, allocations: 19.94 kB / 0.6185 GB, free: 1.004 MB / 446.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.0001395/0.6003, allocations: 149.7 kB / 0.6187 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.311e-05/0.6004, allocations: 15.81 kB / 0.6187 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007783/0.6012, allocations: 372.6 kB / 0.619 GB, free: 476 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.6012, allocations: 4 kB / 0.619 GB, free: 472 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.6013, allocations: 0 / 0.619 GB, free: 472 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.6013, allocations: 0 / 0.619 GB, free: 472 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005781/0.6018, allocations: 360.8 kB / 0.6194 GB, free: 56 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.185e-06/0.6019, allocations: 0.5 kB / 0.6194 GB, free: 56 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004435/0.6023, allocations: 59.95 kB / 0.6194 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.6023, allocations: 0 / 0.6194 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.107e-05/0.6024, allocations: 16.75 kB / 0.6194 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.758e-06/0.6024, allocations: 4 kB / 0.6194 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.6024, allocations: 0 / 0.6194 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008624/0.6032, allocations: 0.554 MB / 0.62 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.6033, allocations: 92.86 kB / 0.6201 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.6033, allocations: 8.062 kB / 0.6201 GB, free: 15.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004023/0.6038, allocations: 28.03 kB / 0.6201 GB, free: 15.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.628e-05/0.6038, allocations: 19.92 kB / 0.6201 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.424e-05/0.6038, allocations: 15.98 kB / 0.6201 GB, free: 15.23 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.721e-05/0.6039, allocations: 99.25 kB / 0.6202 GB, free: 15.13 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6039, allocations: 0 / 0.6202 GB, free: 15.13 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008521/0.6048, allocations: 239.8 kB / 0.6205 GB, free: 14.89 MB / 462.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.002078/0.6069, allocations: 1.411 MB / 0.6218 GB, free: 13.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005823/0.6075, allocations: 302.8 kB / 0.6221 GB, free: 13.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.345e-06/0.6075, allocations: 12.06 kB / 0.6221 GB, free: 13.15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002542/0.6077, allocations: 143.9 kB / 0.6223 GB, free: 13.01 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006712/0.6084, allocations: 75.92 kB / 0.6224 GB, free: 12.94 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00364/0.6121, allocations: 2.911 MB / 0.6252 GB, free: 9.875 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.6124, allocations: 0.74 MB / 0.6259 GB, free: 9.105 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004865/0.6129, allocations: 88.53 kB / 0.626 GB, free: 9.023 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.613, allocations: 63.41 kB / 0.6261 GB, free: 8.961 MB / 462.1 MB Notification: Performance of SimCode: time 8.21e-07/0.6131, allocations: 0 / 0.6261 GB, free: 8.961 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.6396, allocations: 10.16 MB / 0.636 GB, free: 14.95 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.6399, allocations: 199.2 kB / 0.6362 GB, free: 14.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/2.754, allocations: 0 / 0.6362 GB, free: 14.7 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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