Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_0_0_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.001442/0.001443, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001422/0.001423, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.386/1.386, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.215/0.215, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 59.91 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3507, allocations: 60.81 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.192/0.5428, allocations: 174.4 MB / 0.6887 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.007597/0.5504, allocations: 5.33 MB / 0.6939 GB, free: 7.758 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008086/0.5513, allocations: 19.88 kB / 0.6939 GB, free: 7.738 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.5524, allocations: 318 kB / 0.6943 GB, free: 7.426 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004107/0.5566, allocations: 1.263 MB / 0.6955 GB, free: 6.164 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00269/0.5593, allocations: 0.9658 MB / 0.6964 GB, free: 5.203 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002529/0.5618, allocations: 1.848 MB / 0.6982 GB, free: 3.348 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008253/0.5627, allocations: 457.3 kB / 0.6987 GB, free: 2.898 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002371/0.5651, allocations: 1.09 MB / 0.6997 GB, free: 1.805 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001171/0.5662, allocations: 0.654 MB / 0.7004 GB, free: 1.148 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002158/0.5665, allocations: 60 kB / 0.7004 GB, free: 1.09 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.5681, allocations: 0.6242 MB / 0.701 GB, free: 476 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004031/0.5685, allocations: 267.2 kB / 0.7013 GB, free: 208 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006771/0.5692, allocations: 390.3 kB / 0.7017 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002246/0.5714, allocations: 1.312 MB / 0.7029 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.5714, allocations: 3.938 kB / 0.703 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5715, allocations: 0 / 0.703 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.006e-05/0.5715, allocations: 0 / 0.703 GB, free: 14.5 MB / 0.5606 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.002778/0.5743, allocations: 1.125 MB / 0.7041 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.5743, allocations: 8.031 kB / 0.7041 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001789/0.5745, allocations: 98.52 kB / 0.7042 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009214/0.5754, allocations: 139.5 kB / 0.7043 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.5766, allocations: 0.5357 MB / 0.7048 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.5767, allocations: 100.4 kB / 0.7049 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.5768, allocations: 55.92 kB / 0.705 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.5782, allocations: 0.8213 MB / 0.7058 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.5782, allocations: 0 / 0.7058 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.79e-05/0.5783, allocations: 24 kB / 0.7058 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.604e-05/0.5783, allocations: 36.92 kB / 0.7058 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.5794, allocations: 0.6282 MB / 0.7064 GB, free: 10.74 MB / 0.5606 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.005164/0.5846, allocations: 3.958 MB / 0.7103 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006473/0.5853, allocations: 363.6 kB / 0.7106 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002771/0.5855, allocations: 165.3 kB / 0.7108 GB, free: 6 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001667/0.5857, allocations: 93.36 kB / 0.7109 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.5858, allocations: 42.78 kB / 0.7109 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 1.954e-06/0.5858, allocations: 0 / 0.7109 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39): time 0.006011/0.5918, allocations: 1.681 MB / 0.7126 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.571e-05/0.5919, allocations: 136.5 kB / 0.7127 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008034/0.5927, allocations: 0.6134 MB / 0.7133 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.873e-05/0.5928, allocations: 29.7 kB / 0.7133 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000284/0.5931, allocations: 379.8 kB / 0.7137 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.5932, allocations: 150.8 kB / 0.7138 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002256/0.5934, allocations: 158.6 kB / 0.714 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001682/0.5936, allocations: 378.7 kB / 0.7143 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003737/0.594, allocations: 201.9 kB / 0.7145 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006104/0.5946, allocations: 0.5086 MB / 0.715 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.5957, allocations: 0.7552 MB / 0.7158 GB, free: 468 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.5957, allocations: 7.984 kB / 0.7158 GB, free: 460 kB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.2415/0.8372, allocations: 0.8735 MB / 0.7166 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/0.8372, allocations: 11.22 kB / 0.7166 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/0.8373, allocations: 9.875 kB / 0.7167 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001453/0.8387, allocations: 312.1 kB / 0.717 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004325/0.8392, allocations: 122.3 kB / 0.7171 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009833/0.8401, allocations: 0.937 MB / 0.718 GB, free: 188.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005307/0.8407, allocations: 29.11 kB / 0.718 GB, free: 188.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.834e-05/0.8408, allocations: 68.84 kB / 0.7181 GB, free: 188.9 MB / 0.5606 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.0003372/0.8411, allocations: 246.4 kB / 0.7183 GB, free: 188.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/0.8413, allocations: 76.3 kB / 0.7184 GB, free: 188.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.8428, allocations: 0.8598 MB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.8428, allocations: 3.906 kB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.8429, allocations: 2.531 kB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.872e-06/0.8429, allocations: 3.797 kB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.8447, allocations: 1.461 MB / 0.7207 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.8448, allocations: 2.031 kB / 0.7207 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.8458, allocations: 206 kB / 0.7209 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.941e-05/0.8459, allocations: 31.3 kB / 0.7209 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.185e-05/0.846, allocations: 23 kB / 0.7209 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.8474, allocations: 2.879 MB / 0.7237 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.8474, allocations: 2.359 kB / 0.7237 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.8486, allocations: 0.8362 MB / 0.7245 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000263/0.8489, allocations: 192.7 kB / 0.7247 GB, free: 184 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.785e-05/0.849, allocations: 10.95 kB / 0.7247 GB, free: 184 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003978/0.8494, allocations: 20.31 kB / 0.7248 GB, free: 184 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.8495, allocations: 41.8 kB / 0.7248 GB, free: 184 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-05/0.8496, allocations: 45.47 kB / 0.7248 GB, free: 184 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0005339/0.8501, allocations: 437.5 kB / 0.7253 GB, free: 183.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8501, allocations: 0.9844 kB / 0.7253 GB, free: 183.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009402/0.8511, allocations: 260 kB / 0.7255 GB, free: 183.8 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.002173/0.8533, allocations: 1.554 MB / 0.727 GB, free: 182.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001519/0.8548, allocations: 0.5542 MB / 0.7276 GB, free: 182.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.8548, allocations: 1.281 kB / 0.7276 GB, free: 182.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.8558, allocations: 418 kB / 0.728 GB, free: 182.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001669/0.8575, allocations: 374.6 kB / 0.7283 GB, free: 182.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00779/0.8653, allocations: 6.343 MB / 0.7345 GB, free: 178.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.8657, allocations: 0.9296 MB / 0.7354 GB, free: 177.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001107/0.8668, allocations: 467.3 kB / 0.7359 GB, free: 177.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004375/0.8673, allocations: 282.9 kB / 0.7361 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.072e-06/0.8673, allocations: 1.125 kB / 0.7361 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05312/0.9204, allocations: 24.39 MB / 0.76 GB, free: 156.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.59, allocations: 8.469 kB / 0.76 GB, free: 156.4 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches