Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001206, allocations: 122.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2184/0.2184, allocations: 46.09 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 75.88 kB / 480.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3611, allocations: 62.44 MB / 0.5305 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.1735/0.5347, allocations: 152.8 MB / 0.6797 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004279/0.539, allocations: 3.251 MB / 0.6829 GB, free: 5.129 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.5392, allocations: 0 / 0.6829 GB, free: 5.129 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0004616/0.5397, allocations: 63.64 kB / 0.6829 GB, free: 5.066 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003005/0.5427, allocations: 1.073 MB / 0.684 GB, free: 3.988 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006474/0.5434, allocations: 202.6 kB / 0.6842 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.000605/0.544, allocations: 366.6 kB / 0.6845 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.105e-05/0.5441, allocations: 13.11 kB / 0.6845 GB, free: 3.422 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004104/0.5445, allocations: 159.2 kB / 0.6847 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003395/0.5449, allocations: 119.6 kB / 0.6848 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 5.849e-05/0.545, allocations: 12 kB / 0.6848 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003592/0.5486, allocations: 1.539 MB / 0.6863 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.5487, allocations: 67.84 kB / 0.6864 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.5489, allocations: 111.6 kB / 0.6865 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002288/0.5512, allocations: 1.017 MB / 0.6875 GB, free: 416 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.5512, allocations: 3.938 kB / 0.6875 GB, free: 412 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.974e-06/0.5512, allocations: 7.875 kB / 0.6875 GB, free: 404 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.22e-05/0.5512, allocations: 0 / 0.6875 GB, free: 404 kB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001453/0.5527, allocations: 0.5569 MB / 0.688 GB, free: 15.79 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.5528, allocations: 12.03 kB / 0.6881 GB, free: 15.78 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.398e-05/0.5529, allocations: 50.73 kB / 0.6881 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001639/0.5545, allocations: 204.6 kB / 0.6883 GB, free: 15.52 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.5549, allocations: 263.6 kB / 0.6885 GB, free: 15.22 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.555, allocations: 16.38 kB / 0.6886 GB, free: 15.21 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.499e-05/0.5551, allocations: 23.98 kB / 0.6886 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006746/0.5558, allocations: 380.1 kB / 0.689 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.5558, allocations: 0 / 0.689 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/0.5558, allocations: 11.98 kB / 0.689 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.693e-05/0.5559, allocations: 15.94 kB / 0.689 GB, free: 14.78 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006062/0.5565, allocations: 412.5 kB / 0.6894 GB, free: 14.38 MB / 0.545 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.001812/0.5583, allocations: 0.8254 MB / 0.6902 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004087/0.5587, allocations: 225.1 kB / 0.6904 GB, free: 13.26 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.5589, allocations: 125.7 kB / 0.6905 GB, free: 13.13 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001843/0.5608, allocations: 0.9724 MB / 0.6915 GB, free: 11.99 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.5608, allocations: 42.55 kB / 0.6915 GB, free: 11.94 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.693e-06/0.5608, allocations: 0 / 0.6915 GB, free: 11.94 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001164/0.562, allocations: 382.7 kB / 0.6919 GB, free: 11.56 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.562, allocations: 81.11 kB / 0.6919 GB, free: 11.46 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.454e-05/0.5622, allocations: 121.7 kB / 0.6921 GB, free: 11.34 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.5622, allocations: 37.69 kB / 0.6921 GB, free: 11.29 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.222e-05/0.5623, allocations: 112.5 kB / 0.6922 GB, free: 11.18 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.398e-05/0.5624, allocations: 122.9 kB / 0.6923 GB, free: 11.06 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.5625, allocations: 62.02 kB / 0.6924 GB, free: 10.99 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.5626, allocations: 330.8 kB / 0.6927 GB, free: 10.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.5628, allocations: 108.1 kB / 0.6928 GB, free: 10.55 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002457/0.563, allocations: 182.9 kB / 0.693 GB, free: 10.34 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004649/0.5635, allocations: 318 kB / 0.6933 GB, free: 9.992 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.5635, allocations: 7.938 kB / 0.6933 GB, free: 9.984 MB / 0.545 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006241/0.5642, allocations: 355 kB / 0.6936 GB, free: 9.637 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.5642, allocations: 8 kB / 0.6936 GB, free: 9.629 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.5642, allocations: 320 / 0.6936 GB, free: 9.629 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.5642, allocations: 8 kB / 0.6936 GB, free: 9.621 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.5646, allocations: 71.89 kB / 0.6937 GB, free: 9.551 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.5646, allocations: 7.984 kB / 0.6937 GB, free: 9.543 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00021/0.5648, allocations: 31.78 kB / 0.6937 GB, free: 9.512 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.434e-05/0.5649, allocations: 23.92 kB / 0.6938 GB, free: 9.488 MB / 0.545 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 (40): * Single equations (assignments): 39 * Array equations: 1 * 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.0001439/0.565, allocations: 149.8 kB / 0.6939 GB, free: 9.332 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.657e-05/0.5651, allocations: 15.91 kB / 0.6939 GB, free: 9.316 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006425/0.5658, allocations: 330.2 kB / 0.6942 GB, free: 8.984 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.5658, allocations: 7.984 kB / 0.6942 GB, free: 8.977 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.5658, allocations: 0 / 0.6942 GB, free: 8.977 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.5658, allocations: 3.938 kB / 0.6943 GB, free: 8.973 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005548/0.5664, allocations: 339.1 kB / 0.6946 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.5664, allocations: 4 kB / 0.6946 GB, free: 8.586 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.5667, allocations: 51.91 kB / 0.6946 GB, free: 8.535 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.5667, allocations: 4 kB / 0.6946 GB, free: 8.531 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.5668, allocations: 15.98 kB / 0.6946 GB, free: 8.516 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.5668, allocations: 4 kB / 0.6946 GB, free: 8.512 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5668, allocations: 0 / 0.6946 GB, free: 8.512 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007536/0.5675, allocations: 0.5258 MB / 0.6952 GB, free: 7.969 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.889e-05/0.5676, allocations: 89 kB / 0.6952 GB, free: 7.863 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.201e-05/0.5677, allocations: 12.05 kB / 0.6953 GB, free: 7.852 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/0.568, allocations: 12 kB / 0.6953 GB, free: 7.84 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.568, allocations: 23.91 kB / 0.6953 GB, free: 7.816 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.256e-05/0.5681, allocations: 19.92 kB / 0.6953 GB, free: 7.797 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.132e-05/0.5681, allocations: 91.27 kB / 0.6954 GB, free: 7.707 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5681, allocations: 0 / 0.6954 GB, free: 7.707 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0009333/0.5691, allocations: 235.4 kB / 0.6956 GB, free: 7.477 MB / 0.545 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 (30): * Single equations (assignments): 29 * Array equations: 1 * 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.002228/0.5713, allocations: 1.405 MB / 0.697 GB, free: 6.047 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005316/0.5719, allocations: 275.6 kB / 0.6973 GB, free: 5.777 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5719, allocations: 4 kB / 0.6973 GB, free: 5.773 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002092/0.5721, allocations: 131.9 kB / 0.6974 GB, free: 5.645 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006416/0.5728, allocations: 96.89 kB / 0.6975 GB, free: 5.551 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003484/0.5762, allocations: 2.741 MB / 0.7002 GB, free: 2.66 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.5766, allocations: 0.7285 MB / 0.7009 GB, free: 1.906 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002971/0.5769, allocations: 73.97 kB / 0.7009 GB, free: 1.836 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.577, allocations: 67.41 kB / 0.701 GB, free: 1.77 MB / 0.545 GB Notification: Performance of SimCode: time 2.91e-07/0.577, allocations: 0 / 0.701 GB, free: 1.77 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.6102, allocations: 10.91 MB / 0.7117 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.571/8.181, allocations: 0 / 0.7117 GB, free: 6.969 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches