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.001163/0.001163, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001368/0.001368, allocations: 187.1 kB / 18.71 MB, free: 4.371 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.358/1.358, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2142/0.2142, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 68.03 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3389, allocations: 60.83 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.158/0.4969, allocations: 149.9 MB / 0.6648 GB, free: 5.695 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.003973/0.501, allocations: 3.146 MB / 0.6679 GB, free: 2.539 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001909/0.5012, allocations: 0 / 0.6679 GB, free: 2.539 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0004301/0.5016, allocations: 59.64 kB / 0.6679 GB, free: 2.48 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002706/0.5044, allocations: 1.029 MB / 0.6689 GB, free: 1.449 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.505, allocations: 199.4 kB / 0.6691 GB, free: 1.258 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0004872/0.5055, allocations: 354.6 kB / 0.6695 GB, free: 0.9102 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.469e-05/0.5055, allocations: 17.06 kB / 0.6695 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002711/0.5058, allocations: 139.6 kB / 0.6696 GB, free: 0.7539 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000211/0.506, allocations: 119.5 kB / 0.6697 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.46e-05/0.5061, allocations: 16 kB / 0.6697 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002672/0.5087, allocations: 1.492 MB / 0.6712 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.5089, allocations: 79.77 kB / 0.6713 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.509, allocations: 99.64 kB / 0.6714 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001605/0.5106, allocations: 0.9861 MB / 0.6723 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.5107, allocations: 4 kB / 0.6723 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5107, allocations: 0 / 0.6723 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.756e-06/0.5107, allocations: 4 kB / 0.6723 GB, free: 13.95 MB / 0.5294 GB 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.001005/0.5117, allocations: 0.5384 MB / 0.6729 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.5117, allocations: 15.97 kB / 0.6729 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.633e-05/0.5118, allocations: 50.73 kB / 0.6729 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001493/0.5133, allocations: 212.5 kB / 0.6731 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003293/0.5137, allocations: 251.6 kB / 0.6734 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.5137, allocations: 16.38 kB / 0.6734 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.345e-05/0.5137, allocations: 16 kB / 0.6734 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005697/0.5143, allocations: 373.5 kB / 0.6738 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.5143, allocations: 0 / 0.6738 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.363e-05/0.5144, allocations: 12 kB / 0.6738 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.5144, allocations: 4 kB / 0.6738 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005206/0.5149, allocations: 399.7 kB / 0.6741 GB, free: 11.99 MB / 0.5294 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.00159/0.5165, allocations: 0.8084 MB / 0.6749 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003735/0.5169, allocations: 217.1 kB / 0.6751 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.5171, allocations: 121.7 kB / 0.6753 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001823/0.5189, allocations: 0.9919 MB / 0.6762 GB, free: 9.609 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.519, allocations: 42.56 kB / 0.6763 GB, free: 9.559 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=29): time 1.483e-06/0.519, allocations: 0 / 0.6763 GB, free: 9.559 MB / 0.5294 GB Notification: Performance of matching and sorting (n=29): time 0.001124/0.5201, allocations: 364.3 kB / 0.6766 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.5202, allocations: 81.11 kB / 0.6767 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.427e-05/0.5203, allocations: 109.8 kB / 0.6768 GB, free: 8.984 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.345e-05/0.5203, allocations: 29.7 kB / 0.6768 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.523e-05/0.5204, allocations: 116.4 kB / 0.6769 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 8.075e-05/0.5205, allocations: 110.4 kB / 0.677 GB, free: 8.723 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.996e-05/0.5206, allocations: 58.03 kB / 0.6771 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.5207, allocations: 330.8 kB / 0.6774 GB, free: 8.328 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001807/0.5209, allocations: 104.5 kB / 0.6775 GB, free: 8.227 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002225/0.5211, allocations: 179.6 kB / 0.6777 GB, free: 8.016 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004466/0.5215, allocations: 309.6 kB / 0.678 GB, free: 7.68 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.5215, allocations: 0 / 0.678 GB, free: 7.68 MB / 0.5294 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000591/0.5221, allocations: 345.1 kB / 0.6783 GB, free: 7.336 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.5222, allocations: 8 kB / 0.6783 GB, free: 7.328 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.5222, allocations: 4 kB / 0.6783 GB, free: 7.324 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.5222, allocations: 4 kB / 0.6783 GB, free: 7.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.5226, allocations: 71.89 kB / 0.6784 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.5226, allocations: 8 kB / 0.6784 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.5228, allocations: 28.09 kB / 0.6784 GB, free: 7.215 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.535e-05/0.5229, allocations: 19.98 kB / 0.6784 GB, free: 7.195 MB / 0.5294 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 (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.0001487/0.523, allocations: 141.7 kB / 0.6786 GB, free: 7.047 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.5231, allocations: 19.81 kB / 0.6786 GB, free: 7.027 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006314/0.5238, allocations: 316.9 kB / 0.6789 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.5238, allocations: 4 kB / 0.6789 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.5238, allocations: 0 / 0.6789 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.5238, allocations: 7.984 kB / 0.6789 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005578/0.5244, allocations: 327 kB / 0.6792 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.5244, allocations: 0 / 0.6792 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/0.5247, allocations: 67.89 kB / 0.6793 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.5247, allocations: 0 / 0.6793 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.5248, allocations: 8 kB / 0.6793 GB, free: 6.258 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.5248, allocations: 7.938 kB / 0.6793 GB, free: 6.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.5248, allocations: 0 / 0.6793 GB, free: 6.25 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008389/0.5256, allocations: 0.4985 MB / 0.6798 GB, free: 5.734 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 7.765e-05/0.5257, allocations: 96.86 kB / 0.6799 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.5258, allocations: 8.062 kB / 0.6799 GB, free: 5.613 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003168/0.5261, allocations: 11.98 kB / 0.6799 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.5261, allocations: 23.97 kB / 0.6799 GB, free: 5.578 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.5262, allocations: 15.92 kB / 0.6799 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 5.082e-05/0.5262, allocations: 87.59 kB / 0.68 GB, free: 5.477 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5262, allocations: 0 / 0.68 GB, free: 5.477 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008018/0.5271, allocations: 227.8 kB / 0.6802 GB, free: 5.254 MB / 0.5294 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 (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.00201/0.5291, allocations: 1.369 MB / 0.6816 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005201/0.5296, allocations: 264.1 kB / 0.6818 GB, free: 3.602 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5296, allocations: 0 / 0.6818 GB, free: 3.602 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.5298, allocations: 123.8 kB / 0.6819 GB, free: 3.48 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006255/0.5305, allocations: 96.62 kB / 0.682 GB, free: 3.387 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003211/0.5337, allocations: 2.681 MB / 0.6847 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.534, allocations: 0.7285 MB / 0.6854 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002881/0.5343, allocations: 70.03 kB / 0.6854 GB, free: 15.74 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.5344, allocations: 55.42 kB / 0.6855 GB, free: 15.68 MB / 0.545 GB Notification: Performance of SimCode: time 3.1e-07/0.5344, allocations: 7.938 kB / 0.6855 GB, free: 15.68 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03149/0.5659, allocations: 10.53 MB / 0.6958 GB, free: 5.254 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.626/8.192, allocations: 13.62 kB / 0.6958 GB, free: 5.242 MB / 0.545 GB (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