Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.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) 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.Air.MoistAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_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.001579/0.001579, allocations: 112.8 kB / 17.77 MB, free: 5.383 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.001909/0.001909, allocations: 184.8 kB / 18.71 MB, free: 4.457 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.379/1.379, 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.1948/0.1948, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 67.89 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.331, allocations: 60.81 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir): time 0.2141/0.5452, allocations: 190.5 MB / 0.7045 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.009943/0.5552, allocations: 7.39 MB / 0.7117 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008879/0.5561, allocations: 23.81 kB / 0.7117 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.5575, allocations: 449.5 kB / 0.7122 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006154/0.5636, allocations: 2.372 MB / 0.7145 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.006259/0.5699, allocations: 2.301 MB / 0.7167 GB, free: 352 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3827/0.9527, allocations: 2.185 MB / 0.7189 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001866/0.9546, allocations: 0.5941 MB / 0.7194 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007327/0.9619, allocations: 1.816 MB / 0.7212 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002709/0.9647, allocations: 0.8607 MB / 0.7221 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0005307/0.9652, allocations: 95.09 kB / 0.7221 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01614/0.9814, allocations: 5.184 MB / 0.7272 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001308/0.9828, allocations: 428.5 kB / 0.7276 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.9845, allocations: 0.5337 MB / 0.7281 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.009596/0.9941, allocations: 3.796 MB / 0.7318 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.9941, allocations: 0.9062 kB / 0.7318 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.156e-06/0.9941, allocations: 0 / 0.7318 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.361e-05/0.9942, allocations: 2.141 kB / 0.7318 GB, free: 3.938 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: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.00588/1, allocations: 1.764 MB / 0.7336 GB, free: 19 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/1, allocations: 10.91 kB / 0.7336 GB, free: 19 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000308/1, allocations: 125.9 kB / 0.7337 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005893/1.001, allocations: 119.8 kB / 0.7338 GB, free: 18.91 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00126/1.002, allocations: 0.6204 MB / 0.7344 GB, free: 18.64 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/1.002, allocations: 117.1 kB / 0.7345 GB, free: 18.57 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/1.003, allocations: 73.58 kB / 0.7346 GB, free: 18.57 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001938/1.005, allocations: 1.165 MB / 0.7357 GB, free: 18.39 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.223e-05/1.005, allocations: 7.359 kB / 0.7357 GB, free: 18.39 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/1.005, allocations: 33.42 kB / 0.7358 GB, free: 18.39 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.131e-05/1.005, allocations: 64.53 kB / 0.7358 GB, free: 18.39 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/1.007, allocations: 1.16 MB / 0.737 GB, free: 18.38 MB / 0.5762 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.007355/1.014, allocations: 4.978 MB / 0.7418 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/1.016, allocations: 0.8155 MB / 0.7426 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000581/1.016, allocations: 424.4 kB / 0.743 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00141/1.018, allocations: 1.626 MB / 0.7446 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.146e-05/1.018, allocations: 47.78 kB / 0.7447 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=70): time 3.487e-06/1.018, allocations: 3.438 kB / 0.7447 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.01327/1.031, allocations: 4.02 MB / 0.7486 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.299e-05/1.031, allocations: 111.9 kB / 0.7487 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008263/1.032, allocations: 0.6642 MB / 0.7493 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001447/1.032, allocations: 44.77 kB / 0.7494 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/1.033, allocations: 395.8 kB / 0.7498 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000231/1.033, allocations: 304.4 kB / 0.7501 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003008/1.033, allocations: 196.6 kB / 0.7502 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000156/1.033, allocations: 389.5 kB / 0.7506 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009358/1.034, allocations: 493.5 kB / 0.7511 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/1.035, allocations: 0.756 MB / 0.7518 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0021/1.037, allocations: 1.286 MB / 0.7531 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.425e-06/1.037, allocations: 2.75 kB / 0.7531 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003285/1.041, allocations: 1.688 MB / 0.7547 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/1.041, allocations: 9.375 kB / 0.7547 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/1.041, allocations: 10.19 kB / 0.7548 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006763/1.048, allocations: 1.304 MB / 0.756 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006099/1.048, allocations: 160.5 kB / 0.7562 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002516/1.051, allocations: 1.524 MB / 0.7577 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009584/1.052, allocations: 54.78 kB / 0.7577 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001474/1.052, allocations: 53.47 kB / 0.7578 GB, free: 11.11 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (89): * Single equations (assignments): 88 * 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 {(3,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0006288/1.053, allocations: 302.5 kB / 0.7581 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003096/1.053, allocations: 88.06 kB / 0.7581 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00354/1.056, allocations: 1.672 MB / 0.7598 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.791e-05/1.056, allocations: 10.97 kB / 0.7598 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/1.056, allocations: 5.344 kB / 0.7598 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/1.056, allocations: 4.359 kB / 0.7598 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005387/1.062, allocations: 2.629 MB / 0.7624 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/1.062, allocations: 8.25 kB / 0.7624 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/1.063, allocations: 255.2 kB / 0.7626 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/1.065, allocations: 381 kB / 0.763 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/1.065, allocations: 33.31 kB / 0.763 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002755/1.068, allocations: 2.349 MB / 0.7653 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.068, allocations: 4.75 kB / 0.7653 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004117/1.072, allocations: 2.035 MB / 0.7673 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007992/1.073, allocations: 296.4 kB / 0.7676 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002626/1.073, allocations: 23.84 kB / 0.7676 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/1.074, allocations: 54.78 kB / 0.7677 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/1.074, allocations: 57.47 kB / 0.7677 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001492/1.074, allocations: 48.38 kB / 0.7678 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000787/1.075, allocations: 0.4995 MB / 0.7682 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/1.075, allocations: 0 / 0.7682 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00266/1.078, allocations: 0.6762 MB / 0.7689 GB, free: 7.742 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007216/1.085, allocations: 3.284 MB / 0.7721 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002934/1.088, allocations: 1.248 MB / 0.7733 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-05/1.088, allocations: 4.781 kB / 0.7733 GB, free: 6.793 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001796/1.09, allocations: 0.7162 MB / 0.774 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/1.093, allocations: 0.5157 MB / 0.7745 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01904/1.112, allocations: 9.723 MB / 0.784 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008774/1.113, allocations: 1.045 MB / 0.7851 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001312/1.114, allocations: 367.3 kB / 0.7854 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005826/1.115, allocations: 333.7 kB / 0.7857 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of SimCode: time 2.615e-06/1.115, allocations: 0 / 0.7857 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08715/1.202, allocations: 43.75 MB / 0.8284 GB, free: 5.984 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/14.6, allocations: 0 / 0.8284 GB, free: 5.984 MB / 0.6231 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir_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_Air_MoistAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Air/MoistAir/MoistAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches