Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MoistAir.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) 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(Modelica.Media.Examples.MoistAir,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MoistAir,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MoistAir",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.001532/0.001532, allocations: 108.3 kB / 16.92 MB, free: 6.145 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.001645/0.001646, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.274/2.274, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 47.42 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.143, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MoistAir): time 0.581/0.7241, allocations: 151.4 MB / 0.4898 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003491/0.7276, allocations: 1.594 MB / 0.4914 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.7278, allocations: 0 / 0.4914 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005501/0.7284, allocations: 63.64 kB / 0.4915 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007596/0.7292, allocations: 157.4 kB / 0.4916 GB, free: 11.36 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005028/0.7342, allocations: 1.016 MB / 0.4926 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007104/0.735, allocations: 326.9 kB / 0.4929 GB, free: 10.04 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.072e-05/0.7351, allocations: 13.45 kB / 0.4929 GB, free: 10.02 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005584/0.7356, allocations: 147.5 kB / 0.4931 GB, free: 9.879 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005354/0.7362, allocations: 127.5 kB / 0.4932 GB, free: 9.754 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.096e-05/0.7363, allocations: 12 kB / 0.4932 GB, free: 9.742 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004731/0.741, allocations: 1.54 MB / 0.4947 GB, free: 8.199 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.7412, allocations: 71.84 kB / 0.4948 GB, free: 8.129 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000226/0.7415, allocations: 91.64 kB / 0.4949 GB, free: 8.039 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002759/0.7442, allocations: 0.9939 MB / 0.4958 GB, free: 7.043 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.7443, allocations: 8 kB / 0.4958 GB, free: 7.035 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.48e-06/0.7443, allocations: 0 / 0.4958 GB, free: 7.035 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.7443, allocations: 3.938 kB / 0.4958 GB, free: 7.031 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002874/0.7472, allocations: 0.6715 MB / 0.4965 GB, free: 6.312 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.737e-05/0.7473, allocations: 12.03 kB / 0.4965 GB, free: 6.301 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.7474, allocations: 46.73 kB / 0.4965 GB, free: 6.246 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002431/0.7476, allocations: 20.83 kB / 0.4966 GB, free: 6.227 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.748, allocations: 215.3 kB / 0.4968 GB, free: 5.977 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.7481, allocations: 12.33 kB / 0.4968 GB, free: 5.965 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.04e-05/0.7482, allocations: 12 kB / 0.4968 GB, free: 5.953 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009868/0.7492, allocations: 269.4 kB / 0.4971 GB, free: 5.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.7492, allocations: 0 / 0.4971 GB, free: 5.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.352e-05/0.7493, allocations: 8.875 kB / 0.4971 GB, free: 5.672 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.917e-05/0.7493, allocations: 4 kB / 0.4971 GB, free: 5.668 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.7505, allocations: 271.7 kB / 0.4973 GB, free: 5.402 MB / 414.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.002332/0.7528, allocations: 0.7936 MB / 0.4981 GB, free: 4.531 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.7539, allocations: 225.7 kB / 0.4983 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.7545, allocations: 133.6 kB / 0.4984 GB, free: 4.156 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000624/0.7552, allocations: 359.1 kB / 0.4988 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.994e-05/0.7552, allocations: 45.67 kB / 0.4988 GB, free: 3.684 MB / 414.1 MB Notification: Performance of pre-optimization done (n=29): time 3.256e-06/0.7552, allocations: 3.938 kB / 0.4988 GB, free: 3.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=36): time 0.00427/0.7595, allocations: 0.6715 MB / 0.4995 GB, free: 3.008 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/0.7596, allocations: 85.05 kB / 0.4996 GB, free: 2.906 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.7598, allocations: 121.8 kB / 0.4997 GB, free: 2.777 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.767e-05/0.7599, allocations: 37.7 kB / 0.4997 GB, free: 2.734 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.432e-05/0.76, allocations: 104.8 kB / 0.4998 GB, free: 2.629 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.7601, allocations: 130.1 kB / 0.4999 GB, free: 2.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001901/0.7604, allocations: 65.67 kB / 0.5 GB, free: 2.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.7605, allocations: 330.8 kB / 0.5003 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006773/0.7612, allocations: 131.9 kB / 0.5005 GB, free: 1.969 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007542/0.762, allocations: 211.6 kB / 0.5007 GB, free: 1.734 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/0.7635, allocations: 351.4 kB / 0.501 GB, free: 1.363 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.7635, allocations: 0 / 0.501 GB, free: 1.363 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00177/0.7653, allocations: 410.4 kB / 0.5014 GB, free: 0.957 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.7653, allocations: 4.219 kB / 0.5014 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.7653, allocations: 11.98 kB / 0.5014 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.7654, allocations: 4 kB / 0.5014 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008512/0.7662, allocations: 91.66 kB / 0.5015 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.74e-05/0.7663, allocations: 4 kB / 0.5015 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005566/0.7668, allocations: 31.86 kB / 0.5015 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.143e-05/0.7669, allocations: 11.98 kB / 0.5015 GB, free: 0.8047 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (43): * Single equations (assignments): 43 * 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.0002452/0.7672, allocations: 141.8 kB / 0.5017 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.7673, allocations: 15.81 kB / 0.5017 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006322/0.768, allocations: 180.7 kB / 0.5019 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.768, allocations: 4 kB / 0.5019 GB, free: 464 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.768, allocations: 0 / 0.5019 GB, free: 464 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/0.7681, allocations: 7.922 kB / 0.5019 GB, free: 456 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.7711, allocations: 0.7519 MB / 0.5026 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.595e-06/0.7712, allocations: 160 / 0.5026 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007604/0.7719, allocations: 83.89 kB / 0.5027 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.772, allocations: 4 kB / 0.5027 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.191e-05/0.772, allocations: 11.98 kB / 0.5027 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.274e-05/0.7721, allocations: 7.938 kB / 0.5027 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.7721, allocations: 0 / 0.5027 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002475/0.7746, allocations: 0.719 MB / 0.5034 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002144/0.7748, allocations: 112.9 kB / 0.5035 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.362e-05/0.7749, allocations: 12 kB / 0.5035 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000641/0.7755, allocations: 19.98 kB / 0.5035 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.971e-05/0.7756, allocations: 29.22 kB / 0.5036 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.438e-05/0.7757, allocations: 11.98 kB / 0.5036 GB, free: 14.56 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001149/0.7758, allocations: 95.27 kB / 0.5037 GB, free: 14.46 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.7758, allocations: 0 / 0.5037 GB, free: 14.46 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001098/0.7769, allocations: 151.8 kB / 0.5038 GB, free: 14.32 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 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 (38): * Single equations (assignments): 38 * 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.003478/0.7804, allocations: 1.357 MB / 0.5051 GB, free: 12.92 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.7821, allocations: 364 kB / 0.5055 GB, free: 12.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.7821, allocations: 4 kB / 0.5055 GB, free: 12.56 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007428/0.7829, allocations: 178.9 kB / 0.5057 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.7842, allocations: 109.5 kB / 0.5058 GB, free: 12.29 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008149/0.7924, allocations: 2.802 MB / 0.5085 GB, free: 9.328 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005609/0.793, allocations: 0.7371 MB / 0.5092 GB, free: 8.562 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007802/0.7938, allocations: 81.98 kB / 0.5093 GB, free: 8.477 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002878/0.7941, allocations: 63.41 kB / 0.5094 GB, free: 8.414 MB / 430.1 MB Notification: Performance of SimCode: time 5.11e-07/0.7941, allocations: 0 / 0.5094 GB, free: 8.414 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04878/0.8429, allocations: 7.958 MB / 0.5171 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.72, allocations: 15.94 kB / 0.5171 GB, free: 0.5352 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MoistAir.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.MoistAir_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Media_Examples_MoistAir.fmu > Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MoistAir_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MoistAir/MoistAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.MoistAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches