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.001119/0.001119, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001319/0.001319, allocations: 181 kB / 18.71 MB, free: 4.207 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.05 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.2276/0.2276, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.396/0.3973, allocations: 60.81 MB / 0.5184 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir): time 0.217/0.6143, allocations: 190.5 MB / 0.7045 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.009362/0.6237, allocations: 7.394 MB / 0.7117 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007803/0.6245, allocations: 19.88 kB / 0.7117 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.6258, allocations: 449.5 kB / 0.7122 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.007087/0.633, allocations: 2.368 MB / 0.7145 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00655/0.6395, allocations: 2.305 MB / 0.7167 GB, free: 344 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3871/1.027, allocations: 2.185 MB / 0.7189 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00136/1.028, allocations: 0.5963 MB / 0.7195 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005183/1.033, allocations: 1.818 MB / 0.7212 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001749/1.035, allocations: 0.8607 MB / 0.7221 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.000266/1.035, allocations: 93.53 kB / 0.7222 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01241/1.048, allocations: 5.177 MB / 0.7272 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0009022/1.049, allocations: 435.1 kB / 0.7276 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001474/1.05, allocations: 0.5307 MB / 0.7281 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01198/1.062, allocations: 3.796 MB / 0.7319 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/1.062, allocations: 0 / 0.7319 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.894e-06/1.062, allocations: 2.938 kB / 0.7319 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.276e-05/1.062, allocations: 0 / 0.7319 GB, free: 3.969 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.004517/1.067, allocations: 1.766 MB / 0.7336 GB, free: 19.03 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/1.067, allocations: 9.328 kB / 0.7336 GB, free: 19.03 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001793/1.067, allocations: 135.5 kB / 0.7337 GB, free: 18.99 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004953/1.068, allocations: 114.7 kB / 0.7338 GB, free: 18.94 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009779/1.069, allocations: 0.619 MB / 0.7344 GB, free: 18.66 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/1.069, allocations: 120.4 kB / 0.7345 GB, free: 18.59 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/1.069, allocations: 72.39 kB / 0.7346 GB, free: 18.59 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/1.07, allocations: 1.169 MB / 0.7358 GB, free: 18.42 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.805e-05/1.07, allocations: 6.438 kB / 0.7358 GB, free: 18.42 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.228e-05/1.071, allocations: 29.19 kB / 0.7358 GB, free: 18.42 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.228e-05/1.071, allocations: 61.94 kB / 0.7359 GB, free: 18.41 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/1.072, allocations: 1.161 MB / 0.737 GB, free: 18.41 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.006542/1.079, allocations: 4.981 MB / 0.7419 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/1.08, allocations: 0.8097 MB / 0.7426 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000573/1.081, allocations: 431.5 kB / 0.7431 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001402/1.082, allocations: 1.623 MB / 0.7446 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/1.082, allocations: 43.09 kB / 0.7447 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=70): time 2.294e-06/1.083, allocations: 3 kB / 0.7447 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.0127/1.095, allocations: 4.012 MB / 0.7486 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.191e-05/1.095, allocations: 116.1 kB / 0.7487 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/1.096, allocations: 0.6674 MB / 0.7494 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001228/1.097, allocations: 41.73 kB / 0.7494 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/1.097, allocations: 390.9 kB / 0.7498 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002143/1.097, allocations: 309.2 kB / 0.7501 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003144/1.097, allocations: 199.5 kB / 0.7503 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001625/1.098, allocations: 387 kB / 0.7506 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008979/1.098, allocations: 496.5 kB / 0.7511 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/1.1, allocations: 0.7592 MB / 0.7518 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002126/1.102, allocations: 1.282 MB / 0.7531 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.906e-06/1.102, allocations: 2.094 kB / 0.7531 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003406/1.105, allocations: 1.688 MB / 0.7547 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/1.105, allocations: 6.469 kB / 0.7548 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/1.105, allocations: 7.969 kB / 0.7548 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006847/1.112, allocations: 1.31 MB / 0.756 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000694/1.113, allocations: 155.2 kB / 0.7562 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002611/1.115, allocations: 1.529 MB / 0.7577 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/1.117, allocations: 52.89 kB / 0.7577 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/1.117, allocations: 55.27 kB / 0.7578 GB, free: 11.15 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.0006711/1.118, allocations: 296.4 kB / 0.7581 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003623/1.118, allocations: 87.67 kB / 0.7582 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003462/1.121, allocations: 1.686 MB / 0.7598 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/1.121, allocations: 8.359 kB / 0.7598 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/1.121, allocations: 1.125 kB / 0.7598 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/1.121, allocations: 5.062 kB / 0.7598 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004534/1.126, allocations: 2.63 MB / 0.7624 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.357e-06/1.126, allocations: 7.25 kB / 0.7624 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/1.127, allocations: 258.6 kB / 0.7626 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/1.129, allocations: 374.7 kB / 0.763 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/1.129, allocations: 33.08 kB / 0.763 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/1.132, allocations: 2.353 MB / 0.7653 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/1.132, allocations: 1.406 kB / 0.7653 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004164/1.136, allocations: 2.035 MB / 0.7673 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006575/1.137, allocations: 293.3 kB / 0.7676 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002537/1.137, allocations: 26.12 kB / 0.7676 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000933/1.138, allocations: 51.92 kB / 0.7677 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/1.138, allocations: 63.44 kB / 0.7677 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001307/1.138, allocations: 44.02 kB / 0.7678 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007145/1.139, allocations: 0.4962 MB / 0.7682 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.139, allocations: 1.203 kB / 0.7683 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002231/1.141, allocations: 0.6818 MB / 0.7689 GB, free: 7.777 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.006723/1.148, allocations: 3.288 MB / 0.7721 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00273/1.151, allocations: 1.245 MB / 0.7733 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/1.151, allocations: 3.906 kB / 0.7733 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001869/1.152, allocations: 0.7155 MB / 0.774 GB, free: 6.812 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003201/1.156, allocations: 0.5156 MB / 0.7745 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02017/1.176, allocations: 9.713 MB / 0.784 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007875/1.177, allocations: 1.045 MB / 0.7851 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001339/1.178, allocations: 370.5 kB / 0.7854 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005615/1.179, allocations: 329.7 kB / 0.7857 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of SimCode: time 1.152e-06/1.179, allocations: 4 kB / 0.7857 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08571/1.264, allocations: 43.75 MB / 0.8285 GB, free: 6.02 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.62/14.88, allocations: 11.92 kB / 0.8285 GB, free: 6.008 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