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.001817/0.001817, 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.001913/0.001913, 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.397/1.397, 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.2194/0.2194, allocations: 44.18 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 67.89 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3666, allocations: 60.83 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.2292/0.5958, allocations: 174.4 MB / 0.6887 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.008569/0.6044, allocations: 5.327 MB / 0.6939 GB, free: 7.77 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009651/0.6054, allocations: 19.88 kB / 0.6939 GB, free: 7.75 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001031/0.6065, allocations: 314 kB / 0.6942 GB, free: 7.441 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003826/0.6103, allocations: 1.247 MB / 0.6955 GB, free: 6.195 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002673/0.613, allocations: 0.9579 MB / 0.6964 GB, free: 5.242 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002634/0.6157, allocations: 1.844 MB / 0.6982 GB, free: 3.391 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007569/0.6164, allocations: 468 kB / 0.6986 GB, free: 2.934 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002706/0.6192, allocations: 1.059 MB / 0.6997 GB, free: 1.871 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001035/0.6202, allocations: 0.6656 MB / 0.7003 GB, free: 1.203 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.6203, allocations: 60 kB / 0.7004 GB, free: 1.145 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001633/0.622, allocations: 0.6242 MB / 0.701 GB, free: 0.5195 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002863/0.6223, allocations: 263.3 kB / 0.7013 GB, free: 268 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004763/0.6228, allocations: 398.2 kB / 0.7016 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002112/0.6249, allocations: 1.304 MB / 0.7029 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.6249, allocations: 4 kB / 0.7029 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of FrontEnd: time 4.89e-06/0.6249, allocations: 0 / 0.7029 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.819e-05/0.6249, allocations: 3.938 kB / 0.7029 GB, free: 14.55 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.002583/0.6275, allocations: 1.125 MB / 0.704 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.6276, allocations: 8.031 kB / 0.704 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001396/0.6277, allocations: 94.52 kB / 0.7041 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008621/0.6286, allocations: 147.5 kB / 0.7042 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009675/0.6296, allocations: 0.5318 MB / 0.7048 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.6297, allocations: 100.4 kB / 0.7049 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.589e-05/0.6298, allocations: 47.98 kB / 0.7049 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.6312, allocations: 0.8174 MB / 0.7057 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.6312, allocations: 4 kB / 0.7057 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-05/0.6313, allocations: 24 kB / 0.7057 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.041e-05/0.6314, allocations: 40.92 kB / 0.7058 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.6325, allocations: 0.6243 MB / 0.7064 GB, free: 10.8 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.005114/0.6376, allocations: 3.966 MB / 0.7103 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006452/0.6383, allocations: 359.6 kB / 0.7106 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.6386, allocations: 177.3 kB / 0.7108 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001412/0.6388, allocations: 93.38 kB / 0.7109 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.6388, allocations: 34.84 kB / 0.7109 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.104e-06/0.6388, allocations: 0 / 0.7109 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39): time 0.005642/0.6445, allocations: 1.685 MB / 0.7125 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.185e-05/0.6446, allocations: 136.5 kB / 0.7127 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008186/0.6454, allocations: 0.6095 MB / 0.7133 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.325e-05/0.6455, allocations: 37.7 kB / 0.7133 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004175/0.6459, allocations: 371.8 kB / 0.7137 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.6461, allocations: 138.8 kB / 0.7138 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002412/0.6463, allocations: 170.5 kB / 0.7139 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002196/0.6466, allocations: 370.8 kB / 0.7143 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004126/0.647, allocations: 205.9 kB / 0.7145 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006558/0.6476, allocations: 0.5163 MB / 0.715 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.6487, allocations: 0.7591 MB / 0.7157 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.6487, allocations: 0 / 0.7157 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.2467/0.8954, allocations: 0.8811 MB / 0.7166 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.167e-05/0.8955, allocations: 9.5 kB / 0.7166 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.573e-05/0.8956, allocations: 9.875 kB / 0.7166 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00186/0.8974, allocations: 319.9 kB / 0.7169 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005643/0.898, allocations: 123 kB / 0.717 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.8993, allocations: 0.9319 MB / 0.718 GB, free: 188.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005908/0.8999, allocations: 28.95 kB / 0.718 GB, free: 188.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.9, allocations: 63.62 kB / 0.718 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.0004061/0.9004, allocations: 250.2 kB / 0.7183 GB, free: 188.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.9005, allocations: 74.45 kB / 0.7184 GB, free: 188.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.9023, allocations: 0.8587 MB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.9023, allocations: 8.312 kB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.9023, allocations: 0 / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.9023, allocations: 2.984 kB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/0.9048, allocations: 1.461 MB / 0.7206 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.9049, allocations: 4.469 kB / 0.7206 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.9059, allocations: 206.2 kB / 0.7208 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.97e-05/0.906, allocations: 25.2 kB / 0.7209 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.255e-05/0.9061, allocations: 23.56 kB / 0.7209 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001529/0.9076, allocations: 2.877 MB / 0.7237 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.9076, allocations: 3.062 kB / 0.7237 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.9089, allocations: 0.8347 MB / 0.7245 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/0.9092, allocations: 195.7 kB / 0.7247 GB, free: 184.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.547e-05/0.9093, allocations: 8.875 kB / 0.7247 GB, free: 184.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003729/0.9097, allocations: 22.22 kB / 0.7247 GB, free: 184.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.9098, allocations: 37 kB / 0.7248 GB, free: 184 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.361e-05/0.9099, allocations: 43.3 kB / 0.7248 GB, free: 184 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006403/0.9106, allocations: 439.7 kB / 0.7252 GB, free: 183.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.543e-06/0.9106, allocations: 0 / 0.7252 GB, free: 183.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001057/0.9116, allocations: 263.9 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.002263/0.9139, allocations: 1.557 MB / 0.727 GB, free: 182.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001272/0.9152, allocations: 0.5491 MB / 0.7275 GB, free: 182.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.9152, allocations: 0 / 0.7275 GB, free: 182.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009483/0.9162, allocations: 417.8 kB / 0.7279 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.001664/0.9178, allocations: 366.1 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.007747/0.9256, allocations: 6.348 MB / 0.7345 GB, free: 178.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.926, allocations: 0.9294 MB / 0.7354 GB, free: 177.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001135/0.9272, allocations: 467.1 kB / 0.7358 GB, free: 177.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004499/0.9276, allocations: 287.9 kB / 0.7361 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of SimCode: time 8.32e-07/0.9276, allocations: 0 / 0.7361 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05044/0.9781, allocations: 24.38 MB / 0.7599 GB, free: 156.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/14.13, allocations: 12.41 kB / 0.7599 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