Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.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.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",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.0015/0.0015, allocations: 110.2 kB / 16.41 MB, free: 6.488 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.001649/0.00165, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.306/1.306, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2016/0.2016, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 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.001629/0.001629, allocations: 59.91 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.122, allocations: 57.78 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.5086/0.6307, allocations: 179.7 MB / 0.6629 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01393/0.6447, allocations: 8.174 MB / 0.6709 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001021/0.6457, allocations: 19.88 kB / 0.6709 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.6472, allocations: 318 kB / 0.6712 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005076/0.6523, allocations: 1.505 MB / 0.6727 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004016/0.6563, allocations: 1.144 MB / 0.6738 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003431/0.6597, allocations: 1.864 MB / 0.6756 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009932/0.6608, allocations: 456.8 kB / 0.6761 GB, free: 9.598 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003575/0.6643, allocations: 1.246 MB / 0.6773 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.6658, allocations: 0.6618 MB / 0.6779 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002808/0.6661, allocations: 60 kB / 0.678 GB, free: 7.625 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002259/0.6684, allocations: 0.823 MB / 0.6788 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004718/0.6689, allocations: 271.2 kB / 0.679 GB, free: 6.535 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007386/0.6696, allocations: 398.2 kB / 0.6794 GB, free: 6.145 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002569/0.6722, allocations: 1.417 MB / 0.6808 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.6722, allocations: 0 / 0.6808 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.402e-06/0.6722, allocations: 0 / 0.6808 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.313e-05/0.6723, allocations: 4 kB / 0.6808 GB, free: 4.719 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003022/0.6753, allocations: 1.159 MB / 0.6819 GB, free: 3.504 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.6753, allocations: 11.89 kB / 0.6819 GB, free: 3.492 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002353/0.6756, allocations: 98.5 kB / 0.682 GB, free: 3.387 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001047/0.6766, allocations: 143.5 kB / 0.6822 GB, free: 3.246 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.6779, allocations: 0.5395 MB / 0.6827 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.6781, allocations: 104.4 kB / 0.6828 GB, free: 2.551 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.6782, allocations: 48 kB / 0.6828 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.6798, allocations: 0.8097 MB / 0.6836 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.6798, allocations: 3.938 kB / 0.6836 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-05/0.6799, allocations: 27.98 kB / 0.6837 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.475e-05/0.68, allocations: 40.97 kB / 0.6837 GB, free: 1.555 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.6812, allocations: 0.6166 MB / 0.6843 GB, free: 0.9375 MB / 0.5137 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.005221/0.6864, allocations: 3.993 MB / 0.6882 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006208/0.6871, allocations: 359 kB / 0.6886 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002859/0.6874, allocations: 177.9 kB / 0.6887 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004641/0.6878, allocations: 357.5 kB / 0.6891 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.304e-05/0.6879, allocations: 38.84 kB / 0.6891 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=34): time 2.475e-06/0.6879, allocations: 4 kB / 0.6891 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=39): time 0.006207/0.6941, allocations: 1.672 MB / 0.6907 GB, free: 9.965 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.481e-05/0.6942, allocations: 140.4 kB / 0.6909 GB, free: 9.797 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009279/0.6952, allocations: 0.6211 MB / 0.6915 GB, free: 9.168 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.94e-05/0.6952, allocations: 29.7 kB / 0.6915 GB, free: 9.133 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000299/0.6956, allocations: 367.9 kB / 0.6919 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.6957, allocations: 154.7 kB / 0.692 GB, free: 8.617 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002511/0.696, allocations: 154.6 kB / 0.6922 GB, free: 8.461 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002046/0.6962, allocations: 378.8 kB / 0.6925 GB, free: 8.082 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000394/0.6966, allocations: 197.9 kB / 0.6927 GB, free: 7.887 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006075/0.6972, allocations: 0.5164 MB / 0.6932 GB, free: 7.223 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.6983, allocations: 0.7484 MB / 0.6939 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.6983, allocations: 4 kB / 0.6939 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001562/0.6999, allocations: 0.8847 MB / 0.6948 GB, free: 5.438 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.6999, allocations: 8 kB / 0.6948 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/0.6999, allocations: 19.97 kB / 0.6948 GB, free: 5.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.7013, allocations: 312.7 kB / 0.6951 GB, free: 5.102 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003842/0.7017, allocations: 124.4 kB / 0.6952 GB, free: 4.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.7029, allocations: 0.9308 MB / 0.6962 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005442/0.7034, allocations: 28 kB / 0.6962 GB, free: 3.996 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.484e-05/0.7035, allocations: 75.98 kB / 0.6963 GB, free: 3.922 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.000373/0.7039, allocations: 245.5 kB / 0.6965 GB, free: 3.672 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/0.7041, allocations: 67.58 kB / 0.6966 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001384/0.7055, allocations: 0.6875 MB / 0.6972 GB, free: 2.891 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.7055, allocations: 4 kB / 0.6972 GB, free: 2.887 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.7055, allocations: 0 / 0.6972 GB, free: 2.887 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.7055, allocations: 4 kB / 0.6972 GB, free: 2.883 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002522/0.708, allocations: 1.599 MB / 0.6988 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.7081, allocations: 4.031 kB / 0.6988 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.7091, allocations: 211.7 kB / 0.699 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.7093, allocations: 24.84 kB / 0.699 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-05/0.7093, allocations: 15.98 kB / 0.699 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002631/0.7119, allocations: 2.877 MB / 0.7018 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.712, allocations: 8 kB / 0.7019 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.7133, allocations: 0.8051 MB / 0.7026 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004893/0.7138, allocations: 208.6 kB / 0.7028 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001524/0.7139, allocations: 8 kB / 0.7028 GB, free: 12.65 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004685/0.7144, allocations: 16 kB / 0.7029 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.7145, allocations: 39.89 kB / 0.7029 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-05/0.7146, allocations: 51.91 kB / 0.703 GB, free: 12.55 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005939/0.7152, allocations: 435 kB / 0.7034 GB, free: 12.13 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.4e-07/0.7152, allocations: 0 / 0.7034 GB, free: 12.13 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0012/0.7164, allocations: 299.6 kB / 0.7037 GB, free: 11.84 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (volume.medium.p,volume.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002723/0.7191, allocations: 1.616 MB / 0.7052 GB, free: 10.19 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001234/0.7204, allocations: 0.5539 MB / 0.7058 GB, free: 9.637 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.7204, allocations: 0 / 0.7058 GB, free: 9.637 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.7214, allocations: 423.7 kB / 0.7062 GB, free: 9.211 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/0.7232, allocations: 373.1 kB / 0.7065 GB, free: 8.852 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01042/0.7336, allocations: 6.307 MB / 0.7127 GB, free: 2.148 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004893/0.7342, allocations: 0.93 MB / 0.7136 GB, free: 1.191 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0008714/0.735, allocations: 273.9 kB / 0.7139 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004518/0.7355, allocations: 271.3 kB / 0.7141 GB, free: 0.6562 MB / 0.545 GB Notification: Performance of SimCode: time 1.432e-06/0.7355, allocations: 0 / 0.7141 GB, free: 0.6562 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06435/0.7999, allocations: 25.39 MB / 0.7389 GB, free: 7.23 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/13.13, allocations: 7.953 kB / 0.7389 GB, free: 7.223 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches