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.001423/0.001423, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001999/0.001999, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2277/0.2277, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 71.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3691, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.18/0.5491, allocations: 152.8 MB / 0.6797 GB, free: 8.418 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00397/0.5531, allocations: 3.247 MB / 0.6829 GB, free: 5.16 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.5533, allocations: 0 / 0.6829 GB, free: 5.16 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0003649/0.5537, allocations: 75.58 kB / 0.6829 GB, free: 5.086 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.002648/0.5564, allocations: 1.072 MB / 0.684 GB, free: 4.012 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004969/0.5569, allocations: 194.6 kB / 0.6842 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.000444/0.5573, allocations: 366.6 kB / 0.6845 GB, free: 3.465 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.97e-05/0.5574, allocations: 9.125 kB / 0.6845 GB, free: 3.457 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002468/0.5576, allocations: 159.4 kB / 0.6847 GB, free: 3.301 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.5578, allocations: 115.6 kB / 0.6848 GB, free: 3.188 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.5579, allocations: 12 kB / 0.6848 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002622/0.5605, allocations: 1.535 MB / 0.6863 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.5606, allocations: 83.77 kB / 0.6864 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.5608, allocations: 99.59 kB / 0.6865 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001626/0.5624, allocations: 1.013 MB / 0.6875 GB, free: 452 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.922e-06/0.5624, allocations: 3.938 kB / 0.6875 GB, free: 448 kB / 0.5294 GB Notification: Performance of FrontEnd: time 2.455e-06/0.5624, allocations: 0 / 0.6875 GB, free: 448 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.699e-05/0.5624, allocations: 0 / 0.6875 GB, free: 448 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.001277/0.5637, allocations: 0.55 MB / 0.688 GB, free: 15.84 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.5638, allocations: 12.03 kB / 0.688 GB, free: 15.83 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.071e-05/0.5639, allocations: 54.72 kB / 0.6881 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00151/0.5654, allocations: 208.5 kB / 0.6883 GB, free: 15.56 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/0.5658, allocations: 259.6 kB / 0.6885 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.5658, allocations: 16.31 kB / 0.6885 GB, free: 15.25 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.487e-05/0.5659, allocations: 20 kB / 0.6886 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006351/0.5665, allocations: 384.1 kB / 0.6889 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.5665, allocations: 0 / 0.6889 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.5666, allocations: 8 kB / 0.6889 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.5666, allocations: 11.98 kB / 0.6889 GB, free: 14.83 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005685/0.5672, allocations: 424.3 kB / 0.6894 GB, free: 14.42 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.001695/0.5689, allocations: 0.829 MB / 0.6902 GB, free: 13.54 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003977/0.5693, allocations: 227.9 kB / 0.6904 GB, free: 13.3 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.5695, allocations: 125.6 kB / 0.6905 GB, free: 13.17 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001773/0.5712, allocations: 0.9723 MB / 0.6914 GB, free: 12.03 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.5713, allocations: 38.56 kB / 0.6915 GB, free: 11.98 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.824e-06/0.5713, allocations: 4 kB / 0.6915 GB, free: 11.98 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.00117/0.5725, allocations: 373.6 kB / 0.6918 GB, free: 11.61 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.5725, allocations: 81.11 kB / 0.6919 GB, free: 11.51 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.857e-05/0.5726, allocations: 109.8 kB / 0.692 GB, free: 11.39 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/0.5727, allocations: 33.7 kB / 0.6921 GB, free: 11.35 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.326e-05/0.5728, allocations: 116.3 kB / 0.6922 GB, free: 11.23 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.862e-05/0.5728, allocations: 114.4 kB / 0.6923 GB, free: 11.12 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-05/0.5729, allocations: 66.03 kB / 0.6923 GB, free: 11.05 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.5731, allocations: 330.8 kB / 0.6927 GB, free: 10.72 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.5733, allocations: 104.1 kB / 0.6928 GB, free: 10.62 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.5735, allocations: 190.8 kB / 0.6929 GB, free: 10.39 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004361/0.5739, allocations: 324.3 kB / 0.6932 GB, free: 10.04 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.574, allocations: 3.938 kB / 0.6933 GB, free: 10.04 MB / 0.545 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005901/0.5745, allocations: 354.8 kB / 0.6936 GB, free: 9.691 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.5746, allocations: 8 kB / 0.6936 GB, free: 9.684 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.5746, allocations: 0 / 0.6936 GB, free: 9.684 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.5746, allocations: 8 kB / 0.6936 GB, free: 9.676 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003304/0.5749, allocations: 71.84 kB / 0.6937 GB, free: 9.605 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.998e-06/0.575, allocations: 8 kB / 0.6937 GB, free: 9.598 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.5752, allocations: 31.67 kB / 0.6937 GB, free: 9.566 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.914e-05/0.5752, allocations: 15.98 kB / 0.6937 GB, free: 9.551 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.0001294/0.5754, allocations: 150 kB / 0.6939 GB, free: 9.395 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.43e-05/0.5755, allocations: 15.81 kB / 0.6939 GB, free: 9.379 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006417/0.5761, allocations: 338.5 kB / 0.6942 GB, free: 9.039 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.5761, allocations: 4 kB / 0.6942 GB, free: 9.035 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5761, allocations: 0 / 0.6942 GB, free: 9.035 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.5762, allocations: 3.984 kB / 0.6942 GB, free: 9.031 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005471/0.5767, allocations: 347 kB / 0.6945 GB, free: 8.641 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.5767, allocations: 0 / 0.6945 GB, free: 8.641 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.577, allocations: 51.91 kB / 0.6946 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.5771, allocations: 4 kB / 0.6946 GB, free: 8.586 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.5771, allocations: 12 kB / 0.6946 GB, free: 8.574 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.5771, allocations: 3.984 kB / 0.6946 GB, free: 8.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.5771, allocations: 3.938 kB / 0.6946 GB, free: 8.566 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007417/0.5779, allocations: 0.5219 MB / 0.6951 GB, free: 8.027 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.5779, allocations: 88.95 kB / 0.6952 GB, free: 7.922 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.578, allocations: 8.062 kB / 0.6952 GB, free: 7.914 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000306/0.5783, allocations: 15.98 kB / 0.6952 GB, free: 7.898 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.093e-05/0.5783, allocations: 27.88 kB / 0.6953 GB, free: 7.871 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.704e-05/0.5784, allocations: 19.92 kB / 0.6953 GB, free: 7.852 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.208e-05/0.5784, allocations: 91.27 kB / 0.6954 GB, free: 7.762 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5784, allocations: 0 / 0.6954 GB, free: 7.762 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008224/0.5793, allocations: 227.9 kB / 0.6956 GB, free: 7.539 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.001875/0.5811, allocations: 1.41 MB / 0.697 GB, free: 6.102 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005289/0.5817, allocations: 270.6 kB / 0.6972 GB, free: 5.84 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.5817, allocations: 0 / 0.6972 GB, free: 5.84 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.5819, allocations: 131.8 kB / 0.6973 GB, free: 5.711 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006614/0.5826, allocations: 96.88 kB / 0.6974 GB, free: 5.617 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003289/0.5859, allocations: 2.726 MB / 0.7001 GB, free: 2.742 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002618/0.5862, allocations: 0.7363 MB / 0.7008 GB, free: 1.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003013/0.5865, allocations: 74.02 kB / 0.7009 GB, free: 1.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.5866, allocations: 63.42 kB / 0.701 GB, free: 1.848 MB / 0.545 GB Notification: Performance of SimCode: time 3.8e-07/0.5866, allocations: 0 / 0.701 GB, free: 1.848 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03323/0.6198, allocations: 10.98 MB / 0.7117 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8/8.62, allocations: 2.969 kB / 0.7117 GB, free: 6.965 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches